Changeset 42343 for trunk/src/wp-content/themes/twentysixteen/comments.php
- Timestamp:
- 11/30/2017 11:09:33 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentysixteen/comments.php
r41729 r42343 27 27 <?php 28 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() );32 } else {33 printf(34 /* translators: 1: number of comments, 2: post title */35 _nx(36 '%1$s thought on “%2$s”',37 '%1$s thoughts on “%2$s”',38 $comments_number,39 'comments title',40 'twentysixteen'41 ),42 number_format_i18n( $comments_number ),43 get_the_title()44 );45 }29 if ( '1' === $comments_number ) { 30 /* translators: %s: post title */ 31 printf( _x( 'One thought on “%s”', 'comments title', 'twentysixteen' ), get_the_title() ); 32 } else { 33 printf( 34 /* translators: 1: number of comments, 2: post title */ 35 _nx( 36 '%1$s thought on “%2$s”', 37 '%1$s thoughts on “%2$s”', 38 $comments_number, 39 'comments title', 40 'twentysixteen' 41 ), 42 number_format_i18n( $comments_number ), 43 get_the_title() 44 ); 45 } 46 46 ?> 47 47 </h2> … … 51 51 <ol class="comment-list"> 52 52 <?php 53 wp_list_comments( array( 54 'style' => 'ol', 55 'short_ping' => true, 56 'avatar_size' => 42, 57 ) ); 53 wp_list_comments( 54 array( 55 'style' => 'ol', 56 'short_ping' => true, 57 'avatar_size' => 42, 58 ) 59 ); 58 60 ?> 59 61 </ol><!-- .comment-list --> … … 65 67 <?php 66 68 // 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 if ( ! comments_open() && get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) : 68 70 ?> 69 <p class="no-comments"><?php _e( 'Comments are closed.', 'twentysixteen' ); ?></p>71 <p class="no-comments"><?php _e( 'Comments are closed.', 'twentysixteen' ); ?></p> 70 72 <?php endif; ?> 71 73 72 74 <?php 73 comment_form( array( 74 'title_reply_before' => '<h2 id="reply-title" class="comment-reply-title">', 75 'title_reply_after' => '</h2>', 76 ) ); 75 comment_form( 76 array( 77 'title_reply_before' => '<h2 id="reply-title" class="comment-reply-title">', 78 'title_reply_after' => '</h2>', 79 ) 80 ); 77 81 ?> 78 82
Note: See TracChangeset
for help on using the changeset viewer.