Update comments.php
This commit is contained in:
parent
51c5f93019
commit
d979bf8a5a
38
comments.php
38
comments.php
|
@ -32,7 +32,7 @@ if ( post_password_required() ) {
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
$comments_number = get_comments_number();
|
$comments_number = get_comments_number();
|
||||||
if ( 1 === (int)$comments_number ) {
|
if ( 1 === (int) $comments_number ) {
|
||||||
printf(
|
printf(
|
||||||
/* translators: %s: post title */
|
/* translators: %s: post title */
|
||||||
esc_html_x( 'One thought on “%s”', 'comments title', 'understrap' ),
|
esc_html_x( 'One thought on “%s”', 'comments title', 'understrap' ),
|
||||||
|
@ -63,12 +63,15 @@ if ( post_password_required() ) {
|
||||||
<h1 class="screen-reader-text"><?php esc_html_e( 'Comment navigation', 'understrap' ); ?></h1>
|
<h1 class="screen-reader-text"><?php esc_html_e( 'Comment navigation', 'understrap' ); ?></h1>
|
||||||
|
|
||||||
<?php if ( get_previous_comments_link() ) { ?>
|
<?php if ( get_previous_comments_link() ) { ?>
|
||||||
<div class="nav-previous"><?php previous_comments_link( __( '← Older Comments',
|
<div class="nav-previous">
|
||||||
'understrap' ) ); ?></div>
|
<?php previous_comments_link( __( '← Older Comments','understrap' ) ); ?>
|
||||||
<?php }
|
</div>
|
||||||
if ( get_next_comments_link() ) { ?>
|
<?php } ?>
|
||||||
<div class="nav-next"><?php next_comments_link( __( 'Newer Comments →',
|
|
||||||
'understrap' ) ); ?></div>
|
<?php if ( get_next_comments_link() ) { ?>
|
||||||
|
<div class="nav-next">
|
||||||
|
<?php next_comments_link( __( 'Newer Comments →', 'understrap' ) ); ?>
|
||||||
|
</div>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
</nav><!-- #comment-nav-above -->
|
</nav><!-- #comment-nav-above -->
|
||||||
|
@ -78,10 +81,12 @@ if ( post_password_required() ) {
|
||||||
<ol class="comment-list">
|
<ol class="comment-list">
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
wp_list_comments( array(
|
wp_list_comments(
|
||||||
|
array(
|
||||||
'style' => 'ol',
|
'style' => 'ol',
|
||||||
'short_ping' => true,
|
'short_ping' => true,
|
||||||
) );
|
)
|
||||||
|
);
|
||||||
?>
|
?>
|
||||||
|
|
||||||
</ol><!-- .comment-list -->
|
</ol><!-- .comment-list -->
|
||||||
|
@ -93,12 +98,15 @@ if ( post_password_required() ) {
|
||||||
<h1 class="screen-reader-text"><?php esc_html_e( 'Comment navigation', 'understrap' ); ?></h1>
|
<h1 class="screen-reader-text"><?php esc_html_e( 'Comment navigation', 'understrap' ); ?></h1>
|
||||||
|
|
||||||
<?php if ( get_previous_comments_link() ) { ?>
|
<?php if ( get_previous_comments_link() ) { ?>
|
||||||
<div class="nav-previous"><?php previous_comments_link( __( '← Older Comments',
|
<div class="nav-previous">
|
||||||
'understrap' ) ); ?></div>
|
<?php previous_comments_link( __( '← Older Comments', 'understrap' ) ); ?>
|
||||||
<?php }
|
</div>
|
||||||
if ( get_next_comments_link() ) { ?>
|
<?php } ?>
|
||||||
<div class="nav-next"><?php next_comments_link( __( 'Newer Comments →',
|
|
||||||
'understrap' ) ); ?></div>
|
<?php if ( get_next_comments_link() ) { ?>
|
||||||
|
<div class="nav-next">
|
||||||
|
<?php next_comments_link( __( 'Newer Comments →', 'understrap' ) ); ?>
|
||||||
|
</div>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
</nav><!-- #comment-nav-below -->
|
</nav><!-- #comment-nav-below -->
|
||||||
|
|
Reference in New Issue