Update themes
This commit is contained in:
parent
e00f87f2f5
commit
168d1a5ee7
98 changed files with 6532 additions and 2223 deletions
|
@ -5,7 +5,7 @@
|
|||
* This is the template that displays the area of the page that contains both the current comments
|
||||
* and the comment form.
|
||||
*
|
||||
* @link https://codex.wordpress.org/Template_Hierarchy
|
||||
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
|
||||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Seventeen
|
||||
|
@ -27,7 +27,8 @@ if ( post_password_required() ) {
|
|||
|
||||
<?php
|
||||
// You can start editing here -- including this comment!
|
||||
if ( have_comments() ) : ?>
|
||||
if ( have_comments() ) :
|
||||
?>
|
||||
<h2 class="comments-title">
|
||||
<?php
|
||||
$comments_number = get_comments_number();
|
||||
|
@ -53,27 +54,33 @@ if ( post_password_required() ) {
|
|||
|
||||
<ol class="comment-list">
|
||||
<?php
|
||||
wp_list_comments( array(
|
||||
'avatar_size' => 100,
|
||||
'style' => 'ol',
|
||||
'short_ping' => true,
|
||||
'reply_text' => twentyseventeen_get_svg( array( 'icon' => 'mail-reply' ) ) . __( 'Reply', 'twentyseventeen' ),
|
||||
) );
|
||||
wp_list_comments(
|
||||
array(
|
||||
'avatar_size' => 100,
|
||||
'style' => 'ol',
|
||||
'short_ping' => true,
|
||||
'reply_text' => twentyseventeen_get_svg( array( 'icon' => 'mail-reply' ) ) . __( 'Reply', 'twentyseventeen' ),
|
||||
)
|
||||
);
|
||||
?>
|
||||
</ol>
|
||||
|
||||
<?php the_comments_pagination( array(
|
||||
'prev_text' => twentyseventeen_get_svg( array( 'icon' => 'arrow-left' ) ) . '<span class="screen-reader-text">' . __( 'Previous', 'twentyseventeen' ) . '</span>',
|
||||
'next_text' => '<span class="screen-reader-text">' . __( 'Next', 'twentyseventeen' ) . '</span>' . twentyseventeen_get_svg( array( 'icon' => 'arrow-right' ) ),
|
||||
) );
|
||||
<?php
|
||||
the_comments_pagination(
|
||||
array(
|
||||
'prev_text' => twentyseventeen_get_svg( array( 'icon' => 'arrow-left' ) ) . '<span class="screen-reader-text">' . __( 'Previous', 'twentyseventeen' ) . '</span>',
|
||||
'next_text' => '<span class="screen-reader-text">' . __( 'Next', 'twentyseventeen' ) . '</span>' . twentyseventeen_get_svg( array( 'icon' => 'arrow-right' ) ),
|
||||
)
|
||||
);
|
||||
|
||||
endif; // Check for have_comments().
|
||||
|
||||
// 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' ) ) : ?>
|
||||
if ( ! comments_open() && get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) :
|
||||
?>
|
||||
|
||||
<p class="no-comments"><?php _e( 'Comments are closed.', 'twentyseventeen' ); ?></p>
|
||||
<?php
|
||||
<?php
|
||||
endif;
|
||||
|
||||
comment_form();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue