Skip to content
wiki.fftac.org

Template Research - Source Excerpt 12

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

<span><?php echo esc_html(sprintf(
                                    _n('%s chronology entry', '%s chronology entries', (int) ($claim['episode_count'] ?? 0), 'antichrist-engine'),
                                    number_format_i18n((int) ($claim['episode_count'] ?? 0))
                                )); ?></span>
                            </div>
                            <h3><?php echo esc_html($claim['title']); ?></h3>
                            <p><?php echo esc_html($claim['summary']); ?></p>
                            <div class="tag-list claim-card__labels">
                                <?php if (!empty($claim['verdict']) && isset($verdicts[$claim['verdict']])) : ?>
                                    <span class="tag-pill"><?php echo esc_html($verdicts[$claim['verdict']]['label']); ?></span>
                                <?php endif; ?>
                                <?php if (!empty($claim['evidence']) && isset($evidence_levels[$claim['evidence']])) : ?>
                                    <span class="tag-pill"><?php echo esc_html($evidence_levels[$claim['evidence']]['label']); ?></span>
                                <?php endif; ?>
                            </div>
                            <div class="claim-card__meta">
                                <p><span><?php esc_html_e('History', 'antichrist-engine'); ?></span><?php echo esc_html($claim['history']); ?></p>
                                <p><span><?php esc_html_e('Diagnostic', 'antichrist-engine'); ?></span><?php echo esc_html($claim['diagnostic']); ?></p>
                            </div>
                            <p class="claim-card__status"><span><?php esc_html_e('Status', 'antichrist-engine'); ?></span><?php echo esc_html($claim['status']); ?></p>
                            <?php if (!empty($claim['source_references'])) : ?>
                                <div class="tag-list claim-card__sources">
                                    <?php foreach ($claim['source_references'] as $source_reference) : ?>
                                        <a class="tag-pill tag-pill--link" href="<?php echo esc_url($source_reference['record_url']); ?>">
                                            <?php echo esc_html($source_reference['publisher'] . ' / ' . $source_reference['record_id']); ?>
                                        </a>
                                    <?php endforeach; ?>
                                </div>
                            <?php endif; ?>
                            <?php if (!empty($claim['related_claims'])) : ?>
                                <div class="claim-card__related">
                                    <p class="claim-card__section-title"><?php esc_html_e('Related dossiers', 'antichrist-engine'); ?></p>
                                    <div class="claim-card__related-list">
                                        <?php foreach ($claim['related_claims'] as $related_claim) : ?>
                                            <a class="claim-related-link" href="<?php echo esc_url($related_claim['record_url']); ?>">
                                                <strong><?php echo esc_html($related_claim['record_id']); ?></strong>
                                                <span><?php echo esc_html($related_claim['title']); ?></span>
                                            </a>
                                        <?php endforeach; ?>
                                    </div>
                                </div>
                            <?php endif; ?>
                            <?php if (!empty($claim['episodes'])) : ?>
                                <details class="claim-card__episodes">
                                    <summary>
                                        <?php
                                        echo esc_html(sprintf(
                                            _n('%s chronology entry', '%s chronology entries', count($claim['episodes']), 'antichrist-engine'),
                                            number_format_i18n(count($claim['episodes']))
                                        ));
                                        ?>
                                    </summary>
                                    <div class="claim-card__episodes-list">
                                        <?php foreach ($claim['episodes'] as $episode) : ?>
                                            <article class="claim-episode">
                                                <p class="claim-episode__period"><?php echo esc_html($episode['period']); ?></p>
                                                <div class="claim-episode__body">
                                                    <h4><?php echo esc_html($episode['source']); ?></h4>
                                                    <p><?php echo esc_html($episode['summary']); ?></p>
                                                    <p class="claim-episode__status">
                                                        <span><?php esc_html_e('Outcome', 'antichrist-engine'); ?></span>
                                                        <?php echo esc_html($episode['status']); ?>
                                                    </p>
                                                </div>
                                            </article>
                                        <?php endforeach; ?>
                                    </div>
                                </details>
                            <?php endif; ?>
                            <div class="claim-card__actions">
                                <a class="text-link" href="<?php echo esc_url($claim['record_url']); ?>"><?php esc_html_e('Open record', 'antichrist-engine'); ?></a>
                                <a class="text-link" href="<?php echo esc_url($claim['atlas_url']); ?>"><?php esc_html_e('Atlas anchor', 'antichrist-engine'); ?></a>
                            </div>
                        </article>
                    <?php endforeach; ?>
                </div>
                <p class="research-empty-state" data-claim-empty <?php echo 0 === $claim_visible_count ? '' : 'hidden'; ?>><?php esc_html_e('No claim matched that combination. Try a broader term or clear the current filter.', 'antichrist-engine'); ?></p>
            </section>

            <section id="source-library" class="card foundation-panel">
                <header class="entry-header">
                    <p class="eyebrow"><?php esc_html_e('Source Library', 'antichrist-engine'); ?></p>
                    <h2><?php esc_html_e('Visible source trails for a more citable research surface', 'antichrist-engine'); ?></h2>
                </header>
                <p><?php esc_html_e('These sources come from the competitor-analysis memo and now function as the public starting library for the atlas. Claims link back here so readers can inspect the source mix directly.', 'antichrist-engine'); ?></p>
                <div class="source-library-groups">
                    <?php foreach ($source_groups as $group => $group_sources) : ?>
                        <article class="statement-card source-group-card">
                            <p class="eyebrow"><?php echo esc_html($group); ?></p>
                            <ul class="source-library-list">
                                <?php foreach ($group_sources as $source_key => $source) : ?>
                                    <li id="<?php echo esc_attr($source['anchor']); ?>" class="source-library-item<?php echo $active_record_id === (string) ($source['record_id'] ?? '') ? ' is-focused' : ''; ?>">
                                        <p class="research-record-pill"><?php echo esc_html($source['record_id']); ?></p>
                                        <a class="text-link" href="<?php echo esc_url($source['url']); ?>"><?php echo esc_html($source['title']); ?></a>
                                        <p class="source-library-item__publisher"><?php echo esc_html($source['publisher']); ?></p>
                                        <p class="source-library-item__meta"><?php echo esc_html(sprintf(
                                            _n('%s dossier currently cites this source.', '%s dossiers currently cite this source.', (int) ($source['citation_count'] ?? 0), 'antichrist-engine'),
                                            number_format_i18n((int) ($source['citation_count'] ?? 0))
                                        )); ?></p>
                                        <p><?php echo esc_html($source['note']); ?></p>
                                        <?php if (!empty($source['claim_references'])) : ?>
                                            <div class="tag-list source-library-item__claims">