File: /home/parsata2/.trash/Tajhiz/comments.php
<?php
if ( post_password_required() ) { return; }
?>
<section class="o-section__wrapper o-section__wrapper--comments">
<div id="comments" class="comments-area c-comments">
<?php if ( have_comments() ) : ?>
<h2 class="comments-title">
<?php
$starter_theme_comment_count = get_comments_number();
if ( '1' === $starter_theme_comment_count ) {
printf(
esc_html__( 'One thought on “%1$s”', 'starter-theme' ),
'<span>' . wp_kses_post( get_the_title() ) . '</span>'
);
} else {
printf(
esc_html( _nx( '%1$s thought on “%2$s”', '%1$s thoughts on “%2$s”', $starter_theme_comment_count, 'comments title', 'starter-theme' ) ),
number_format_i18n( $starter_theme_comment_count ),
'<span>' . wp_kses_post( get_the_title() ) . '</span>'
);
}
?>
</h2>
<?php the_comments_navigation(); ?>
<ol class="comment-list">
<?php
wp_list_comments([
'style' => 'ol',
'short_ping' => true,
]);
?>
</ol>
<?php the_comments_navigation(); ?>
<?php if ( ! comments_open() ) : ?>
<p class="no-comments"><?php esc_html_e( 'Comments are closed.', 'starter-theme' ); ?></p>
<?php endif; ?>
<?php endif; ?>
<?php comment_form(); ?>
</div>
</section>