Skip to content
wiki.fftac.org

Antichrist Engine Header - Source Excerpt 01

Back to Antichrist Engine Header

Summary

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

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

<?php
/**
 * Header template.
 *
 * @package Antichrist_Engine
 */
?><!doctype html>
<html <?php language_attributes(); ?>>
<head>
    <meta charset="<?php bloginfo('charset'); ?>">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<?php wp_body_open(); ?>
<?php
$identity         = antichrist_engine_foundation_identity();
$home_profile     = antichrist_engine_foundation_document_profile('home');
$header_markers   = array_slice(antichrist_engine_foundation_institutional_markers(), 0, 3);
$topic_clusters   = antichrist_engine_foundation_topic_clusters();
$breadcrumb_items = antichrist_engine_foundation_get_breadcrumb_items();
$navigator_items  = array_slice(antichrist_engine_foundation_get_navigator_index(), 0, 8);
$site_name        = antichrist_engine_foundation_get_site_name();
$site_description = antichrist_engine_foundation_get_site_description();
$show_navigator   = antichrist_engine_foundation_should_show_navigator();
?>
<div class="site-shell">
    <a class="skip-link screen-reader-text" href="#content"><?php esc_html_e('Skip to content', 'antichrist-engine'); ?></a>
    <div class="site-header__notice">
        <div class="container site-header__notice-inner">
            <?php foreach ($header_markers as $marker) : ?>
                <p class="site-header__notice-item">
                    <span><?php echo esc_html($marker['label']); ?></span>
                    <strong><?php echo esc_html($marker['value']); ?></strong>
                </p>
            <?php endforeach; ?>
        </div>
    </div>
    <header class="site-header">
        <div class="container site-header__inner">
            <?php
            $charter_url   = antichrist_engine_foundation_get_page_url('charter');
            $support_url   = antichrist_engine_foundation_get_page_url('support');
            $account_url   = antichrist_engine_membership_get_page_url('portal');
            $account_label = is_user_logged_in()
                ? __('My Account', 'antichrist-engine')
                : __('Join / Log In', 'antichrist-engine');
            ?>
            <div class="branding-wrap">
                <div class="branding-mark" aria-hidden="true"></div>
                <div class="site-branding">
                    <?php if (has_custom_logo()) : ?>
                        <div class="site-logo"><?php the_custom_logo(); ?></div>
                    <?php endif; ?>
                    <?php if (is_front_page()) : ?>
                        <h1 class="site-title"><a href="<?php echo esc_url(home_url('/')); ?>" rel="home"><?php echo esc_html($site_name); ?></a></h1>
                    <?php else : ?>
                        <p class="site-title"><a href="<?php echo esc_url(home_url('/')); ?>" rel="home"><?php echo esc_html($site_name); ?></a></p>
                    <?php endif; ?>
                    <p class="site-description"><?php echo esc_html($site_description); ?></p>
                    <div class="site-branding__dossier" aria-label="<?php esc_attr_e('Institutional dossier', 'antichrist-engine'); ?>">
                        <span><?php echo esc_html($identity['designation']); ?></span>
                        <span><?php echo esc_html($home_profile['record_id']); ?></span>
                        <span><?php echo esc_html($identity['edition']); ?></span>
                    </div>
                </div>
            </div>
            <div class="site-header__utilities">
                <a class="site-header__record-link" href="<?php echo esc_url($charter_url); ?>"><?php esc_html_e('Official Record', 'antichrist-engine'); ?></a>
                <a class="site-header__support" href="<?php echo esc_url($support_url); ?>"><?php esc_html_e('Support the Record', 'antichrist-engine'); ?></a>
                <button class="site-header__topic-toggle" type="button" aria-expanded="false" aria-controls="topic-map">
                    <?php esc_html_e('Topics', 'antichrist-engine'); ?>
                </button>
                <?php if ($show_navigator) : ?>
                    <button class="site-header__navigator-toggle" type="button" aria-expanded="false" aria-controls="site-navigator">
                        <span><?php esc_html_e('Research Navigator', 'antichrist-engine'); ?></span>
                        <small><?php esc_html_e('Ctrl + K', 'antichrist-engine'); ?></small>
                    </button>
                <?php endif; ?>
                <a class="site-header__account" href="<?php echo esc_url($account_url); ?>"><?php echo esc_html($account_label); ?></a>
                <button class="menu-toggle" type="button" aria-expanded="false" aria-controls="primary-menu">
                    <span class="menu-toggle__label" data-menu-label><?php esc_html_e('Menu', 'antichrist-engine'); ?></span>
                    <span class="menu-toggle__icon" aria-hidden="true">
                        <span class="menu-toggle__line"></span>
                        <span class="menu-toggle__line"></span>
                        <span class="menu-toggle__line"></span>
                    </span>
                </button>
            </div>
            <nav class="main-navigation" aria-label="<?php esc_attr_e('Primary menu', 'antichrist-engine'); ?>">
                <?php
                if ((bool) apply_filters('antichrist_engine_use_wp_primary_menu', false) && has_nav_menu('primary')) {
                    wp_nav_menu(array(
                        'theme_location' => 'primary',
                        'menu_id'        => 'primary-menu',
                        'container'      => false,
                    ));
                } else {
                    antichrist_engine_foundation_render_fallback_menu('primary', 'primary-menu');
                }
                ?>
            </nav>
        </div>
    </header>
    <div id="topic-map" class="site-topic-map" hidden>
        <div class="container site-topic-map__inner">
            <?php foreach ($topic_clusters as $cluster) : ?>
                <article class="site-topic-map__cluster">
                    <p class="eyebrow"><?php echo esc_html($cluster['title']); ?></p>
                    <p><?php echo esc_html($cluster['summary']); ?></p>
                    <ul class="site-topic-map__links">
                        <?php foreach ($cluster['links'] as $link) : ?>
                            <li>
                                <a href="<?php echo esc_url(antichrist_engine_foundation_build_target_url(
                                    $link['target'],
                                    $link['args'] ?? array(),
                                    $link['anchor'] ?? ''
                                )); ?>">
                                    <?php echo esc_html($link['label']); ?>
                                </a>
                            </li>
                        <?php endforeach; ?>
                    </ul>
                </article>
            <?php endforeach; ?>
        </div>
    </div>
    <?php if ($show_navigator) : ?>
        <div id="site-navigator" class="site-navigator" hidden>
            <div class="site-navigator__backdrop" data-navigator-close></div>
            <div class="container">
                <div class="site-navigator__dialog card foundation-panel" role="dialog" aria-modal="true" aria-labelledby="site-navigator-title">
                    <div class="site-navigator__header">
                        <div>
                            <p class="eyebrow"><?php esc_html_e('Research Navigator', 'antichrist-engine'); ?></p>
                            <h2 id="site-navigator-title"><?php esc_html_e('Find the right record fast', 'antichrist-engine'); ?></h2>
                        </div>
                        <button class="button button--ghost button--small" type="button" data-navigator-close>
                            <?php esc_html_e('Close', 'antichrist-engine'); ?>
                        </button>
                    </div>
                    <p class="site-navigator__lead"><?php esc_html_e('Jump straight to core pages, claim dossiers, source notes, participation lanes, and recent journal publications.', 'antichrist-engine'); ?></p>
                    <div class="site-navigator__search">
                        <label class="screen-reader-text" for="site-navigator-input"><?php esc_html_e('Search the research navigator', 'antichrist-engine'); ?></label>
                        <input
                            id="site-navigator-input"
                            class="site-navigator__input"
                            type="search"
                            name="navigator"
                            value="<?php echo esc_attr(get_search_query()); ?>"