3 * The template for displaying comments
5 * The area of the page that contains both current comments
6 * and the comment form.
9 * @subpackage Twenty_Sixteen
10 * @since Twenty Sixteen 1.0
14 * If the current post is protected by a password and
15 * the visitor has not yet entered the password we will
16 * return early without loading the comments.
18 if ( post_password_required() ) {
23 <div id="comments" class="comments-area">
25 <?php if ( have_comments() ) : ?>
26 <h2 class="comments-title">
28 $comments_number = get_comments_number();
29 if ( 1 === $comments_number ) {
30 /* translators: %s: post title */
31 printf( _x( 'One thought on “%s”', 'comments title', 'twentysixteen' ), get_the_title() );
34 /* translators: 1: number of comments, 2: post title */
36 '%1$s thought on “%2$s”',
37 '%1$s thoughts on “%2$s”',
42 number_format_i18n( $comments_number ),
49 <?php the_comments_navigation(); ?>
51 <ol class="comment-list">
53 wp_list_comments( array(
59 </ol><!-- .comment-list -->
61 <?php the_comments_navigation(); ?>
63 <?php endif; // Check for have_comments(). ?>
66 // If comments are closed and there are comments, let's leave a little note, shall we?
67 if ( ! comments_open() && get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) :
69 <p class="no-comments"><?php _e( 'Comments are closed.', 'twentysixteen' ); ?></p>
74 'title_reply_before' => '<h2 id="reply-title" class="comment-reply-title">',
75 'title_reply_after' => '</h2>',
79 </div><!-- .comments-area -->