3 * The template for displaying Comments.
5 * The area of the page that contains comments and the comment form.
8 * @subpackage Twenty_Thirteen
9 * @since Twenty Thirteen 1.0
13 * If the current post is protected by a password and the visitor has not yet
14 * entered the password we will return early without loading the comments.
16 if ( post_password_required() )
20 <div id="comments" class="comments-area">
22 <?php if ( have_comments() ) : ?>
23 <h2 class="comments-title">
25 printf( _nx( 'One thought on “%2$s”', '%1$s thoughts on “%2$s”', get_comments_number(), 'comments title', 'twentythirteen' ),
26 number_format_i18n( get_comments_number() ), '<span>' . get_the_title() . '</span>' );
30 <ol class="comment-list">
32 wp_list_comments( array(
38 </ol><!-- .comment-list -->
41 // Are there comments to navigate through?
42 if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) :
44 <nav class="navigation comment-navigation" role="navigation">
45 <h1 class="screen-reader-text section-heading"><?php _e( 'Comment navigation', 'twentythirteen' ); ?></h1>
46 <div class="nav-previous"><?php previous_comments_link( __( '← Older Comments', 'twentythirteen' ) ); ?></div>
47 <div class="nav-next"><?php next_comments_link( __( 'Newer Comments →', 'twentythirteen' ) ); ?></div>
48 </nav><!-- .comment-navigation -->
49 <?php endif; // Check for comment navigation ?>
51 <?php if ( ! comments_open() && get_comments_number() ) : ?>
52 <p class="no-comments"><?php _e( 'Comments are closed.' , 'twentythirteen' ); ?></p>
55 <?php endif; // have_comments() ?>
57 <?php comment_form(); ?>
59 </div><!-- #comments -->