<?php
/**
 * Comments template.
 *
 * @package HaPantheon
 */

if ( post_password_required() ) {
	return;
}
?>
<section id="comments" class="comments-area wrap">
	<?php if ( have_comments() ) : ?>
		<h2 class="comments-title">
			<?php
			printf(
				/* translators: %s: number of comments. */
				esc_html( _n( '%s תגובה', '%s תגובות', get_comments_number(), 'hapantheon' ) ),
				esc_html( number_format_i18n( get_comments_number() ) )
			);
			?>
		</h2>
		<ol class="comment-list">
			<?php
			wp_list_comments(
				array(
					'style'      => 'ol',
					'short_ping' => true,
					'avatar_size'=> 72,
				)
			);
			?>
		</ol>
		<?php the_comments_navigation(); ?>
	<?php endif; ?>

	<?php
	if ( ! comments_open() && get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) :
		?>
		<p class="no-comments"><?php esc_html_e( 'התגובות סגורות.', 'hapantheon' ); ?></p>
	<?php endif; ?>

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