Antichrist Engine Page
**Site relevance:** Anti-Christ.org
**Memory type:** theme source memory
**Source path:** Anti-Christ.org/wp-content/themes/antichrist-engine/page.php
**Size:** 7.5 KB
Summary
@package Antichrist Engine
Source Preview
This source file is short enough to preview directly on its source-memory page.
<?php
/**
* Page template.
*
* @package Antichrist_Engine
*/
get_header();
?>
<?php
while (have_posts()) :
the_post();
$identity = antichrist_engine_foundation_identity();
$page_key = antichrist_engine_foundation_get_page_key_by_id(get_the_ID());
$document_profile = antichrist_engine_foundation_document_profile($page_key);
$assurances = antichrist_engine_foundation_public_assurances();
$is_foundation_page = '' !== $page_key;
?>
<?php if ($is_foundation_page) : ?>
<?php $reference_links = antichrist_engine_foundation_get_reference_links($page_key); ?>
<section class="hero hero--foundation">
<div class="container hero__grid hero__grid--foundation">
<div class="hero__content">
<p class="eyebrow"><?php echo esc_html(str_starts_with($page_key, 'pillar_') ? __('Research Pillar', 'antichrist-engine') : __('Official Record', 'antichrist-engine')); ?></p>
<h1><?php the_title(); ?></h1>
<?php if (has_excerpt()) : ?>
<p class="hero__lead"><?php echo esc_html(get_the_excerpt()); ?></p>
<?php else : ?>
<p class="hero__lead"><?php echo esc_html($identity['thesis']); ?></p>
<?php endif; ?>
<ul class="hero__meta" aria-label="<?php esc_attr_e('Document 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('Access', 'antichrist-engine'); ?></span>
<strong><?php echo esc_html($document_profile['access']); ?></strong>
</li>
<li>
<span><?php esc_html_e('Status', 'antichrist-engine'); ?></span>
<strong><?php echo esc_html($identity['status']); ?></strong>
</li>
</ul>
</div>
<div class="hero__visual card foundation-panel foundation-panel--compact foundation-record-card foundation-panel--official">
<p class="eyebrow"><?php esc_html_e('Document Control', 'antichrist-engine'); ?></p>
<div class="foundation-kv">
<div class="foundation-kv__item">
<span><?php esc_html_e('Record ID', 'antichrist-engine'); ?></span>
<strong><?php echo esc_html($document_profile['record_id']); ?></strong>
</div>
<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('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 id="post-<?php the_ID(); ?>" <?php post_class('page-article card foundation-panel foundation-prose'); ?>>
<header class="entry-header">
<p class="eyebrow"><?php esc_html_e('Record', 'antichrist-engine'); ?></p>
<h2 class="entry-title"><?php the_title(); ?></h2>
</header>
<div class="entry-content">
<?php the_content(); ?>
</div>
</article>
<?php
if (comments_open() || get_comments_number()) {
comments_template();
}
?>
</div>
<aside class="foundation-layout__aside">
<?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 foundation-notice-card">
<p class="eyebrow"><?php esc_html_e('Institutional Notice', 'antichrist-engine'); ?></p>
<p class="foundation-panel__subline"><?php echo esc_html($document_profile['classification']); ?></p>
<p><?php echo esc_html($identity['disclaimer']); ?></p>
</article>
<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>
</section>
<?php else : ?>
<section class="section section--narrow">
<div class="container page-shell">
<article id="post-<?php the_ID(); ?>" <?php post_class('page-article card'); ?>>
<header class="entry-header">
<p class="eyebrow"><?php esc_html_e('Page', 'antichrist-engine'); ?></p>
<h1 class="entry-title"><?php the_title(); ?></h1>
</header>
<div class="entry-content">
<?php the_content(); ?>
</div>
</article>
<?php
if (comments_open() || get_comments_number()) {
comments_template();
}
?>
</div>
</section>
<?php endif; ?>
<?php endwhile; ?>
<?php
get_footer();