Comments
**Site relevance:** FFTAC.org
**Memory type:** theme source memory
**Source path:** FFTAC/wp-content/themes/fftac-who-we-are/comments.php
**Size:** 1.4 KB
Summary
@package FFTAC Who We Are
Source Preview
This source file is short enough to preview directly on its source-memory page.
<?php
/**
* Comments template.
*
* @package FFTAC_Who_We_Are
*/
if ( post_password_required() ) {
return;
}
?>
<section id="comments" class="comments-area">
<p class="section-kicker"><?php esc_html_e( 'Community', 'fftac-who-we-are' ); ?></p>
<p class="section-lede"><?php esc_html_e( 'Comments should follow the visible site boundaries: no harassment, no doxxing, no real-person villainization, no extremist recruitment, and no operational harm.', 'fftac-who-we-are' ); ?></p>
<?php if ( have_comments() ) : ?>
<h2 class="section-title">
<?php
$comment_count = get_comments_number();
if ( '1' === $comment_count ) {
esc_html_e( 'One response', 'fftac-who-we-are' );
} else {
printf(
/* translators: %s: Number of comments. */
esc_html( _nx( '%s response', '%s responses', $comment_count, 'comments title', 'fftac-who-we-are' ) ),
number_format_i18n( $comment_count )
);
}
?>
</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() && get_comments_number() ) :
?>
<p class="no-comments"><?php esc_html_e( 'Comments are closed.', 'fftac-who-we-are' ); ?></p>
<?php
endif;
comment_form(
array(
'title_reply' => esc_html__( 'Join the discussion', 'fftac-who-we-are' ),
)
);
?>
</section>