Skip to content
wiki.fftac.org

Template Research - Source Excerpt 03

Back to Template Research

Summary

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

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

</li>
                <li>
                    <span><?php esc_html_e('Timeline Entries', 'antichrist-engine'); ?></span>
                    <strong><?php echo esc_html(number_format_i18n(count($timeline))); ?></strong>
                </li>
            </ul>
            <div class="hero__actions">
                <a class="button" href="#claim-index"><?php esc_html_e('Search the Claim Index', 'antichrist-engine'); ?></a>
                <a class="button button--ghost" href="#historical-timeline"><?php esc_html_e('Trace the Timeline', 'antichrist-engine'); ?></a>
            </div>
        </div>
        <div class="hero__visual card foundation-panel foundation-panel--official">
            <p class="eyebrow"><?php esc_html_e('Research Dossier', '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('Research Lenses', 'antichrist-engine'); ?></span>
                    <strong><?php echo esc_html(number_format_i18n(count($labs))); ?></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($identity['hero_kicker']); ?></p>
        </div>
    </div>
</section>

<section class="section section--narrow">
    <div class="container foundation-layout">
        <aside class="foundation-layout__aside">
            <article class="card foundation-panel foundation-panel--compact">
                <p class="eyebrow"><?php esc_html_e('Orientation', 'antichrist-engine'); ?></p>
                <p><?php esc_html_e('Start with the shortest briefing, then move outward into the timeline, claim dossiers, and comparative frameworks.', 'antichrist-engine'); ?></p>
            </article>
            <article class="card foundation-panel foundation-panel--compact foundation-panel--sticky">
                <p class="eyebrow"><?php esc_html_e('Quick Links', 'antichrist-engine'); ?></p>
                <ul class="membership-links">
                    <?php foreach ($quick_links as $anchor => $label) : ?>
                        <li><a href="<?php echo esc_url('#' . $anchor); ?>"><?php echo esc_html($label); ?></a></li>
                    <?php endforeach; ?>
                </ul>
            </article>
            <?php foreach ($reference_links as $group => $items) : ?>
                <article class="card foundation-panel foundation-panel--compact">
                    <p class="eyebrow"><?php echo esc_html('institution' === $group ? __('Reference File', 'antichrist-engine') : ('publication' === $group ? __('Publication Links', 'antichrist-engine') : __('Participation', 'antichrist-engine'))); ?></p>
                    <ul class="membership-links">
                        <?php foreach ($items as $item) : ?>
                            <li><a href="<?php echo esc_url($item['url']); ?>"><?php echo esc_html($item['label']); ?></a></li>
                        <?php endforeach; ?>
                    </ul>
                </article>
            <?php endforeach; ?>
            <article class="card foundation-panel foundation-panel--compact">
                <p class="eyebrow"><?php esc_html_e('Public Assurances', 'antichrist-engine'); ?></p>
                <ul class="foundation-list foundation-list--tight">
                    <?php foreach (array_slice($assurances, 0, 3) as $assurance) : ?>
                        <li><?php echo esc_html($assurance['title']); ?></li>
                    <?php endforeach; ?>
                </ul>
            </article>
        </aside>

        <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('Research Brief', 'antichrist-engine'); ?></p>
                    <h2 class="entry-title"><?php the_title(); ?></h2>
                </header>
                <div class="entry-content">
                    <?php the_content(); ?>
                </div>
            </article>

            <?php if ($active_record || $record_not_found) : ?>
                <section id="research-record" class="card foundation-panel foundation-panel--official research-record-focus">
                    <header class="entry-header">
                        <p class="eyebrow"><?php esc_html_e('Record Desk', 'antichrist-engine'); ?></p>
                        <?php if ($active_record) : ?>
                            <h2><?php echo esc_html($active_record['title']); ?></h2>
                            <p class="foundation-panel__subline"><?php echo esc_html(sprintf(
                                /* translators: 1: research record type label, 2: research record ID. */
                                __('%1$s / %2$s', 'antichrist-engine'),
                                (string) ($active_record['type_label'] ?? __('Research Record', 'antichrist-engine')),
                                $active_record_id
                            )); ?></p>
                        <?php else : ?>
                            <h2><?php esc_html_e('No record matched that handle', 'antichrist-engine'); ?></h2>
                            <p class="foundation-panel__subline"><?php echo esc_html($research_filters['record']); ?></p>
                        <?php endif; ?>
                    </header>

                    <?php if ($active_record) : ?>
                        <p class="research-record-focus__lead">
                            <?php
                            if (!empty($active_record['summary'])) {
                                echo esc_html($active_record['summary']);
                            } elseif (!empty($active_record['note'])) {
                                echo esc_html($active_record['note']);
                            } else {
                                esc_html_e('A focused public record view for direct citation, linking, and review.', 'antichrist-engine');
                            }
                            ?>
                        </p>
                        <div class="hero__actions research-record-focus__actions">
                            <?php if (!empty($active_record['atlas_url'])) : ?>
                                <a class="button" href="<?php echo esc_url($active_record['atlas_url']); ?>"><?php esc_html_e('Jump into Atlas', 'antichrist-engine'); ?></a>
                            <?php endif; ?>
                            <a class="button button--ghost" href="<?php echo esc_url($record_clear_url); ?>"><?php esc_html_e('Clear Record Focus', 'antichrist-engine'); ?></a>
                            <?php if ('projection' === ($active_record['record_type'] ?? '') && !empty($active_record['claim_record_url'])) : ?>
                                <a class="button button--ghost" href="<?php echo esc_url($active_record['claim_record_url']); ?>"><?php esc_html_e('Open Parent Dossier', 'antichrist-engine'); ?></a>
                            <?php endif; ?>
                            <?php if ('source' === ($active_record['record_type'] ?? '') && !empty($active_record['url'])) : ?>
                                <a class="button button--ghost" href="<?php echo esc_url($active_record['url']); ?>"><?php esc_html_e('Visit Source', 'antichrist-engine'); ?></a>
                            <?php endif; ?>
                        </div>

                        <?php if ('claim' === ($active_record['record_type'] ?? '')) : ?>
                            <div class="publication-stat-grid research-record-focus__stats">
                                <article class="publication-stat-card statement-card">
                                    <span><?php esc_html_e('Lane', 'antichrist-engine'); ?></span>
                                    <strong><?php echo esc_html($claim_labels[$active_record['category']] ?? ucwords(str_replace('-', ' ', (string) ($active_record['category'] ?? '')))); ?></strong>
                                    <p><?php esc_html_e('Current dossier lane inside the public fact-check board.', 'antichrist-engine'); ?></p>
                                </article>