Skip to content
wiki.fftac.org

Template Questions - Source Excerpt 01

Back to Template Questions

Summary

This source excerpt preserves a bounded section of Anti-Christ.org/wp-content/themes/antichrist-engine/template-questions.php so readers can inspect the evidence without opening the full source file.

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

<?php
/**
 * Template Name: Doctrine Q&A
 * Template Post Type: page
 *
 * @package Antichrist_Engine
 */

get_header();

the_post();

$identity          = antichrist_engine_foundation_identity();
$document_profile  = antichrist_engine_foundation_document_profile('questions');
$questions_copy    = antichrist_engine_foundation_questions_interface_copy();
$question_sections = antichrist_engine_foundation_questions_sections();
$question_faqs     = antichrist_engine_foundation_questions_faqs();
$reference_links   = antichrist_engine_foundation_get_reference_links('questions');
$assurances        = antichrist_engine_foundation_public_assurances();
$faq_groups        = array();

foreach ($question_sections as $section_key => $section) {
    $faq_groups[$section_key] = array();
}

foreach ($question_faqs as $faq) {
    $section_key = (string) ($faq['section'] ?? '');

    if (!isset($faq_groups[$section_key])) {
        continue;
    }

    $faq_groups[$section_key][] = $faq;
}
?>
<section class="hero hero--foundation">
    <div class="container hero__grid hero__grid--foundation">
        <div class="hero__content">
            <p class="eyebrow"><?php esc_html_e('Doctrine Q&A', 'antichrist-engine'); ?></p>
            <h1><?php the_title(); ?></h1>
            <p class="hero__lead"><?php echo esc_html($questions_copy['hero_lead']); ?></p>
            <ul class="hero__meta" aria-label="<?php esc_attr_e('Doctrine Q&A profile', 'antichrist-engine'); ?>">
                <li>
                    <span><?php esc_html_e('Classification', 'antichrist-engine'); ?></span>
                    <strong><?php echo esc_html($document_profile['classification']); ?></strong>
                </li>
                <li>
                    <span><?php esc_html_e('Access', 'antichrist-engine'); ?></span>
                    <strong><?php echo esc_html($document_profile['access']); ?></strong>
                </li>
                <li>
                    <span><?php esc_html_e('Status', 'antichrist-engine'); ?></span>
                    <strong><?php echo esc_html($identity['status']); ?></strong>
                </li>
            </ul>
            <div class="hero__actions">
                <a class="button" href="#qa-map"><?php esc_html_e('Review the question map', 'antichrist-engine'); ?></a>
                <a class="button button--ghost" href="<?php echo esc_url(antichrist_engine_foundation_get_page_url('manifesto')); ?>"><?php esc_html_e('Read the manifesto', 'antichrist-engine'); ?></a>
            </div>
        </div>
        <div class="hero__visual card foundation-panel foundation-panel--official">
            <p class="eyebrow"><?php esc_html_e('Question File', 'antichrist-engine'); ?></p>
            <h2><?php echo esc_html($document_profile['record_id']); ?></h2>
            <div class="foundation-kv">
                <div class="foundation-kv__item">
                    <span><?php esc_html_e('Authority', 'antichrist-engine'); ?></span>
                    <strong><?php echo esc_html($document_profile['authority']); ?></strong>
                </div>
                <div class="foundation-kv__item">
                    <span><?php esc_html_e('Answer Count', 'antichrist-engine'); ?></span>
                    <strong><?php echo esc_html(number_format_i18n(count($question_faqs))); ?></strong>
                </div>
                <div class="foundation-kv__item">
                    <span><?php esc_html_e('Review Cycle', 'antichrist-engine'); ?></span>
                    <strong><?php echo esc_html($document_profile['review_cycle']); ?></strong>
                </div>
            </div>
            <p class="foundation-panel__subline"><?php echo esc_html($questions_copy['panel_subline']); ?></p>
        </div>
    </div>
</section>

