<?php
/**
 * Comments template.
 *
 * @package Shabnam_MuchWOW
 */
defined( 'ABSPATH' ) || exit;
if ( post_password_required() ) { return; }
?>
<section id="comments" class="comments-area panel mt-5 p-3 sm:p-5 border border-1 border-gray-100 border-opacity-40 rounded-3 bg-white bg-opacity-5">
	<?php if ( have_comments() ) : ?>
		<h2 class="h4 text-secondary mb-3"><?php echo esc_html( sprintf( _n( 'یک دیدگاه', '%s دیدگاه', get_comments_number(), 'shabnam-muchwow' ), number_format_i18n( get_comments_number() ) ) ); ?></h2>
		<ol class="comment-list vstack gap-3"><?php wp_list_comments( array( 'style' => 'ol', 'short_ping' => true, 'avatar_size' => 56 ) ); ?></ol>
		<?php the_comments_navigation(); ?>
	<?php endif; ?>
	<?php comment_form(); ?>
</section>
