Template Review Notices - Source Excerpt 01
Back to Template Review Notices
Summary
This source excerpt preserves a bounded section of Anti-Christ.org/wp-content/themes/antichrist-engine/template-review-notices.php so readers can inspect the evidence without opening the full source file.
**Source path:** Anti-Christ.org/wp-content/themes/antichrist-engine/template-review-notices.php
<?php
/**
* Template Name: Review Notices
* Template Post Type: page
*
* @package Antichrist_Engine
*/
get_header();
the_post();
$identity = antichrist_engine_foundation_identity();
$document_profile = antichrist_engine_foundation_document_profile('review_notices');
$review_copy = antichrist_engine_foundation_review_notice_interface_copy();
$review_notices = antichrist_engine_foundation_get_review_notice_register();
$review_protocols = antichrist_engine_foundation_review_notice_protocols();
$reference_links = antichrist_engine_foundation_get_reference_links('review_notices');
$assurances = antichrist_engine_foundation_public_assurances();
$status_counts = antichrist_engine_foundation_get_review_notice_status_counts($review_notices);
$machine_route = antichrist_engine_foundation_get_review_notice_route_item();
$affected_records = array();
$affected_pages = array();
foreach ($review_notices as $notice) {
foreach ((array) ($notice['affected_records'] ?? array()) as $record_id) {
$record_id = trim((string) $record_id);
if ('' === $record_id) {
continue;
}
$affected_records[$record_id] = true;
}
foreach ((array) ($notice['affected_page_links'] ?? array()) as $page_link) {
$page_key = (string) ($page_link['page_key'] ?? '');
if ('' === $page_key) {
continue;
}
if (!isset($affected_pages[$page_key])) {
$affected_pages[$page_key] = array(
'title' => (string) ($page_link['title'] ?? $page_key),
'url' => (string) ($page_link['url'] ?? home_url('/')),
'record_id' => (string) ($page_link['record_id'] ?? ''),
'summary' => (string) (antichrist_engine_foundation_document_profile($page_key)['authority'] ?? ''),
'count' => 0,
);
}
$affected_pages[$page_key]['count']++;
}
}
uasort($affected_pages, static function ($left, $right) {
return strcasecmp((string) ($left['title'] ?? ''), (string) ($right['title'] ?? ''));
});
?>
<section class="hero hero--foundation">
<div class="container hero__grid hero__grid--foundation">
<div class="hero__content">
<p class="eyebrow"><?php esc_html_e('Governance Log', 'antichrist-engine'); ?></p>
<h1><?php the_title(); ?></h1>
<p class="hero__lead"><?php echo esc_html($review_copy['hero_lead']); ?></p>
<p><?php echo esc_html($review_copy['hero_summary']); ?></p>
<ul class="hero__meta" aria-label="<?php esc_attr_e('Review notice 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('Notices', 'antichrist-engine'); ?></span>
<strong><?php echo esc_html(number_format_i18n(count($review_notices))); ?></strong>
</li>
<li>
<span><?php esc_html_e('Access', 'antichrist-engine'); ?></span>
<strong><?php echo esc_html($document_profile['access']); ?></strong>
</li>
</ul>
<div class="hero__actions">
<a class="button" href="#notice-register"><?php esc_html_e('Open the notice register', 'antichrist-engine'); ?></a>
<a class="button button--ghost" href="<?php echo esc_url(antichrist_engine_foundation_get_page_url('charter')); ?>"><?php esc_html_e('Read the charter', 'antichrist-engine'); ?></a>
<a class="button button--ghost" href="<?php echo esc_url((string) ($machine_route['url'] ?? '')); ?>"><?php esc_html_e('Open the JSON route', 'antichrist-engine'); ?></a>
</div>
</div>
<div class="hero__visual card foundation-panel foundation-panel--official">
<p class="eyebrow"><?php esc_html_e('Review 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('Baseline notices', 'antichrist-engine'); ?></span>
<strong><?php echo esc_html(number_format_i18n((int) ($status_counts['baseline'] ?? 0))); ?></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($review_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('Change Control', '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('Baseline', 'antichrist-engine'); ?></p>
<h2><?php echo esc_html(number_format_i18n((int) ($status_counts['baseline'] ?? 0))); ?></h2>
<p><?php esc_html_e('Registered starting points against which future public amendments should be compared.', 'antichrist-engine'); ?></p>
</article>
<article class="card foundation-panel foundation-panel--compact search-summary-card">
<p class="eyebrow"><?php esc_html_e('Queued', 'antichrist-engine'); ?></p>
<h2><?php echo esc_html(number_format_i18n((int) ($status_counts['queued'] ?? 0))); ?></h2>
<p><?php esc_html_e('Named formal reviews that still need their threshold conditions met before issuance.', 'antichrist-engine'); ?></p>
</article>
<article class="card foundation-panel foundation-panel--compact search-summary-card">
<p class="eyebrow"><?php esc_html_e('Affected records', 'antichrist-engine'); ?></p>
<h2><?php echo esc_html(number_format_i18n(count($affected_records))); ?></h2>
<p><?php esc_html_e('Distinct record IDs already named inside the review trail so later changes can cite exact targets.', 'antichrist-engine'); ?></p>
</article>
</section>
<section id="notice-register" class="card foundation-panel">
<header class="entry-header">
<p class="eyebrow"><?php esc_html_e('Notice Register', 'antichrist-engine'); ?></p>
<h2><?php echo esc_html($review_copy['register_title']); ?></h2>
<p><?php echo esc_html($review_copy['register_summary']); ?></p>
</header>
<div class="statement-grid">
<?php foreach ($review_notices as $notice) : ?>
<article id="<?php echo esc_attr($notice['anchor']); ?>" class="statement-card review-notice-card review-notice-card--<?php echo esc_attr($notice['status'] ?? ''); ?>">
<div class="review-notice-card__header">
<p class="research-record-pill"><?php echo esc_html($notice['record_id']); ?></p>
<span class="tag-pill review-notice-card__status review-notice-card__status--<?php echo esc_attr($notice['status'] ?? ''); ?>">
<?php echo esc_html($notice['status_label']); ?>
</span>
</div>
<p class="eyebrow"><?php echo esc_html($notice['phase'] ?? ''); ?></p>
<h3><?php echo esc_html($notice['title'] ?? ''); ?></h3>