Skip to content
wiki.fftac.org

Template Journal - Source Excerpt 05

Back to Template Journal

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

<p class="foundation-panel__subline"><?php echo esc_html($cadence_item['note']); ?></p>
                        </article>
                    <?php endforeach; ?>
                </div>
            </section>

            <?php if ($review_notices) : ?>
                <section class="card foundation-panel">
                    <header class="entry-header">
                        <p class="eyebrow"><?php esc_html_e('Review Notices', 'antichrist-engine'); ?></p>
                        <h2><?php esc_html_e('Change control between archive growth and future canon', 'antichrist-engine'); ?></h2>
                        <p><?php esc_html_e('The journal is where experimental work proves it can survive public scrutiny. The review log makes the eventual path from archive pressure to formal amendment visible in advance.', 'antichrist-engine'); ?></p>
                    </header>
                    <div class="statement-grid">
                        <?php foreach (array_slice($review_notices, 0, 3) as $notice) : ?>
                            <article 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>
                                <p><?php echo esc_html($notice['summary'] ?? ''); ?></p>
                                <p class="foundation-panel__subline"><?php echo esc_html($notice['current_state'] ?? ''); ?></p>
                                <div class="review-notice-card__actions">
                                    <a class="text-link" href="<?php echo esc_url($notice['record_url'] ?? antichrist_engine_foundation_get_page_url('review_notices')); ?>"><?php esc_html_e('Open notice', 'antichrist-engine'); ?></a>
                                    <a class="text-link" href="<?php echo esc_url(antichrist_engine_foundation_get_page_url('review_notices')); ?>"><?php esc_html_e('Open review log', 'antichrist-engine'); ?></a>
                                </div>
                            </article>
                        <?php endforeach; ?>
                    </div>
                </section>
            <?php endif; ?>

            <section class="card foundation-panel">
                <header class="entry-header">
                    <p class="eyebrow"><?php esc_html_e('Publication Standard', 'antichrist-engine'); ?></p>
                    <h2><?php echo esc_html($journal_copy['standards_title']); ?></h2>
                </header>
                <div class="statement-grid">
                    <?php foreach ($protocols as $protocol) : ?>
                        <article class="statement-card">
                            <h3><?php echo esc_html($protocol['title']); ?></h3>
                            <p><?php echo esc_html($protocol['summary']); ?></p>
                        </article>
                    <?php endforeach; ?>
                </div>
            </section>

            <?php if ($journal_query->have_posts()) : ?>
                <section class="card foundation-panel">
                    <header class="entry-header">
                        <p class="eyebrow"><?php esc_html_e('Archive Files', 'antichrist-engine'); ?></p>
                        <h2><?php echo esc_html($selected_track ? $selected_series['name'] : $journal_copy['archive_title']); ?></h2>
                    </header>
                    <div class="filter-chip-group" aria-label="<?php esc_attr_e('Journal track filters', 'antichrist-engine'); ?>">
                        <a class="filter-chip<?php echo $selected_track ? '' : ' is-active'; ?>" href="<?php echo esc_url($journal_url); ?>"><?php esc_html_e('All files', 'antichrist-engine'); ?></a>
                        <?php foreach ($series_tracks as $slug => $track) : ?>
                            <a class="filter-chip<?php echo $selected_track === $slug ? ' is-active' : ''; ?>" href="<?php echo esc_url(add_query_arg('track', $slug, $journal_url)); ?>">
                                <?php echo esc_html($track['name']); ?>
                            </a>
                        <?php endforeach; ?>
                    </div>
                    <div class="post-grid">
                        <?php while ($journal_query->have_posts()) : ?>
                            <?php $journal_query->the_post(); ?>
                            <?php get_template_part('template-parts/content', 'excerpt'); ?>
                        <?php endwhile; ?>
                    </div>
                    <div class="foundation-pagination">
                        <?php
                        echo paginate_links(array(
                            'total'   => (int) $journal_query->max_num_pages,
                            'current' => $paged,
                            'add_args' => $selected_track ? array('track' => $selected_track) : false,
                        ));
                        ?>
                    </div>
                </section>
            <?php else : ?>
                <?php
                $empty_summary = $selected_track
                    ? sprintf((string) $journal_copy['track_empty_summary'], (string) ($selected_series['name'] ?? ''))
                    : (string) $journal_copy['empty_summary'];
                ?>
                <article class="card foundation-panel publication-empty-state">
                    <p class="eyebrow"><?php esc_html_e('Archive In Formation', 'antichrist-engine'); ?></p>
                    <h2><?php echo esc_html($journal_copy['empty_title']); ?></h2>
                    <p><?php echo esc_html($empty_summary); ?></p>
                    <?php antichrist_engine_render_publication_empty_routes($empty_routes); ?>
                    <?php if (!$selected_track) : ?>
                        <header class="section-heading section-heading--compact">
                            <p class="eyebrow"><?php esc_html_e('Launch Queue', 'antichrist-engine'); ?></p>
                            <h3><?php echo esc_html($journal_copy['launch_queue_title']); ?></h3>
                            <p><?php echo esc_html($journal_copy['launch_queue_summary']); ?></p>
                        </header>
                        <div class="journal-sequence-grid">
                            <?php foreach ($launch_priorities as $priority) : ?>
                                <article class="statement-card launch-roadmap-card journal-sequence-card">
                                    <p class="eyebrow"><?php echo esc_html($priority['eyebrow']); ?></p>
                                    <h3><?php echo esc_html($priority['title']); ?></h3>
                                    <p><?php echo esc_html($priority['summary']); ?></p>
                                    <?php if (!empty($priority['rationale'])) : ?>
                                        <p class="journal-sequence-card__label"><?php esc_html_e('Why This File Matters', 'antichrist-engine'); ?></p>
                                        <p><?php echo esc_html($priority['rationale']); ?></p>
                                    <?php endif; ?>
                                    <?php if (!empty($priority['outcome'])) : ?>
                                        <p class="foundation-panel__subline"><?php echo esc_html($priority['outcome']); ?></p>
                                    <?php endif; ?>
                                    <div class="hero__actions">
                                        <a class="text-link" href="<?php echo esc_url($resolve_priority_url($priority)); ?>"><?php echo esc_html($priority['cta']); ?></a>
                                        <?php if (!empty($priority['related_target']) && !empty($priority['related_cta'])) : ?>
                                            <a class="text-link" href="<?php echo esc_url(antichrist_engine_foundation_build_target_url(
                                                (string) $priority['related_target'],
                                                (array) ($priority['related_args'] ?? array()),
                                                (string) ($priority['related_anchor'] ?? '')