| Server IP : 66.29.153.156 / Your IP : 216.73.216.104 Web Server : LiteSpeed System : Linux premium322.web-hosting.com 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64 User : lastyfjz ( 1521) PHP Version : 8.1.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/lastyfjz/dermalaserclinic.co.uk/wp-content/themes/cherie/ |
Upload File : |
<?php
/**
* The template for displaying comments
*
* This is the template that displays the area of the page that contains both the current comments
* and the comment form.
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package _s
*/
/*
* If the current post is protected by a password and
* the visitor has not yet entered the password we will
* return early without loading the comments.
*/
if ( post_password_required() ) {
return;
}
?>
<div id="comments" class="blog-comments-area">
<?php
// You can start editing here -- including this comment!
if ( have_comments() ) : ?>
<h2 class="comments-title art-h6">
<?php
$comment_count = get_comments_number();
if ( 1 === $comment_count ) {
esc_html_e( 'One Comment', 'cherie' );
} else {
printf( // WPCS: XSS OK.
/* translators: 1: comment count number, 2: title. */
esc_html( _nx( 'One comment on “%2$s”', '%1$s comments on “%2$s”', get_comments_number(), 'comments title', 'cherie' ) ),
number_format_i18n( $comment_count ),
get_the_title()
);
}
?>
</h2><!-- .comments-title -->
<?php the_comments_navigation(); ?>
<ol class="comment-list">
<?php
wp_list_comments( array(
'style' => 'ol',
'short_ping' => true,
'avatar_size' => 80,
'callback' => 'cherie_theme_comments'
) );
?>
</ol><!-- .comment-list -->
<?php the_comments_navigation();
// If comments are closed and there are comments, let's leave a little note, shall we?
if ( ! comments_open() ) : ?>
<p class="no-comments"><?php esc_html_e( 'Comments are closed.', 'cherie' ); ?></p>
<?php
endif;
endif; // Check for have_comments().
comment_form(array(
'fields' => array(
'author' => '<div class="art-line-fields"><p class="comment-form-author"><input id="author" name="author" placeholder="'. esc_html__('Name *', 'cherie') .'" type="text" value="' . esc_attr( $commenter['comment_author'] ) . '"></p>',
'email' => '<p class="comment-form-email"><input id="email" name="email" placeholder="'. esc_html__('Email *', 'cherie') .'" type="text" value="' . esc_attr( $commenter['comment_author_email'] ) . '"></p>',
'url' => '<p class="comment-form-url"><input id="url" name="url" placeholder="'. esc_html__('Website', 'cherie') .'" type="text" value="' . esc_attr( $commenter['comment_author_url'] ) . '"></p></div>',
),
'comment_notes_before' => esc_html__('Your email address will not be published. Required fields are marked *', 'cherie'),
'title_reply' => esc_html__( 'Leave a Reply', 'cherie' ),
'comment_field' => '<p class="comment-form-comment"><textarea id="comment" name="comment" placeholder="'. esc_html__('Comment *', 'cherie') .'" aria-required="true"></textarea></p>',
'class_submit' => 'art-button art-button-dark'
));
?>
</div><!-- #comments -->