Skip to content
wiki.fftac.org

Comments

**Site relevance:** Anti-Christ.org

**Memory type:** theme source memory

**Source path:** Anti-Christ.org/wp-content/themes/antichrist-engine/comments.php

**Size:** 3.5 KB

Summary

@package Antichrist Engine

Source Preview

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

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

if (post_password_required()) {
    return;
}

$community_url = function_exists('antichrist_engine_foundation_get_page_url')
    ? antichrist_engine_foundation_get_page_url('community')
    : home_url('/');
$privacy_url = function_exists('antichrist_engine_foundation_get_page_url')
    ? antichrist_engine_foundation_get_page_url('privacy')
    : home_url('/');
$contact_url = function_exists('antichrist_engine_foundation_build_target_url')
    ? antichrist_engine_foundation_build_target_url('contact', array('route' => 'research-corrections'), 'contact-desk')
    : home_url('/');

$comment_form_args = array(
    'title_reply_before' => '<h3 id="reply-title" class="comment-reply-title">',
    'title_reply_after'  => '</h3>',
    'title_reply'        => __('Enter a publishable response', 'antichrist-engine'),
    'label_submit'       => __('Submit for Review', 'antichrist-engine'),
    'class_submit'       => 'button',
    'comment_notes_before' => sprintf(
        '<p class="comment-form__policy">%s</p>',
        sprintf(
            __('Comments are moderated before publication and should follow the <a href="%1$s">Community Guidelines</a>. Treat this as part of the public record, not a chat stream.', 'antichrist-engine'),
            esc_url($community_url)
        )
    ),
    'comment_notes_after' => sprintf(
        '<p class="comment-form__policy">%s</p>',
        sprintf(
            __('For corrections, source disputes, or private routing, use the <a href="%1$s">contact desk</a>. Commenter details are handled under the <a href="%2$s">Privacy Policy</a>.', 'antichrist-engine'),
            esc_url($contact_url),
            esc_url($privacy_url)
        )
    ),
    'comment_field' => '<p class="comment-form-comment"><label for="comment">' . esc_html__('Response', 'antichrist-engine') . '</label><textarea id="comment" name="comment" cols="45" rows="6" maxlength="2000" required placeholder="' . esc_attr__('Write something that can survive public review, disagreement, and citation.', 'antichrist-engine') . '"></textarea></p>',
);
?>
<section id="comments" class="comments-area card">
    <div class="comments-intro">
        <p class="eyebrow"><?php esc_html_e('Public Responses', 'antichrist-engine'); ?></p>
        <p><?php esc_html_e('Comments are part of the public-facing publication layer and are reviewed for clarity, relevance, and conduct before they appear.', 'antichrist-engine'); ?></p>
    </div>

    <?php if (have_comments()) : ?>
        <h2 class="comments-title">
            <?php
            printf(
                esc_html(
                    _nx(
                        'One response',
                        '%1$s responses',
                        get_comments_number(),
                        'comments title',
                        'antichrist-engine'
                    )
                ),
                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() && get_comments_number()) : ?>
        <p class="comments-closed"><?php esc_html_e('Comments are currently closed on this record.', 'antichrist-engine'); ?></p>
    <?php endif; ?>

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