@@ -18,7 +18,7 @@ discard block |
||
| 18 | 18 | * the visitor has not yet entered the password we will |
| 19 | 19 | * return early without loading the comments. |
| 20 | 20 | */ |
| 21 | -if ( post_password_required() ) { |
|
| 21 | +if (post_password_required()) { |
|
| 22 | 22 | return; |
| 23 | 23 | } |
| 24 | 24 | ?> |
@@ -27,13 +27,13 @@ discard block |
||
| 27 | 27 | |
| 28 | 28 | <?php |
| 29 | 29 | // You can start editing here -- including this comment! |
| 30 | - if ( have_comments() ) : ?> |
|
| 30 | + if (have_comments()) : ?> |
|
| 31 | 31 | <h2 class="comments-title"> |
| 32 | 32 | <?php |
| 33 | 33 | $comments_number = get_comments_number(); |
| 34 | - if ( '1' === $comments_number ) { |
|
| 34 | + if ('1' === $comments_number) { |
|
| 35 | 35 | /* translators: %s: post title */ |
| 36 | - printf( esc_html_x( 'One Reply to “%s”', 'comments title', 'strip' ), get_the_title() ); |
|
| 36 | + printf(esc_html_x('One Reply to “%s”', 'comments title', 'strip'), get_the_title()); |
|
| 37 | 37 | } else { |
| 38 | 38 | printf( |
| 39 | 39 | esc_attr( |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | 'strip' |
| 47 | 47 | ) |
| 48 | 48 | ), |
| 49 | - number_format_i18n( $comments_number ), |
|
| 49 | + number_format_i18n($comments_number), |
|
| 50 | 50 | get_the_title() |
| 51 | 51 | ); |
| 52 | 52 | } |
@@ -55,26 +55,26 @@ discard block |
||
| 55 | 55 | |
| 56 | 56 | <ol class="comment-list"> |
| 57 | 57 | <?php |
| 58 | - wp_list_comments( array( |
|
| 58 | + wp_list_comments(array( |
|
| 59 | 59 | 'avatar_size' => 96, |
| 60 | 60 | 'style' => 'ol', |
| 61 | 61 | 'short_ping' => true, |
| 62 | - 'reply_text' => __( 'Reply', 'strip' ), |
|
| 63 | - ) ); |
|
| 62 | + 'reply_text' => __('Reply', 'strip'), |
|
| 63 | + )); |
|
| 64 | 64 | ?> |
| 65 | 65 | </ol> |
| 66 | 66 | |
| 67 | - <?php the_comments_pagination( array( |
|
| 68 | - 'prev_text' => '<span class="screen-reader-text">' . __( 'Previous', 'strip' ) . '</span>', |
|
| 69 | - 'next_text' => '<span class="screen-reader-text">' . __( 'Next', 'strip' ) . '</span>', |
|
| 70 | - ) ); |
|
| 67 | + <?php the_comments_pagination(array( |
|
| 68 | + 'prev_text' => '<span class="screen-reader-text">' . __('Previous', 'strip') . '</span>', |
|
| 69 | + 'next_text' => '<span class="screen-reader-text">' . __('Next', 'strip') . '</span>', |
|
| 70 | + )); |
|
| 71 | 71 | |
| 72 | 72 | endif; // Check for have_comments(). |
| 73 | 73 | |
| 74 | 74 | // If comments are closed and there are comments, let's leave a little note, shall we? |
| 75 | - if ( ! comments_open() && get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) : ?> |
|
| 75 | + if ( ! comments_open() && get_comments_number() && post_type_supports(get_post_type(), 'comments')) : ?> |
|
| 76 | 76 | |
| 77 | - <p class="no-comments"><?php esc_html_e( 'Comments are closed.', 'strip' ); ?></p> |
|
| 77 | + <p class="no-comments"><?php esc_html_e('Comments are closed.', 'strip'); ?></p> |
|
| 78 | 78 | <?php |
| 79 | 79 | endif; |
| 80 | 80 | |