Skip to content
wiki.fftac.org

Foundation - Source Excerpt 06

Back to Foundation

Summary

This source excerpt preserves a bounded section of Anti-Christ.org/wp-content/plugins/fftac-foundation-core/inc/foundation.php so readers can inspect the evidence without opening the full source file.

**Source path:** Anti-Christ.org/wp-content/plugins/fftac-foundation-core/inc/foundation.php

if ('' === trim((string) $query)) {
        return $url;
    }

    return add_query_arg('s', (string) $query, $url);
}

/**
 * Determines whether the homepage has enough depth to justify search-first navigation.
 *
 * @return bool
 */
function antichrist_engine_foundation_should_show_homepage_navigator()
{
    $claim_total  = count(antichrist_engine_foundation_claim_dossiers());
    $source_total = count(antichrist_engine_foundation_research_sources());
    $index_total  = count(antichrist_engine_foundation_get_navigator_index());

    return $claim_total >= 20 && $source_total >= 20 && $index_total >= 45;
}

/**
 * Determines whether the navigator modal should render on the current request.
 *
 * @return bool
 */
function antichrist_engine_foundation_should_show_navigator()
{
    return !is_front_page() || antichrist_engine_foundation_should_show_homepage_navigator();
}

/**
 * Gets the curated cross-site navigator index.
 *
 * @return array<int, array<string, string>>
 */
