Template Journal - Source Excerpt 01
Summary
This source excerpt preserves a bounded section of Anti-Christ.org/wp-content/themes/antichrist-engine/template-journal.php so readers can inspect the evidence without opening the full source file.
**Source path:** Anti-Christ.org/wp-content/themes/antichrist-engine/template-journal.php
<?php
/**
* Template Name: Journal
* Template Post Type: page
*
* @package Antichrist_Engine
*/
get_header();
the_post();
$identity = antichrist_engine_foundation_identity();
$document_profile = antichrist_engine_foundation_document_profile('journal');
$reference_links = antichrist_engine_foundation_get_reference_links('journal');
$protocols = antichrist_engine_foundation_journal_publication_protocols();
$assurances = antichrist_engine_foundation_public_assurances();
$journal_copy = antichrist_engine_foundation_journal_interface_copy();
$journal_map = antichrist_engine_foundation_journal_route_map();
$series_tracks = antichrist_engine_foundation_publication_series();
$release_desk = antichrist_engine_foundation_publication_release_desk();
$publication_packets = antichrist_engine_foundation_publication_route_packets();
$flagship_track = $series_tracks['algorithmic-eschatology'] ?? array();
$verified_protocols = antichrist_engine_foundation_verified_research_protocols();
$contributor_lanes = antichrist_engine_foundation_verified_research_lanes();
$publication_cadence = antichrist_engine_foundation_publication_cadence();
$launch_priorities = antichrist_engine_foundation_editorial_launch_priorities();
$program_blueprints = antichrist_engine_foundation_program_blueprints();
$review_notices = antichrist_engine_foundation_get_review_notice_register();
$selected_track = isset($_GET['track']) ? sanitize_key(wp_unslash($_GET['track'])) : '';
$selected_track = isset($series_tracks[$selected_track]) ? $selected_track : '';
$selected_series = $selected_track ? $series_tracks[$selected_track] : array();
$journal_url = antichrist_engine_foundation_get_page_url('journal');
$published_count = antichrist_engine_foundation_get_publication_count();
$active_topics = count(get_categories(array('hide_empty' => true)));
$empty_routes = antichrist_engine_foundation_publication_empty_state_routes();
$paged = max(1, (int) get_query_var('paged'), (int) get_query_var('page'));
$journal_query_args = antichrist_engine_foundation_get_publication_query_args(array(
'posts_per_page' => 9,
'paged' => $paged,
));
if ($selected_track) {
$journal_query_args['category_name'] = $selected_track;
}
$journal_query = new WP_Query($journal_query_args);
$latest_post = get_posts(antichrist_engine_foundation_get_publication_query_args(array(
'posts_per_page' => 1,
)));
$latest_release = !empty($latest_post)
? get_the_date(get_option('date_format'), $latest_post[0])
: $journal_copy['latest_release_fallback'];
$latest_release_label = !empty($latest_post) ? __('Latest Release', 'antichrist-engine') : __('Release State', 'antichrist-engine');
$track_counts = array();
$selected_publication_count = $selected_track ? (int) $journal_query->found_posts : $published_count;
$publication_metric_display = $selected_publication_count > 0
? number_format_i18n($selected_publication_count)
: ($selected_track ? __('Track staged', 'antichrist-engine') : __('Release queue staged', 'antichrist-engine'));
$publication_metric_label = $selected_publication_count > 0 ? __('Publications', 'antichrist-engine') : __('Archive State', 'antichrist-engine');
$publication_metric_class = $selected_publication_count > 0 ? '' : 'metric-value--status';
foreach ($series_tracks as $slug => $track) {
$term = get_category_by_slug($slug);
$track_counts[$slug] = $term ? (int) $term->count : 0;
}
$resolve_track_related_url = static function ($track) {
if (empty($track['related_target'])) {
return '';
}
return antichrist_engine_foundation_build_target_url(
(string) $track['related_target'],
(array) ($track['related_args'] ?? array()),
(string) ($track['related_anchor'] ?? '')
);
};
$resolve_priority_url = static function ($priority) use ($journal_url) {
$priority_url = antichrist_engine_foundation_get_page_url((string) ($priority['target'] ?? 'journal'));
if (!empty($priority['track'])) {
$priority_url = add_query_arg('track', (string) $priority['track'], $journal_url);
}
return $priority_url;
};
?>
<section class="hero hero--foundation">
<div class="container hero__grid hero__grid--foundation">
<div class="hero__content">
<p class="eyebrow"><?php esc_html_e('Journal', 'antichrist-engine'); ?></p>
<h1><?php the_title(); ?></h1>
<p class="hero__lead"><?php echo esc_html($selected_track ? $selected_series['description'] : $journal_copy['hero_lead']); ?></p>
<ul class="hero__meta" aria-label="<?php esc_attr_e('Journal profile', 'antichrist-engine'); ?>">
<li>
<span><?php esc_html_e('Classification', 'antichrist-engine'); ?></span>
<strong><?php echo esc_html($selected_track ? $selected_series['name'] : $document_profile['classification']); ?></strong>
</li>
<li>
<span><?php echo esc_html($publication_metric_label); ?></span>
<strong class="<?php echo esc_attr($publication_metric_class); ?>"><?php echo esc_html($publication_metric_display); ?></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="<?php echo esc_url(antichrist_engine_foundation_get_page_url('standards')); ?>"><?php esc_html_e('Read the Standards', 'antichrist-engine'); ?></a>
<a class="button button--ghost" href="<?php echo esc_url(antichrist_engine_foundation_get_page_url('join')); ?>"><?php esc_html_e('Enter the Institution', 'antichrist-engine'); ?></a>
</div>
</div>
<div class="hero__visual card foundation-panel foundation-panel--official">
<p class="eyebrow"><?php esc_html_e('Archive Control', '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 echo esc_html($latest_release_label); ?></span>
<strong><?php echo esc_html($latest_release); ?></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['hero_kicker']); ?></p>
</div>
</div>
</section>
<section class="section section--narrow">
<div class="container foundation-layout">
<aside class="foundation-layout__aside">
<article class="card foundation-panel foundation-panel--compact">
<p class="eyebrow"><?php esc_html_e('Archive Protocol', 'antichrist-engine'); ?></p>
<ul class="foundation-list foundation-list--tight">
<?php foreach ($protocols as $protocol) : ?>
<li><?php echo esc_html($protocol['title']); ?></li>
<?php endforeach; ?>
</ul>
</article>
<article class="card foundation-panel foundation-panel--compact">
<p class="eyebrow"><?php esc_html_e('Track Routes', 'antichrist-engine'); ?></p>
<ul class="membership-links">
<li><a href="<?php echo esc_url($journal_url); ?>"><?php esc_html_e('All journal files', 'antichrist-engine'); ?></a></li>
<li><a href="#track-board"><?php esc_html_e('Track board', 'antichrist-engine'); ?></a></li>
<li><a href="#release-desk"><?php esc_html_e('Release desk', 'antichrist-engine'); ?></a></li>
<li><a href="#release-sequence"><?php esc_html_e('Release sequence', 'antichrist-engine'); ?></a></li>
<li><a href="#publication-packets"><?php esc_html_e('Publication packets', 'antichrist-engine'); ?></a></li>
<?php foreach ($series_tracks as $slug => $track) : ?>