| Server IP : 77.68.64.20 / Your IP : 216.73.217.94 Web Server : Apache System : Linux hp3-wp-1011317.hostingp3.local 3.10.0-1160.144.1.el7.tuxcare.els8.x86_64 #1 SMP Sun Jul 5 17:25:39 UTC 2026 x86_64 User : csh2392878 ( 2033753) PHP Version : 8.3.30 Disable Function : shell_exec,exec,system,popen,set_time_limit MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/domains/vol1/746/2880746/user/htdocs/wp-content/themes/hestia/ |
Upload File : |
<?php
/**
* The template for displaying comments
*
* The area of the page that contains both current comments
* and the comment form.
*
* @package Hestia
* @since Hestia 1.0
*/
/*
* 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="section section-comments">
<div class="row">
<div class="col-md-12">
<div class="media-area">
<h3 class="hestia-title text-center">
<?php
$comments_number = get_comments_number();
if ( 0 !== $comments_number ) {
if ( 1 === $comments_number ) {
/* translators: %s: post title */
_x( 'One comment', 'comments title', 'hestia' );
} else {
printf(
/* translators: 1: number of comments, 2: post title */
_nx(
'%1$s Comment',
'%1$s Comments',
$comments_number,
'comments title',
'hestia'
),
number_format_i18n( $comments_number )
);
}
}
?>
</h3>
<?php
wp_list_comments( 'type=comment&callback=hestia_comments_list' );
wp_list_comments( 'type=pings&callback=hestia_comments_list' );
$pages = paginate_comments_links(
array(
'echo' => false,
'type' => 'array',
)
);
if ( is_array( $pages ) ) {
echo '<div class="text-center"><ul class="nav pagination pagination-primary">';
foreach ( $pages as $page ) {
echo '<li>' . $page . '</li>';
}
echo '</ul></div>';
}
?>
</div>
<div class="media-body">
<?php
ob_start();
comment_form( hestia_comments_template() );
echo str_replace( '<form', '<form autocomplete="off" ', ob_get_clean() );
?>
<?php if ( ! comments_open() && get_comments_number() ) : ?>
<?php if ( is_single() ) : ?>
<h4 class="no-comments hestia-title text-center"><?php esc_html_e( 'Comments are closed.', 'hestia' ); ?></h4>
<?php endif; ?>
<?php endif; ?>
</div>
</div>
</div>
</div>