Skip to content
wiki.fftac.org

Template Symbols - Source Excerpt 01

Back to Template Symbols

Summary

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

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

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

get_header();

the_post();

$identity            = antichrist_engine_foundation_identity();
$document_profile    = antichrist_engine_foundation_document_profile('symbols');
$symbols_copy        = antichrist_engine_foundation_symbols_interface_copy();
$symbolic_roles      = antichrist_engine_foundation_symbolic_system_roles();
$symbol_lexicon      = antichrist_engine_foundation_symbol_lexicon();
$symbolic_artifacts  = antichrist_engine_foundation_symbolic_artifact_studies();
$symbolic_uses       = antichrist_engine_foundation_symbolic_applications();
$symbolic_standards  = antichrist_engine_foundation_symbolic_standards();
$reference_links     = antichrist_engine_foundation_get_reference_links('symbols');
$assurances          = antichrist_engine_foundation_public_assurances();
$downloads_url       = antichrist_engine_foundation_get_page_url('downloads');
$journal_signals_url = add_query_arg('track', 'signals-and-symbols', antichrist_engine_foundation_get_page_url('journal'));

$resolve_asset = static function ($relative_path) {
    return antichrist_engine_foundation_resolve_asset($relative_path);
};

$build_viewer_meta = static function ($pairs) {
    $items = array_values(array_filter((array) $pairs, static function ($pair) {
        return !empty($pair['value']);
    }));

    return esc_attr(wp_json_encode($items, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE));
};

$symbolic_artifacts = array_values(array_filter($symbolic_artifacts, static function ($artifact) use ($resolve_asset) {
    $asset = $resolve_asset($artifact['image_path'] ?? '');

    return !empty($asset['exists']);
}));
$has_symbolic_artifacts = !empty($symbolic_artifacts);
?>
<section class="hero hero--foundation">
    <div class="container hero__grid hero__grid--foundation">
        <div class="hero__content">
            <p class="eyebrow"><?php esc_html_e('Symbolic Lab', 'antichrist-engine'); ?></p>
            <h1><?php the_title(); ?></h1>
            <p class="hero__lead"><?php echo esc_html($symbols_copy['hero_lead']); ?></p>
            <p><?php echo esc_html($symbols_copy['hero_summary']); ?></p>
            <ul class="hero__meta" aria-label="<?php esc_attr_e('Symbols 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('Lexicon entries', 'antichrist-engine'); ?></span>
                    <strong><?php echo esc_html(number_format_i18n(count($symbol_lexicon))); ?></strong>
                </li>
                <li>
                    <span><?php esc_html_e('System roles', 'antichrist-engine'); ?></span>
                    <strong><?php echo esc_html(number_format_i18n(count($symbolic_roles))); ?></strong>
                </li>
            </ul>
            <div class="hero__actions">
                <a class="button" href="#symbolic-system-roles"><?php esc_html_e('Open the system roles', 'antichrist-engine'); ?></a>
                <a class="button button--ghost" href="<?php echo esc_url($downloads_url); ?>"><?php esc_html_e('Open downloads', 'antichrist-engine'); ?></a>
                <a class="button button--ghost" href="<?php echo esc_url($journal_signals_url); ?>"><?php esc_html_e('Browse signals and symbols', 'antichrist-engine'); ?></a>
            </div>
        </div>
        <div class="hero__visual card foundation-panel foundation-panel--official">
            <p class="eyebrow"><?php esc_html_e('Symbols 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('Applications', 'antichrist-engine'); ?></span>
                    <strong><?php echo esc_html(number_format_i18n(count($symbolic_uses))); ?></strong>
                </div>
                <div class="foundation-kv__item">
                    <span><?php esc_html_e('Standards', 'antichrist-engine'); ?></span>
                    <strong><?php echo esc_html(number_format_i18n(count($symbolic_standards))); ?></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($symbols_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="symbolic-system-roles" class="card foundation-panel">
                <header class="entry-header">
                    <p class="eyebrow"><?php esc_html_e('System Roles', 'antichrist-engine'); ?></p>
                    <h2><?php echo esc_html($symbols_copy['roles_title']); ?></h2>
                    <p><?php echo esc_html($symbols_copy['roles_summary']); ?></p>
                </header>
                <div class="foundation-route-grid foundation-route-grid--compact">
                    <?php foreach ($symbolic_roles as $role) : ?>
                        <article class="card foundation-panel foundation-route-card foundation-route-card--feature interpretive-route-card">
                            <p class="eyebrow"><?php echo esc_html($role['eyebrow'] ?? ''); ?></p>
                            <h3><?php echo esc_html($role['title'] ?? ''); ?></h3>
                            <p><?php echo esc_html($role['summary'] ?? ''); ?></p>
                            <p class="foundation-panel__subline"><?php echo esc_html($role['note'] ?? ''); ?></p>
                            <a class="text-link" href="<?php echo esc_url(antichrist_engine_foundation_build_target_url((string) ($role['target'] ?? 'symbols'), (array) ($role['args'] ?? array()), (string) ($role['anchor'] ?? ''))); ?>">
                                <?php echo esc_html($role['cta'] ?? __('Open role', 'antichrist-engine')); ?>
                            </a>
                        </article>
                    <?php endforeach; ?>
                </div>
            </section>

            <section id="symbol-lexicon" class="card foundation-panel">
                <header class="entry-header">
                    <p class="eyebrow"><?php esc_html_e('Lexicon', 'antichrist-engine'); ?></p>
                    <h2><?php echo esc_html($symbols_copy['lexicon_title']); ?></h2>
                    <p><?php echo esc_html($symbols_copy['lexicon_summary']); ?></p>
                </header>
                <div class="symbol-lexicon-grid">
                    <?php foreach ($symbol_lexicon as $symbol) : ?>
                        <?php
                        $symbol_url         = trailingslashit(get_template_directory_uri()) . ltrim((string) ($symbol['asset_path'] ?? ''), '/');
                        $symbol_asset_name  = wp_basename((string) ($symbol['asset_path'] ?? ''));
                        $symbol_asset_ext   = strtoupper((string) pathinfo((string) ($symbol['asset_path'] ?? ''), PATHINFO_EXTENSION));
                        $symbol_viewer_meta = $build_viewer_meta(array(
                            array(
                                'label' => __('Meaning', 'antichrist-engine'),
                                'value' => (string) ($symbol['meaning'] ?? ''),
                            ),
                            array(
                                'label' => __('Usage', 'antichrist-engine'),
                                'value' => (string) ($symbol['usage'] ?? ''),
                            ),
                            array(