<section class="section section--narrow">
    <div class="container foundation-layout">
        <div class="foundation-layout__main">
            <article <?php post_class('page-article card foundation-panel foundation-prose'); ?>>
                <header class="entry-header">
                    <p class="eyebrow"><?php esc_html_e('Orientation File', 'antichrist-engine'); ?></p>
                    <h2 class="entry-title"><?php the_title(); ?></h2>
                </header>
                <div class="entry-content">
                    <?php the_content(); ?>
                </div>
            </article>

            <section id="qa-map" class="card foundation-panel">
                <header class="entry-header">
                    <p class="eyebrow"><?php esc_html_e('Question Map', 'antichrist-engine'); ?></p>
                    <h2><?php echo esc_html($questions_copy['map_title']); ?></h2>
                    <p><?php echo esc_html($questions_copy['map_summary']); ?></p>
                </header>
                <div class="statement-grid">
                    <?php foreach ($question_sections as $section_key => $section) : ?>
                        <article class="statement-card question-route-card">
                            <p class="eyebrow"><?php echo esc_html($section['eyebrow']); ?></p>
                            <h3><?php echo esc_html($section['title']); ?></h3>
                            <p><?php echo esc_html($section['summary']); ?></p>
                            <a class="text-link" href="<?php echo esc_url('#' . $section_key); ?>"><?php echo esc_html($section['cta']); ?></a>
                        </article>
                    <?php endforeach; ?>
                </div>
            </section>

            <section id="decision-routes" class="card foundation-panel">
                <header class="entry-header">
                    <p class="eyebrow"><?php esc_html_e('Decision Routes', 'antichrist-engine'); ?></p>
                    <h2><?php echo esc_html($questions_copy['routes_title']); ?></h2>
                    <p><?php echo esc_html($questions_copy['routes_summary']); ?></p>
                </header>
                <div class="statement-grid">
                    <?php foreach ($question_sections as $section_key => $section) : ?>
                        <article class="statement-card question-route-card question-route-card--decision">
                            <p class="eyebrow"><?php echo esc_html($section['eyebrow']); ?></p>
                            <h3><?php echo esc_html($section['title']); ?></h3>
                            <p><?php echo esc_html($section['summary']); ?></p>
                            <div class="foundation-card-actions">
                                <a class="text-link" href="<?php echo esc_url('#' . $section_key); ?>"><?php echo esc_html($section['cta']); ?></a>
                                <a class="text-link" href="<?php echo esc_url(antichrist_engine_foundation_build_target_url(
                                    (string) ($section['target'] ?? ''),
                                    (array) ($section['args'] ?? array()),
                                    (string) ($section['anchor'] ?? '')
                                )); ?>"><?php echo esc_html($section['route_cta']); ?></a>
                                <?php if (!empty($section['secondary_target']) && !empty($section['secondary_cta'])) : ?>
                                    <a class="text-link" href="<?php echo esc_url(antichrist_engine_foundation_build_target_url(
                                        (string) $section['secondary_target'],
                                        (array) ($section['secondary_args'] ?? array()),
                                        (string) ($section['secondary_anchor'] ?? '')
                                    )); ?>"><?php echo esc_html($section['secondary_cta']); ?></a>
                                <?php endif; ?>
                            </div>
                        </article>
                    <?php endforeach; ?>
                </div>
            </section>

            <?php foreach ($question_sections as $section_key => $section) : ?>
                <?php if (empty($faq_groups[$section_key])) : ?>
                    <?php continue; ?>
                <?php endif; ?>
                <section id="<?php echo esc_attr($section_key); ?>" class="card foundation-panel question-section-card">
                    <header class="entry-header">
                        <p class="eyebrow"><?php echo esc_html($section['eyebrow']); ?></p>
                        <h2><?php echo esc_html($section['title']); ?></h2>
                        <p><?php echo esc_html($section['summary']); ?></p>
                    </header>
                    <div class="statement-grid">
                        <?php foreach ($faq_groups[$section_key] as $faq) : ?>
                            <article class="statement-card question-answer-card">