Skip to content
wiki.fftac.org

Comments

**Site relevance:** 2IA.org

**Memory type:** theme source memory

**Source path:** 2IA.org/wp-content/themes/twoia-intelligence/comments.php

**Size:** 1 KB

Summary

Comments template. Comments are closed by default via theme behavior.

Source Preview

This source file is short enough to preview directly on its source-memory page.

<?php
/**
 * Comments template. Comments are closed by default via theme behavior.
 *
 * @package TwoIA
 */

if ( post_password_required() ) {
	return;
}
?>
<section id="comments" class="section section--compact comments-area">
	<?php if ( have_comments() ) : ?>
		<h2 class="comments-title">
			<?php
			printf(
				/* translators: %s: Number of comments. */
				esc_html( _n( '%s response', '%s responses', get_comments_number(), 'two-identities-anonymous' ) ),
				esc_html( number_format_i18n( get_comments_number() ) )
			);
			?>
		</h2>
		<ol class="comment-list">
			<?php
			wp_list_comments(
				array(
					'style'      => 'ol',
					'short_ping' => true,
				)
			);
			?>
		</ol>
		<?php the_comments_navigation(); ?>
	<?php endif; ?>

	<?php if ( comments_open() ) : ?>
		<?php comment_form(); ?>
	<?php else : ?>
		<p class="no-comments briefing-panel"><?php esc_html_e( 'Comments are closed for this briefing.', 'two-identities-anonymous' ); ?></p>
	<?php endif; ?>
</section>