File "comments-template.php"

Full path: /home/kosmetik/public_html/wp-content/plugins/elementor-pro/modules/theme-builder/views/comments-template.php
File size: 1.29 B
MIME-type: text/x-php
Charset: utf-8

Download   Open   Edit   Advanced Editor   Back

<?php

if (!defined('ABSPATH')) {
    exit;
}
$skin = $GLOBALS['post_comment_skin_classic'];
if (post_password_required()) {
    ?>
	<p class="nocomments"><?php 
    esc_html_e('This post is password protected. Enter the password to view comments.', 'elementor-pro');
    ?></p>
	<?php 
    return;
}
?>

<?php 
$comment_count = get_comment_count();
if ($comment_count) {
    ?>
	<h3 id="comments">
		<?php 
    echo esc_html($skin->get_instance_value('title'));
    ?>
	</h3>

	<div class="navigation">
		<div class="alignleft"><?php 
    previous_comments_link();
    ?></div>
		<div class="alignright"><?php 
    next_comments_link();
    ?></div>
	</div>

	<ol class="commentlist">
		<?php 
    wp_list_comments(['callback' => [$skin, 'comment_callback']]);
    ?>
	</ol>

	<div class="navigation">
		<div class="alignleft"><?php 
    previous_comments_link();
    ?></div>
		<div class="alignright"><?php 
    next_comments_link();
    ?></div>
	</div>
<?php 
} else {
    ?>

	<?php 
    if (comments_open()) {
        ?>
		<p class="nocomments"><?php 
        echo esc_html($skin->get_instance_value('title'));
        ?></p>

	<?php 
    } else {
        ?>
		<!-- If comments are closed. -->
		<p class="nocomments"><?php 
        esc_html_e('Comments are closed.', 'elementor-pro');
        ?></p>
		<?php 
    }
}