Skip to content
wiki.fftac.org

Template Texts - Source Excerpt 01

Back to Template Texts

Summary

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

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

<?php
/**
 * Template Name: Texts Lab
 * Template Post Type: page
 *
 * @package Antichrist_Engine
 */

get_header();

the_post();

$identity         = antichrist_engine_foundation_identity();
$document_profile = antichrist_engine_foundation_document_profile('texts');
$texts_copy       = antichrist_engine_foundation_texts_interface_copy();
$textual_questions = antichrist_engine_foundation_textual_launch_questions();
$reading_routes   = antichrist_engine_foundation_textual_reading_routes();
$case_files       = antichrist_engine_foundation_textual_case_files();
$method_steps     = antichrist_engine_foundation_textual_method_steps();
$source_shelf     = antichrist_engine_foundation_get_research_sources_by_keys(antichrist_engine_foundation_textual_source_keys());
$reference_links  = antichrist_engine_foundation_get_reference_links('texts');
$assurances       = antichrist_engine_foundation_public_assurances();
$research_url     = antichrist_engine_foundation_get_page_url('research');
$questions_url    = antichrist_engine_foundation_get_page_url('questions');
$recovery_url     = antichrist_engine_foundation_get_page_url('recovery');
?>
<section class="hero hero--foundation">
    <div class="container hero__grid hero__grid--foundation">
        <div class="hero__content">
            <p class="eyebrow"><?php esc_html_e('Interpretive Lab', 'antichrist-engine'); ?></p>
            <h1><?php the_title(); ?></h1>
            <p class="hero__lead"><?php echo esc_html($texts_copy['hero_lead']); ?></p>
            <p><?php echo esc_html($texts_copy['hero_summary']); ?></p>
            <ul class="hero__meta" aria-label="<?php esc_attr_e('Texts 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('Reading routes', 'antichrist-engine'); ?></span>
                    <strong><?php echo esc_html(number_format_i18n(count($reading_routes))); ?></strong>
                </li>
                <li>
                    <span><?php esc_html_e('Launch questions', 'antichrist-engine'); ?></span>
                    <strong><?php echo esc_html(number_format_i18n(count($textual_questions))); ?></strong>
                </li>
            </ul>
            <div class="hero__actions">
                <a class="button" href="#textual-launch-questions"><?php esc_html_e('Open the launch questions', 'antichrist-engine'); ?></a>
                <a class="button button--ghost" href="<?php echo esc_url($research_url); ?>"><?php esc_html_e('Open the research atlas', 'antichrist-engine'); ?></a>
                <a class="button button--ghost" href="<?php echo esc_url(antichrist_engine_foundation_build_target_url('research', array(), 'source-library')); ?>"><?php esc_html_e('Browse the source library', 'antichrist-engine'); ?></a>
            </div>
        </div>
        <div class="hero__visual card foundation-panel foundation-panel--official">
            <p class="eyebrow"><?php esc_html_e('Texts 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('Case files', 'antichrist-engine'); ?></span>
                    <strong><?php echo esc_html(number_format_i18n(count($case_files))); ?></strong>
                </div>
                <div class="foundation-kv__item">
                    <span><?php esc_html_e('Source shelf', 'antichrist-engine'); ?></span>
                    <strong><?php echo esc_html(number_format_i18n(count($source_shelf))); ?></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($texts_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('Overview', 'antichrist-engine'); ?></p>
                    <h2 class="entry-title"><?php the_title(); ?></h2>
                </header>
                <div class="entry-content">
                    <?php the_content(); ?>
                </div>
            </article>

            <section id="textual-launch-questions" class="card foundation-panel">
                <header class="entry-header">
                    <p class="eyebrow"><?php esc_html_e('Launch Questions', 'antichrist-engine'); ?></p>
                    <h2><?php echo esc_html($texts_copy['questions_title']); ?></h2>
                    <p><?php echo esc_html($texts_copy['questions_summary']); ?></p>
                </header>
                <div class="foundation-route-grid foundation-route-grid--compact">
                    <?php foreach ($textual_questions as $question) : ?>
                        <?php $question_anchor = (string) ($question['anchor'] ?? sanitize_title((string) ($question['title'] ?? 'text-question'))); ?>
                        <article class="card foundation-panel foundation-route-card foundation-route-card--feature interpretive-route-card">
                            <p class="eyebrow"><?php echo esc_html($question['eyebrow'] ?? ''); ?></p>
                            <h3><?php echo esc_html($question['title'] ?? ''); ?></h3>
                            <p><?php echo esc_html($question['summary'] ?? ''); ?></p>
                            <p class="foundation-panel__subline"><?php echo esc_html($question['note'] ?? ''); ?></p>
                            <a class="text-link" href="<?php echo esc_url(antichrist_engine_foundation_build_target_url((string) ($question['target'] ?? 'texts'), (array) ($question['args'] ?? array()), $question_anchor)); ?>">
                                <?php echo esc_html($question['cta'] ?? __('Open question', 'antichrist-engine')); ?>
                            </a>
                        </article>
                    <?php endforeach; ?>
                </div>
            </section>

            <section id="textual-reading-routes" class="card foundation-panel">
                <header class="entry-header">
                    <p class="eyebrow"><?php esc_html_e('Reading Routes', 'antichrist-engine'); ?></p>
                    <h2><?php echo esc_html($texts_copy['routes_title']); ?></h2>
                    <p><?php echo esc_html($texts_copy['routes_summary']); ?></p>
                </header>
                <div class="foundation-route-grid">
                    <?php foreach ($reading_routes as $route) : ?>
                        <?php $route_anchor = sanitize_title((string) ($route['title'] ?? 'text-route')); ?>
                        <article id="<?php echo esc_attr($route_anchor); ?>" class="card foundation-panel foundation-route-card foundation-route-card--feature interpretive-route-card">
                            <p class="eyebrow"><?php echo esc_html($route['eyebrow'] ?? ''); ?></p>
                            <h3><?php echo esc_html($route['title'] ?? ''); ?></h3>
                            <p><?php echo esc_html($route['summary'] ?? ''); ?></p>
                            <p class="foundation-panel__subline"><?php echo esc_html($route['note'] ?? ''); ?></p>
                            <a class="text-link" href="<?php echo esc_url(antichrist_engine_foundation_build_target_url((string) ($route['target'] ?? 'research'), (array) ($route['args'] ?? array()), (string) ($route['anchor'] ?? 'claim-index'))); ?>">
                                <?php echo esc_html($route['cta'] ?? __('Open route', 'antichrist-engine')); ?>
                            </a>
                        </article>
                    <?php endforeach; ?>
                </div>
            </section>

            <section id="textual-case-files" class="card foundation-panel">
                <header class="entry-header">