Changeset 44155 for trunk/src/wp-content/themes/twentynineteen/comments.php
- Timestamp:
- 12/14/2018 03:24:35 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentynineteen/comments.php
r44149 r44155 29 29 <h2 class="comments-title"> 30 30 <?php 31 if ( comments_open() ) { 32 if ( have_comments() ) { 33 _e( 'Join the Conversation', 'twentynineteen' ); 34 } else { 35 _e( 'Leave a comment', 'twentynineteen' ); 36 } 31 if ( comments_open() ) { 32 if ( have_comments() ) { 33 _e( 'Join the Conversation', 'twentynineteen' ); 37 34 } else { 38 if ( '1' == $discussion->responses ) { 39 /* translators: %s: post title */ 40 printf( _x( 'One reply on “%s”', 'comments title', 'twentynineteen' ), get_the_title() ); 41 } else { 42 printf( 43 /* translators: 1: number of comments, 2: post title */ 44 _nx( 45 '%1$s reply on “%2$s”', 46 '%1$s replies on “%2$s”', 47 $discussion->responses, 48 'comments title', 49 'twentynineteen' 50 ), 51 number_format_i18n( $discussion->responses ), 52 get_the_title() 53 ); 54 } 35 _e( 'Leave a comment', 'twentynineteen' ); 55 36 } 37 } else { 38 if ( '1' == $discussion->responses ) { 39 /* translators: %s: post title */ 40 printf( _x( 'One reply on “%s”', 'comments title', 'twentynineteen' ), get_the_title() ); 41 } else { 42 printf( 43 /* translators: 1: number of comments, 2: post title */ 44 _nx( 45 '%1$s reply on “%2$s”', 46 '%1$s replies on “%2$s”', 47 $discussion->responses, 48 'comments title', 49 'twentynineteen' 50 ), 51 number_format_i18n( $discussion->responses ), 52 get_the_title() 53 ); 54 } 55 } 56 56 ?> 57 57 </h2><!-- .comments-title --> 58 58 <?php 59 59 // Only show discussion meta information when comments are open and available. 60 60 if ( have_comments() && comments_open() ) { 61 61 get_template_part( 'template-parts/post/discussion', 'meta' ); 62 62 } 63 63 ?> 64 64 </div><!-- .comments-title-flex -->
Note: See TracChangeset
for help on using the changeset viewer.