- Timestamp:
- 11/12/2018 11:19:13 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.0/src/wp-content/themes/twentynineteen/comments.php
r43860 r43892 22 22 } 23 23 24 $discussion = twentynineteen_get_discussion_data(); 24 25 ?> 25 26 26 27 <div id="comments" class="<?php echo comments_open() ? 'comments-area' : 'comments-area comments-closed'; ?>"> 27 <div class="<?php echo twentynineteen_get_discussion_data()->responses > 0 ? 'comments-title-wrap' : 'comments-title-wrap no-responses'; ?>">28 <div class="<?php echo $discussion->responses > 0 ? 'comments-title-wrap' : 'comments-title-wrap no-responses'; ?>"> 28 29 <h2 class="comments-title"> 29 30 <?php 30 31 if ( comments_open() ) { 31 32 if ( have_comments() ) { 32 esc_html_e( 'Join the Conversation', 'twentynineteen' );33 _e( 'Join the Conversation', 'twentynineteen' ); 33 34 } else { 34 esc_html_e( 'Leave a comment', 'twentynineteen' );35 _e( 'Leave a comment', 'twentynineteen' ); 35 36 } 36 37 } else { 37 $comments_number = get_comments_number(); 38 if ( '1' === $comments_number ) { 38 if ( '1' == $discussion->responses ) { 39 39 /* translators: %s: post title */ 40 40 printf( _x( 'One reply on “%s”', 'comments title', 'twentynineteen' ), get_the_title() ); … … 45 45 '%1$s reply on “%2$s”', 46 46 '%1$s replies on “%2$s”', 47 $ comments_number,47 $discussion->responses, 48 48 'comments title', 49 49 'twentynineteen' 50 50 ), 51 number_format_i18n( $ comments_number),51 number_format_i18n( $discussion->responses ), 52 52 get_the_title() 53 53 ); … … 103 103 ?> 104 104 <div class="comment-form-flex"> 105 <span class="screen-reader-text"><?php esc_html_e( 'Leave a comment', 'twentynineteen' ); ?></span>105 <span class="screen-reader-text"><?php _e( 'Leave a comment', 'twentynineteen' ); ?></span> 106 106 <?php twentynineteen_comment_form( 'asc' ); ?> 107 <h2 class="comments-title" aria-hidden="true"><?php esc_html_e( 'Leave a comment', 'twentynineteen' ); ?></h2>107 <h2 class="comments-title" aria-hidden="true"><?php _e( 'Leave a comment', 'twentynineteen' ); ?></h2> 108 108 </div> 109 109 <?php … … 114 114 ?> 115 115 <p class="no-comments"> 116 <?php esc_html_e( 'Comments are closed.', 'twentynineteen' ); ?>116 <?php _e( 'Comments are closed.', 'twentynineteen' ); ?> 117 117 </p> 118 118 <?php
Note: See TracChangeset
for help on using the changeset viewer.