Template Sitemap - Part 01
**Source path:** Anti-Christ.org/wp-content/themes/antichrist-engine/template-sitemap.php
<?php
/**
* Template Name: Site Map
* Template Post Type: page
*
* @package Antichrist_Engine
*/
get_header();
the_post();
$identity = antichrist_engine_foundation_identity();
$document_profile = antichrist_engine_foundation_document_profile('sitemap');
$page_definitions = antichrist_engine_foundation_page_definitions();
$pillars = antichrist_engine_foundation_pillars();
$sitemap_sections = antichrist_engine_foundation_get_sitemap_sections();
$footer_aux_links = antichrist_engine_foundation_get_footer_auxiliary_links();
$machine_routes = antichrist_engine_foundation_get_machine_readable_route_items();
$official_files = count($page_definitions) - count($pillars);
$navigator_total = count(antichrist_engine_foundation_get_navigator_index());
$feed_total = count($machine_routes);
$research_url = antichrist_engine_foundation_get_page_url('research');
$journal_url = antichrist_engine_foundation_get_page_url('journal');
$downloads_url = antichrist_engine_foundation_get_page_url('downloads');
$xml_sitemap_url = home_url('/wp-sitemap.xml');
?>
<section class="hero hero--foundation">
<div class="container hero__grid hero__grid--foundation">
<div class="hero__content">
<p class="eyebrow"><?php esc_html_e('Discovery', 'antichrist-engine'); ?></p>
<h1><?php the_title(); ?></h1>
<p class="hero__lead"><?php esc_html_e('A governed map of the public record, participation routes, focused atlas records, and machine-readable research exports.', 'antichrist-engine'); ?></p>
<p><?php esc_html_e('Use this page when you need the whole launch structure in one place instead of jumping by search alone.', 'antichrist-engine'); ?></p>
<ul class="hero__meta" aria-label="<?php esc_attr_e('Sitemap profile', 'antichrist-engine'); ?>">
<li>
<span><?php esc_html_e('Official Files', 'antichrist-engine'); ?></span>
<strong><?php echo esc_html(number_format_i18n($official_files)); ?></strong>
</li>
<li>
<span><?php esc_html_e('Navigator Records', 'antichrist-engine'); ?></span>
<strong><?php echo esc_html(number_format_i18n($navigator_total)); ?></strong>
</li>
<li>
<span><?php esc_html_e('Public Feeds', 'antichrist-engine'); ?></span>
<strong><?php echo esc_html(number_format_i18n($feed_total)); ?></strong>
</li>
</ul>
<div class="hero__actions">
<a class="button" href="<?php echo esc_url($research_url); ?>"><?php esc_html_e('Open Research Program', 'antichrist-engine'); ?></a>
<a class="button button--ghost" href="<?php echo esc_url($journal_url); ?>"><?php esc_html_e('Open Journal', 'antichrist-engine'); ?></a>
<a class="button button--ghost" href="<?php echo esc_url($downloads_url); ?>"><?php esc_html_e('Open Downloads', 'antichrist-engine'); ?></a>
</div>
</div>
<div class="hero__visual card foundation-panel foundation-panel--official">
<p class="eyebrow"><?php esc_html_e('Discovery 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('Classification', 'antichrist-engine'); ?></span>
<strong><?php echo esc_html($document_profile['classification']); ?></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['designation']); ?> / <?php echo esc_html($identity['edition']); ?></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('Site Map', 'antichrist-engine'); ?></p>
<h2 class="entry-title"><?php the_title(); ?></h2>
</header>
<div class="entry-content">
<?php the_content(); ?>
</div>
</article>
<section class="search-summary-grid">
<article class="card foundation-panel foundation-panel--compact search-summary-card">
<p class="eyebrow"><?php esc_html_e('Public Structure', 'antichrist-engine'); ?></p>
<h2><?php echo esc_html(number_format_i18n($official_files)); ?></h2>
<p><?php esc_html_e('Provisioned public files, policies, and route pages maintained by the theme.', 'antichrist-engine'); ?></p>
</article>
<article class="card foundation-panel foundation-panel--compact search-summary-card">
<p class="eyebrow"><?php esc_html_e('Navigator Depth', 'antichrist-engine'); ?></p>
<h2><?php echo esc_html(number_format_i18n($navigator_total)); ?></h2>
<p><?php esc_html_e('Curated records, claims, sources, programs, and publications already indexed for direct discovery.', 'antichrist-engine'); ?></p>
</article>
<article class="card foundation-panel foundation-panel--compact search-summary-card">
<p class="eyebrow"><?php esc_html_e('Machine Routes', 'antichrist-engine'); ?></p>
<h2><?php echo esc_html(number_format_i18n($feed_total)); ?></h2>
<p><?php esc_html_e('Machine-readable routes available for indexing, generated export downloads, and researcher reuse.', 'antichrist-engine'); ?></p>
</article>
</section>
<?php foreach ($sitemap_sections as $section) : ?>
<section id="<?php echo esc_attr($section['id']); ?>" class="card foundation-panel sitemap-section">
<header class="entry-header">
<p class="eyebrow"><?php echo esc_html($section['eyebrow']); ?></p>
<h2><?php echo esc_html($section['title']); ?></h2>
<p><?php echo esc_html($section['summary']); ?></p>
</header>
<div class="search-match-grid">
<?php foreach ((array) ($section['items'] ?? array()) as $item) : ?>
<a class="search-match-card" href="<?php echo esc_url($item['url']); ?>">
<span class="search-match-card__meta"><?php echo esc_html($item['meta'] ?? ''); ?></span>
<strong><?php echo esc_html($item['title'] ?? ''); ?></strong>
<p><?php echo esc_html($item['summary'] ?? ''); ?></p>
</a>
<?php endforeach; ?>
</div>
</section>
<?php endforeach; ?>
</div>
<aside class="foundation-layout__aside">
<article class="card foundation-panel foundation-panel--compact foundation-panel--sticky">
<p class="eyebrow"><?php esc_html_e('Section Index', 'antichrist-engine'); ?></p>
<ul class="membership-links">
<?php foreach ($sitemap_sections as $section) : ?>
<li><a href="<?php echo esc_url('#' . $section['id']); ?>"><?php echo esc_html($section['title']); ?></a></li>
<?php endforeach; ?>
</ul>
</article>
<article class="card foundation-panel foundation-panel--compact">
<p class="eyebrow"><?php esc_html_e('Discovery Routes', 'antichrist-engine'); ?></p>
<ul class="membership-links">
<li><a href="<?php echo esc_url($research_url); ?>"><?php esc_html_e('Research Program', 'antichrist-engine'); ?></a></li>