- Timestamp:
- 11/30/2017 11:09:33 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyseventeen/comments.php
r39618 r42343 28 28 <?php 29 29 // You can start editing here -- including this comment! 30 if ( have_comments() ) : ?> 30 if ( have_comments() ) : 31 ?> 31 32 <h2 class="comments-title"> 32 33 <?php … … 54 55 <ol class="comment-list"> 55 56 <?php 56 wp_list_comments( array( 57 'avatar_size' => 100, 58 'style' => 'ol', 59 'short_ping' => true, 60 'reply_text' => twentyseventeen_get_svg( array( 'icon' => 'mail-reply' ) ) . __( 'Reply', 'twentyseventeen' ), 61 ) ); 57 wp_list_comments( 58 array( 59 'avatar_size' => 100, 60 'style' => 'ol', 61 'short_ping' => true, 62 'reply_text' => twentyseventeen_get_svg( array( 'icon' => 'mail-reply' ) ) . __( 'Reply', 'twentyseventeen' ), 63 ) 64 ); 62 65 ?> 63 66 </ol> 64 67 65 <?php the_comments_pagination( array( 66 'prev_text' => twentyseventeen_get_svg( array( 'icon' => 'arrow-left' ) ) . '<span class="screen-reader-text">' . __( 'Previous', 'twentyseventeen' ) . '</span>', 67 'next_text' => '<span class="screen-reader-text">' . __( 'Next', 'twentyseventeen' ) . '</span>' . twentyseventeen_get_svg( array( 'icon' => 'arrow-right' ) ), 68 ) ); 68 <?php 69 the_comments_pagination( 70 array( 71 'prev_text' => twentyseventeen_get_svg( array( 'icon' => 'arrow-left' ) ) . '<span class="screen-reader-text">' . __( 'Previous', 'twentyseventeen' ) . '</span>', 72 'next_text' => '<span class="screen-reader-text">' . __( 'Next', 'twentyseventeen' ) . '</span>' . twentyseventeen_get_svg( array( 'icon' => 'arrow-right' ) ), 73 ) 74 ); 69 75 70 76 endif; // Check for have_comments(). 71 77 72 78 // If comments are closed and there are comments, let's leave a little note, shall we? 73 if ( ! comments_open() && get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) : ?> 79 if ( ! comments_open() && get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) : 80 ?> 74 81 75 82 <p class="no-comments"><?php _e( 'Comments are closed.', 'twentyseventeen' ); ?></p>
Note: See TracChangeset
for help on using the changeset viewer.