Foundation - Source Excerpt 14
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
$organization_id
);
if ($item_list) {
$graphs[] = $item_list;
}
}
if ('research' === $page_key) {
$distribution = array();
foreach (antichrist_engine_foundation_get_research_api_endpoint_items() as $endpoint) {
if (empty($endpoint['url'])) {
continue;
}
$distribution[] = array(
'@type' => 'DataDownload',
'name' => (string) ($endpoint['label'] ?? ''),
'description' => (string) ($endpoint['description'] ?? ''),
'contentUrl' => (string) ($endpoint['url'] ?? ''),
'encodingFormat'=> 'application/json',
'identifier' => (string) ($endpoint['path'] ?? ''),
);
}
foreach (antichrist_engine_foundation_get_research_export_downloads() as $download) {
if (empty($download['url'])) {
continue;
}
$distribution[] = array(
'@type' => 'DataDownload',
'name' => (string) ($download['title'] ?? ''),
'description' => (string) ($download['summary'] ?? ''),
'contentUrl' => (string) ($download['url'] ?? ''),
'encodingFormat'=> antichrist_engine_foundation_get_encoding_format_for_label((string) ($download['format_label'] ?? '')),
'identifier' => (string) ($download['filename'] ?? ''),
);
}
$graphs[] = array(
'@type' => 'Dataset',
'@id' => $current_url . '#research-dataset',
'url' => $current_url,
'name' => __('FFTAC research atlas', 'antichrist-engine'),
'description' => __('Theme-backed public research atlas covering claim dossiers, timeline entries, projection history, sources, briefings, and publication-series metadata.', 'antichrist-engine'),
'isAccessibleForFree'=> true,
'creator' => array('@id' => $organization_id),
'publisher' => array('@id' => $organization_id),
'distribution' => $distribution,
);
}
if ('texts' === $page_key) {
$text_items = array();
foreach (antichrist_engine_foundation_textual_reading_routes() as $route) {
$text_items[] = array(
'title' => (string) ($route['title'] ?? ''),
'summary' => (string) ($route['summary'] ?? ''),
'url' => antichrist_engine_foundation_build_target_url('texts', array(), sanitize_title((string) ($route['title'] ?? 'text-route'))),
'meta' => (string) ($route['note'] ?? ''),
);
}
foreach (antichrist_engine_foundation_textual_case_files() as $case_file) {
$text_items[] = array(
'title' => (string) ($case_file['title'] ?? ''),
'summary' => (string) ($case_file['summary'] ?? ''),
'url' => antichrist_engine_foundation_build_target_url('texts', array(), sanitize_title((string) ($case_file['title'] ?? 'text-case'))),
'meta' => (string) ($case_file['focus'] ?? ''),
);
}
$item_list = antichrist_engine_foundation_build_item_list_graph(
$current_url . '#texts-lab-items',
__('FFTAC texts lab routes and case files', 'antichrist-engine'),
__('Launch-time reading routes and recurring case files for passages most often turned into prophecy panic, institutional obedience, and false certainty.', 'antichrist-engine'),
$text_items,
$current_url,
$website_id,
$organization_id
);
if ($item_list) {
$graphs[] = $item_list;
}
}
if ('symbols' === $page_key) {
$symbol_items = array();
foreach (antichrist_engine_foundation_symbol_lexicon() as $symbol) {
$symbol_items[] = array(
'title' => (string) ($symbol['title'] ?? ''),
'summary' => (string) ($symbol['summary'] ?? ''),
'url' => antichrist_engine_foundation_build_target_url('symbols', array(), (string) ($symbol['anchor'] ?? sanitize_title((string) ($symbol['title'] ?? 'symbol')))),
'meta' => (string) ($symbol['meaning'] ?? ''),
);
}
foreach (antichrist_engine_foundation_symbolic_artifact_studies() as $artifact) {
$symbol_items[] = array(
'title' => (string) ($artifact['title'] ?? ''),
'summary' => (string) ($artifact['summary'] ?? ''),
'url' => antichrist_engine_foundation_build_target_url('symbols', array(), (string) ($artifact['anchor'] ?? sanitize_title((string) ($artifact['title'] ?? 'symbol-study')))),
'meta' => implode(' / ', array_filter(array(
(string) ($artifact['medium'] ?? ''),
(string) ($artifact['status'] ?? ''),
))),
);
}
$item_list = antichrist_engine_foundation_build_item_list_graph(
$current_url . '#symbols-lab-items',
__('FFTAC symbols lab lexicon and studies', 'antichrist-engine'),
__('Named working marks, artifact studies, and visual-system references that keep the symbolic layer accountable to the public record.', 'antichrist-engine'),
$symbol_items,
$current_url,
$website_id,
$organization_id
);
if ($item_list) {
$graphs[] = $item_list;
}
}
if ('downloads' === $page_key) {
$download_items = array();
foreach (antichrist_engine_foundation_download_collections() as $collection) {
$download_items[] = array(
'title' => (string) ($collection['title'] ?? ''),
'summary' => (string) ($collection['summary'] ?? ''),
'url' => antichrist_engine_foundation_build_target_url('downloads', array(), (string) ($collection['anchor'] ?? 'downloads')),
'meta' => (string) ($collection['eyebrow'] ?? ''),
);
}
$item_list = antichrist_engine_foundation_build_item_list_graph(
$current_url . '#downloads-library',
__('FFTAC downloads library collections', 'antichrist-engine'),
__('Canonical brand assets, press materials, supplemental symbol studies, seal files, and machine-usable research exports published as one governed public library.', 'antichrist-engine'),
$download_items,
$current_url,
$website_id,
$organization_id
);
if ($item_list) {
$graphs[] = $item_list;
}
}
if ('journal' === $page_key) {
$series_items = array();
foreach (antichrist_engine_foundation_publication_series() as $slug => $track) {
$series_items[] = array(
'title' => (string) ($track['name'] ?? $slug),
'summary' => (string) ($track['description'] ?? ''),
'url' => add_query_arg('track', $slug, antichrist_engine_foundation_get_page_url('journal')),
'meta' => (string) ($track['classification'] ?? ''),
);
}
foreach (antichrist_engine_foundation_publication_release_desk() as $route) {
$series_items[] = array(
'title' => (string) ($route['title'] ?? __('Publication route', 'antichrist-engine')),
'summary' => (string) ($route['summary'] ?? ''),
'url' => antichrist_engine_foundation_build_target_url(
(string) ($route['target'] ?? ''),
(array) ($route['args'] ?? array()),
(string) ($route['anchor'] ?? '')
),
'meta' => (string) ($route['eyebrow'] ?? __('Release desk', 'antichrist-engine')),
);
}
foreach (antichrist_engine_foundation_publication_route_packets() as $packet) {
$series_items[] = array(
'title' => (string) ($packet['title'] ?? __('Publication packet', 'antichrist-engine')),
'summary' => (string) ($packet['summary'] ?? ''),
'url' => antichrist_engine_foundation_build_target_url(
(string) ($packet['primary_target'] ?? ''),
(array) ($packet['primary_args'] ?? array()),
(string) ($packet['primary_anchor'] ?? '')
),