3 * The template for displaying Comments
5 * The area of the page that contains comments and the comment form.
8 * @subpackage Twenty_Fourteen
9 * @since Twenty Fourteen 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() ) {
21 <div id="comments" class="comments-area">
23 <?php if ( have_comments() ) : ?>
25 <h2 class="comments-title">
27 printf( _n( 'One thought on “%2$s”', '%1$s thoughts on “%2$s”', get_comments_number(), 'twentyfourteen' ),
28 number_format_i18n( get_comments_number() ), get_the_title() );
32 <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : ?>
33 <nav id="comment-nav-above" class="navigation comment-navigation" role="navigation">
34 <h1 class="screen-reader-text"><?php _e( 'Comment navigation', 'twentyfourteen' ); ?></h1>
35 <div class="nav-previous"><?php previous_comments_link( __( '← Older Comments', 'twentyfourteen' ) ); ?></div>
36 <div class="nav-next"><?php next_comments_link( __( 'Newer Comments →', 'twentyfourteen' ) ); ?></div>
37 </nav><!-- #comment-nav-above -->
38 <?php endif; // Check for comment navigation. ?>
40 <ol class="comment-list">
42 wp_list_comments( array(
48 </ol><!-- .comment-list -->
50 <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : ?>
51 <nav id="comment-nav-below" class="navigation comment-navigation" role="navigation">
52 <h1 class="screen-reader-text"><?php _e( 'Comment navigation', 'twentyfourteen' ); ?></h1>
53 <div class="nav-previous"><?php previous_comments_link( __( '← Older Comments', 'twentyfourteen' ) ); ?></div>
54 <div class="nav-next"><?php next_comments_link( __( 'Newer Comments →', 'twentyfourteen' ) ); ?></div>
55 </nav><!-- #comment-nav-below -->
56 <?php endif; // Check for comment navigation. ?>
58 <?php if ( ! comments_open() ) : ?>
59 <p class="no-comments"><?php _e( 'Comments are closed.', 'twentyfourteen' ); ?></p>
62 <?php endif; // have_comments() ?>
64 <?php comment_form(); ?>
66 </div><!-- #comments -->