Changeset 42343 for trunk/src/wp-content/themes/twentyfifteen/comments.php
- Timestamp:
- 11/30/2017 11:09:33 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyfifteen/comments.php
r41761 r42343 27 27 <?php 28 28 $comments_number = get_comments_number(); 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 29 if ( '1' === $comments_number ) { 30 /* translators: %s: post title */ 31 printf( _x( 'One thought on “%s”', 'comments title', 'twentyfifteen' ), 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 'twentyfifteen' 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' => 56, 57 ) ); 53 wp_list_comments( 54 array( 55 'style' => 'ol', 56 'short_ping' => true, 57 'avatar_size' => 56, 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 69 if ( ! comments_open() && get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) : 68 70 ?> 69 71 <p class="no-comments"><?php _e( 'Comments are closed.', 'twentyfifteen' ); ?></p> 70 72 <?php endif; ?> 71 73
Note: See TracChangeset
for help on using the changeset viewer.