Changeset 42343 for trunk/src/wp-content/themes/twentytwelve/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/twentytwelve/comments.php
r25746 r42343 18 18 * return early without loading the comments. 19 19 */ 20 if ( post_password_required() ) 20 if ( post_password_required() ) { 21 21 return; 22 } 22 23 ?> 23 24 … … 29 30 <h2 class="comments-title"> 30 31 <?php 31 printf( _n( 'One thought on “%2$s”', '%1$s thoughts on “%2$s”', get_comments_number(), 'twentytwelve' ), 32 number_format_i18n( get_comments_number() ), '<span>' . get_the_title() . '</span>' ); 32 printf( 33 _n( 'One thought on “%2$s”', '%1$s thoughts on “%2$s”', get_comments_number(), 'twentytwelve' ), 34 number_format_i18n( get_comments_number() ), '<span>' . get_the_title() . '</span>' 35 ); 33 36 ?> 34 37 </h2> 35 38 36 39 <ol class="commentlist"> 37 <?php wp_list_comments( array( 'callback' => 'twentytwelve_comment', 'style' => 'ol' ) ); ?> 40 <?php 41 wp_list_comments( 42 array( 43 'callback' => 'twentytwelve_comment', 44 'style' => 'ol', 45 ) 46 ); 47 ?> 38 48 </ol><!-- .commentlist --> 39 49 … … 50 60 * But we only want the note on posts and pages that had comments in the first place. 51 61 */ 52 if ( ! comments_open() && get_comments_number() ) : ?> 53 <p class="nocomments"><?php _e( 'Comments are closed.' , 'twentytwelve' ); ?></p> 62 if ( ! comments_open() && get_comments_number() ) : 63 ?> 64 <p class="nocomments"><?php _e( 'Comments are closed.', 'twentytwelve' ); ?></p> 54 65 <?php endif; ?> 55 66
Note: See TracChangeset
for help on using the changeset viewer.