HEX
Server: LiteSpeed
System: Linux linux31.centraldnserver.com 4.18.0-553.83.1.lve.el8.x86_64 #1 SMP Wed Nov 12 10:04:12 UTC 2025 x86_64
User: salamatk (1501)
PHP: 8.1.33
Disabled: show_source, system, shell_exec, passthru, exec, popen, proc_open
Upload Files
File: /home/salamatk/takarzan.ir/wp-content/themes/xts-luman/comments.php
<?php
/**
 * The template for displaying comments.
 *
 * The area of the page that contains both current comments
 * and the comment form.
 *
 * @package xts
 */

if ( post_password_required() ) {
	return;
}

?>

<div class="xts-comments-area comments" id="comments">
    <?php do_action('luman_ai_summary_before_comments'); ?>
	<?php if ( have_comments() ) : ?>
		<h3 class="xts-comments-title">
			<?php
				echo sprintf(
					/* translators: 1: number of comments, 2: post title */
					_nx( // phpcs:ignore
						'%1$s thought on &ldquo;%2$s&rdquo;',
						'%1$s thoughts on &ldquo;%2$s&rdquo;',
						get_comments_number(),
						'comments title',
						'xts-theme'
					),
					esc_html( number_format_i18n( get_comments_number() ) ),
					'<span>' . get_the_title() . '</span>' // phpcs:ignore
				);
			?>
		</h3>

		<ol class="commentlist">
			<?php
				wp_list_comments(
					array(
						'style'       => 'li',
						'avatar_size' => 55,
					)
				);
			?>
		</ol>
	<?php endif; ?>

	<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : ?>
		<nav class="xts-comment-nav" role="navigation" aria-label="<?php esc_attr_e( 'Comment navigation', 'xts-theme' ); ?>">
			<?php previous_comments_link( esc_html__( 'Older comments', 'xts-theme' ) ); ?>
			<span class="xts-comment-nav-sep"></span>
			<?php next_comments_link( esc_html__( 'Newer comments', 'xts-theme' ) ); ?>
		</nav>
	<?php endif; ?>

	<?php if ( ! comments_open() && get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) : ?>
		<p class="xts-no-comments"><?php esc_html_e( 'Comments are closed.', 'xts-theme' ); ?></p>
	<?php endif; ?>

	<?php comment_form(); ?>
</div>