Skip to content
wiki.fftac.org

Comments

**Site relevance:** Antichrist.net

**Memory type:** theme source memory

**Source path:** Antichrist.net/wp-content/themes/antichrist-net/comments.php

**Size:** 1 KB

Summary

if ( post password required() )

Source Preview

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

<?php
/**
 * Comments template.
 *
 * @package AntichristNet
 */
if ( post_password_required() ) {
	return;
}
?>
<section id="comments" class="comments-area">
	<?php if ( have_comments() ) : ?>
		<h2 class="comments-title">
			<?php
			printf(
				esc_html( _nx( 'One reply', '%1$s replies', get_comments_number(), 'comments title', 'antichrist-net' ) ),
				number_format_i18n( get_comments_number() )
			);
			?>
		</h2>
		<ol class="comment-list">
			<?php wp_list_comments( array( 'style' => 'ol', 'short_ping' => true, 'avatar_size' => 48 ) ); ?>
		</ol>
		<?php the_comments_navigation(); ?>
	<?php endif; ?>

	<?php if ( ! comments_open() && get_comments_number() ) : ?>
		<p class="no-comments"><?php esc_html_e( 'Replies are closed.', 'antichrist-net' ); ?></p>
	<?php endif; ?>

	<?php
	comment_form(
		array(
			'title_reply'        => esc_html__( 'Add a reply', 'antichrist-net' ),
			'title_reply_before' => '<h2 id="reply-title" class="comment-reply-title">',
			'title_reply_after'  => '</h2>',
		)
	);
	?>
</section>