
­­­­­­­­­­­­­­­­­­
<!DOCTYPE html>
<html>
<?php
/**
 * The template for displaying comments
 *
 * @package Authentic
 * @subpackage Templates
 * @since Authentic 2.0.0
 * @version 1.0.0
 */

if ( post_password_required() ) {
	return;
}
?>

<?php do_action( 'csco_comments_before' ); ?>

<div id="comments" class="post-comments">

	<?php if ( have_comments() ) { ?>
	<h3 class="title-block">
		<?php
		$comments_number = get_comments_number();
		if ( 1 === $comments_number ) {
			esc_html_e( 'One comment', 'authentic' );
		} else {
			printf( esc_html( _n( '%s comment', '%s comments', $comments_number, 'authentic' ) ), intval( number_format_i18n( $comments_number ) ) );
		}
		?>
	</h3>

	<?php the_comments_navigation(); ?>

	<ol class="comment-list">
		<?php
		wp_list_comments( array(
			'style'       => 'ol',
			'short_ping'  => true,
			'avatar_size' => 60,
		) );
		?>
	</ol><!-- .comment-list -->

	<?php the_comments_navigation(); ?>

	<?php } // End if(). ?>

	<?php
	// If comments are closed and there are comments, let's leave a little note, shall we?
	if ( ! comments_open() && get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) { ?>
	<p class="no-comments"><?php esc_html_e( 'Comments are closed.', 'authentic' ); ?></p>
	<?php } ?>

	<?php
	comment_form( array(
		'title_reply_before' => '<h2 id="reply-title" class="comment-reply-title">',
		'title_reply_after'  => '</h2>',
	) );
	?>

</div><!-- .comments-area -->

<?php do_action( 'csco_comments_after' ); ?>
