diff options
author | Yury German <blueknight@gentoo.org> | 2019-04-28 18:30:29 -0400 |
---|---|---|
committer | Yury German <blueknight@gentoo.org> | 2019-04-28 18:30:29 -0400 |
commit | 4ef1e1c47c509ea8ca1f194fcfb9ce816c01f29e (patch) | |
tree | 171fddc56d74d8492ffb703f04543896b6344243 /themes/twentysixteen/comments.php | |
parent | Updating packages for 5.1.1 (diff) | |
download | blogs-gentoo-4ef1e1c47c509ea8ca1f194fcfb9ce816c01f29e.tar.gz blogs-gentoo-4ef1e1c47c509ea8ca1f194fcfb9ce816c01f29e.tar.bz2 blogs-gentoo-4ef1e1c47c509ea8ca1f194fcfb9ce816c01f29e.zip |
Updating the themes
Updated themes. The followng themes updated:
Mantra - 3.0.5 => 3.1.0, Twenty Fifteen 2.2 => 2.4
Twenty Fourteen 2.4 => 2.6, Twenty Sixteen 1.7 => 1.9
Signed-off-by: Yury German <blueknight@gentoo.org>
Diffstat (limited to 'themes/twentysixteen/comments.php')
-rw-r--r-- | themes/twentysixteen/comments.php | 64 |
1 files changed, 34 insertions, 30 deletions
diff --git a/themes/twentysixteen/comments.php b/themes/twentysixteen/comments.php index 7ff5b32d..a0a29d57 100644 --- a/themes/twentysixteen/comments.php +++ b/themes/twentysixteen/comments.php @@ -26,23 +26,23 @@ if ( post_password_required() ) { <h2 class="comments-title"> <?php $comments_number = get_comments_number(); - if ( '1' === $comments_number ) { - /* translators: %s: post title */ - printf( _x( 'One thought on “%s”', 'comments title', 'twentysixteen' ), get_the_title() ); - } else { - printf( - /* translators: 1: number of comments, 2: post title */ - _nx( - '%1$s thought on “%2$s”', - '%1$s thoughts on “%2$s”', - $comments_number, - 'comments title', - 'twentysixteen' - ), - number_format_i18n( $comments_number ), - get_the_title() - ); - } + if ( '1' === $comments_number ) { + /* translators: %s: post title */ + printf( _x( 'One thought on “%s”', 'comments title', 'twentysixteen' ), get_the_title() ); + } else { + printf( + /* translators: 1: number of comments, 2: post title */ + _nx( + '%1$s thought on “%2$s”', + '%1$s thoughts on “%2$s”', + $comments_number, + 'comments title', + 'twentysixteen' + ), + number_format_i18n( $comments_number ), + get_the_title() + ); + } ?> </h2> @@ -50,11 +50,13 @@ if ( post_password_required() ) { <ol class="comment-list"> <?php - wp_list_comments( array( - 'style' => 'ol', - 'short_ping' => true, - 'avatar_size' => 42, - ) ); + wp_list_comments( + array( + 'style' => 'ol', + 'short_ping' => true, + 'avatar_size' => 42, + ) + ); ?> </ol><!-- .comment-list --> @@ -64,16 +66,18 @@ if ( post_password_required() ) { <?php // If comments are closed and there are comments, let's leave a little note, shall we? - if ( ! comments_open() && get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) : - ?> - <p class="no-comments"><?php _e( 'Comments are closed.', 'twentysixteen' ); ?></p> + if ( ! comments_open() && get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) : + ?> + <p class="no-comments"><?php _e( 'Comments are closed.', 'twentysixteen' ); ?></p> <?php endif; ?> <?php - comment_form( array( - 'title_reply_before' => '<h2 id="reply-title" class="comment-reply-title">', - 'title_reply_after' => '</h2>', - ) ); - ?> + comment_form( + array( + 'title_reply_before' => '<h2 id="reply-title" class="comment-reply-title">', + 'title_reply_after' => '</h2>', + ) + ); + ?> </div><!-- .comments-area --> |