function antichrist_engine_foundation_get_navigator_index()
{
    static $items = null;

    if (null !== $items) {
        return $items;
    }

    $items       = array();
    $definitions = antichrist_engine_foundation_page_definitions();
    $page_keys   = array('manifesto', 'charter', 'review_notices', 'philosophy', 'research', 'recovery', 'standards', 'ai_engine', 'texts', 'symbols', 'downloads', 'about', 'questions', 'contact', 'support', 'join', 'journal', 'privacy', 'terms', 'community', 'sitemap');

    foreach ($page_keys as $page_key) {
        if (!isset($definitions[$page_key])) {
            continue;
        }

        $profile  = antichrist_engine_foundation_document_profile($page_key);
        $keywords = implode(' ', array(
            $definitions[$page_key]['title'] ?? '',
            $definitions[$page_key]['nav_label'] ?? '',
            $profile['classification'] ?? '',
            $profile['authority'] ?? '',
        ));

        $items[] = array(
            'id'         => 'page-' . $page_key,
            'title'      => (string) ($definitions[$page_key]['title'] ?? $page_key),
            'summary'    => (string) ($profile['authority'] ?? ''),
            'url'        => antichrist_engine_foundation_get_page_url($page_key),
            'type'       => 'Page',
            'group'      => 'Foundation Record',
            'meta'       => (string) ($profile['record_id'] ?? ''),
            'keywords'   => $keywords,
            'searchable' => antichrist_engine_foundation_normalize_search_text($keywords . ' ' . ($profile['review_cycle'] ?? '') . ' ' . ($profile['record_id'] ?? '')),
        );
    }

    $positioning = antichrist_engine_foundation_philosophy_positioning();
    $commitments = antichrist_engine_foundation_moral_commitments();
    $method_questions = antichrist_engine_foundation_moral_method_questions();
    $moral_keywords = implode(' ', array_merge(
        array(
            'moral center post dogmatic humanism post-dogmatic humanism free conscience adversarial inquiry counterfeit authority dignity before dogma repair over ruin power must answer algorithmic eschatology',
            (string) ($positioning['title'] ?? ''),
            (string) ($positioning['summary'] ?? ''),
            (string) ($positioning['public_narrative'] ?? ''),
        ),
        array_map(static function ($commitment) {
            return trim(((string) ($commitment['title'] ?? '')) . ' ' . ((string) ($commitment['summary'] ?? '')));
        }, $commitments),
        array_map('strval', $method_questions)
    ));

    $items[] = array(
        'id'         => 'moral-center',
        'title'      => __('Moral Center', 'antichrist-engine'),
        'summary'    => __('Post-Dogmatic Humanism, adversarial inquiry, moral commitments, and the transparent method behind the public record.', 'antichrist-engine'),
        'url'        => antichrist_engine_foundation_build_target_url('philosophy', array(), 'moral-commitments'),
        'type'       => 'Section',
        'group'      => 'Philosophy',
        'meta'       => __('Free conscience in public', 'antichrist-engine'),
        'keywords'   => $moral_keywords,
        'searchable' => antichrist_engine_foundation_normalize_search_text($moral_keywords),
    );

    foreach (antichrist_engine_foundation_public_thesis_cards() as $index => $thesis) {
        $keywords = implode(' ', array(
            $thesis['eyebrow'] ?? '',
            $thesis['title'] ?? '',
            $thesis['summary'] ?? '',
            $thesis['keywords'] ?? '',
            $thesis['cta'] ?? '',
            'public thesis about anti christ post dogmatic humanism first contact plain explanation',
        ));

        $items[] = array(
            'id'         => 'public-thesis-' . ($index + 1),
            'title'      => (string) ($thesis['title'] ?? __('Public thesis', 'antichrist-engine')),
            'summary'    => (string) ($thesis['summary'] ?? ''),
            'url'        => antichrist_engine_foundation_build_target_url(
                (string) ($thesis['target'] ?? 'about'),
                (array) ($thesis['args'] ?? array()),
                (string) ($thesis['anchor'] ?? 'public-thesis')
            ),
            'type'       => 'Public Thesis',
            'group'      => 'About',
            'meta'       => (string) ($thesis['eyebrow'] ?? __('Public thesis', 'antichrist-engine')),
            'keywords'   => $keywords,
            'searchable' => antichrist_engine_foundation_normalize_search_text($keywords),
        );
    }

    foreach (antichrist_engine_foundation_standards_route_map() as $index => $route) {
        $keywords = implode(' ', array(
            $route['eyebrow'] ?? '',
            $route['title'] ?? '',
            $route['summary'] ?? '',
            $route['cta'] ?? '',
            'editorial standards launch voice checks final proof gates ai governance publication archive review cadence',
        ));

        $items[] = array(
            'id'         => 'standards-route-' . ($index + 1),
            'title'      => (string) ($route['title'] ?? __('Standards route', 'antichrist-engine')),
            'summary'    => (string) ($route['summary'] ?? ''),
            'url'        => antichrist_engine_foundation_build_target_url('standards', array(), (string) ($route['anchor'] ?? 'standards-map')),
            'type'       => 'Standards Route',
            'group'      => 'Editorial Standards',
            'meta'       => (string) ($route['eyebrow'] ?? __('Standards route', 'antichrist-engine')),
            'keywords'   => $keywords,
            'searchable' => antichrist_engine_foundation_normalize_search_text($keywords),
        );
    }

    foreach (antichrist_engine_foundation_launch_voice_checks() as $index => $check) {
        $keywords = implode(' ', array(
            $check['eyebrow'] ?? '',
            $check['title'] ?? '',
            $check['summary'] ?? '',
            $check['note'] ?? '',
            $check['keywords'] ?? '',
            'launch voice check public voice post dogmatic humanism counterfeit authority recovery ai support contribution',
        ));

        $items[] = array(
            'id'         => 'launch-voice-check-' . ($index + 1),
            'title'      => (string) ($check['title'] ?? __('Launch voice check', 'antichrist-engine')),
            'summary'    => (string) ($check['summary'] ?? ''),
            'url'        => antichrist_engine_foundation_build_target_url('standards', array(), 'launch-voice-checks'),
            'type'       => 'Standards Check',
            'group'      => 'Editorial Standards',
            'meta'       => (string) ($check['eyebrow'] ?? __('Launch voice check', 'antichrist-engine')),
            'keywords'   => $keywords,
            'searchable' => antichrist_engine_foundation_normalize_search_text($keywords),
        );
    }

    foreach (antichrist_engine_foundation_launch_proof_gates() as $index => $gate) {
        $keywords = implode(' ', array(
            $gate['eyebrow'] ?? '',
            $gate['surface'] ?? '',
            $gate['title'] ?? '',
            $gate['test'] ?? '',
            $gate['pass'] ?? '',
            $gate['owner'] ?? '',
            $gate['cta'] ?? '',
            $gate['keywords'] ?? '',
            'launch proof gate go live final proof rendered page signoff standards runbook',
        ));

        $items[] = array(
            'id'         => 'launch-proof-gate-' . ($index + 1),
            'title'      => (string) ($gate['surface'] ?? $gate['title'] ?? __('Launch proof gate', 'antichrist-engine')),
            'summary'    => (string) ($gate['title'] ?? ''),
            'url'        => antichrist_engine_foundation_build_target_url('standards', array(), 'launch-proof-gates'),