| Server IP : 192.241.186.36 / Your IP : 216.73.216.199 Web Server : Apache/2.4.29 (Ubuntu) System : Linux webserver7 4.15.0-194-generic #205-Ubuntu SMP Fri Sep 16 19:49:27 UTC 2022 x86_64 User : root ( 0) PHP Version : 7.4.32 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/html/adsonicdigital/wp-content/themes/xstore/ |
Upload File : |
<?php
// Prevent the direct loading
defined( 'ABSPATH' ) || exit( 'Direct script access denied.' );
// Check if post is pwd protected
if(post_password_required()){
?>
<p><?php esc_html_e('This post is password protected. Enter the password to view the comments.', 'xstore'); ?></p>
<?php
return;
}
if(have_comments()) :?>
<div class="comments">
<h4 class="title-alt">
<span>
<?php
$comments_number = get_comments_number();
if ( '1' === $comments_number ) {
printf(
/* translators: 1: title. */
esc_html__( 'One comment on “%1$s”', 'xstore' ),
'<span>' . wp_kses_post( get_the_title() ) . '</span>'
);
} else {
printf(
/* translators: 1: comment count number, 2: title. */
esc_html( _nx( '%1$s comment on “%2$s”', '%1$s comments on “%2$s”', $comments_number, 'comments title', 'xstore' ) ),
number_format_i18n( $comments_number ), // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
'<span>' . wp_kses_post( get_the_title() ) . '</span>'
);
}
?>
</span>
</h4>
<ul class="comments-list">
<?php wp_list_comments('callback=etheme_comments'); ?>
</ul>
<?php if (get_comment_pages_count() > 1 && get_option('page_comments')): ?>
<div class="comments-nav">
<div class="pull-left"><?php previous_comments_link(esc_html__('← Older Comments', 'xstore')); ?></div>
<div class="pull-right"><?php next_comments_link(esc_html__('Newer Comments →', 'xstore')); ?></div>
<div class="clear"></div>
</div>
<?php endif ?>
</div>
<?php elseif(!comments_open() && !is_page() && post_type_supports(get_post_type(), 'comments')) : ?>
<p class="no-comments"><?php esc_html_e('Comments are closed', 'xstore') ?></p>
<?php
endif;
// Display Comment Form
comment_form(array('title_reply' => '<span>' . esc_html__('Leave a reply', 'xstore') . '</span>'));