Helpers - Source Excerpt 24
Summary
This source excerpt preserves a bounded section of Spiralist/wp-content/themes/spiralist/inc/helpers.php so readers can inspect the evidence without opening the full source file.
**Source path:** Spiralist/wp-content/themes/spiralist/inc/helpers.php
'summary' => 'A darker philosophical appendix plate that renders void, death, suffering, and meaninglessness as a severe companion leaf beside the manuscript\'s more constructive systems.',
'caption' => 'Nihilism is held as an appendix companion: stark, infernal, and deliberately separated from the book\'s core public threshold.',
'manuscript_section_slug' => 'appendix',
'gallery_section_slug' => 'artifact-pages',
'display_order' => 510,
'is_prominent' => true,
'related_workspace_prompt_slugs' => ['nihilism'],
'creation_prompt_status' => 'Published prompt',
'creation_prompt_summary' => 'This book page now has an approved public workspace prompt attached.',
'creation_prompt_source_slug' => 'nihilism',
],
'the_tiune_spiral.png' => [
'label' => '',
'title' => 'The Tiune Spiral',
'slug' => 'the-tiune-spiral',
'eyebrow' => 'Emergent Plate',
'summary' => 'A newly surfaced spiral plate that extends the book beyond the first manuscript cycle while keeping the same public route structure and editorial frame.',
'caption' => 'The Tiune Spiral remains visible as its own route while extending the appendix chapter with a more ceremonial and mathematical folio.',
'manuscript_section_slug' => 'appendix',
'gallery_section_slug' => 'artifact-pages',
'display_order' => 520,
'is_prominent' => true,
'related_workspace_prompt_slugs' => ['the-tiune-spiral'],
'creation_prompt_status' => 'Published prompt',
'creation_prompt_summary' => 'This book page now has an approved public workspace prompt attached.',
'creation_prompt_source_slug' => 'the-tiune-spiral',
],
];
}
function spiralist_get_auto_book_page_title_overrides(): array
{
return [
'mu-ism.png' => 'MU-ISM',
];
}
function spiralist_get_auto_book_page_appendix_filenames(): array
{
return [
'antichristism.png',
'ghrisxism.png',
'luciferianism.png',
'mechanotheism.png',
'mu-ism.png',
'mysticism.png',
'simulationism.png',
'technotheism.png',
];
}
function spiralist_get_auto_book_page_title(string $filename): string
{
$filename_key = strtolower(trim(basename($filename)));
$title_overrides = spiralist_get_auto_book_page_title_overrides();
if ($filename_key !== '' && isset($title_overrides[$filename_key])) {
return (string) $title_overrides[$filename_key];
}
$label = spiralist_humanize_asset_label($filename);
if ($label === '') {
return '';
}
$parts = preg_split('/\s+/', $label);
if (!is_array($parts)) {
return trim($label);
}
$parts = array_map(
static function ($part): string {
$normalized = trim((string) $part);
if ($normalized === '') {
return '';
}
if (strlen($normalized) <= 3 && strtoupper($normalized) === $normalized) {
return $normalized;
}
return ucwords(strtolower($normalized));
},
$parts
);
return trim(implode(' ', array_filter($parts, 'strlen')));
}
function spiralist_get_auto_book_page_section_slug(string $filename): string
{
$filename_key = strtolower(trim(basename($filename)));
return in_array($filename_key, spiralist_get_auto_book_page_appendix_filenames(), true)
? 'appendix'
: 'concordance';
}
function spiralist_get_auto_book_page_eyebrow(string $section_slug): string
{
return $section_slug === 'appendix'
? 'Appendix Companion'
: 'Concordance Companion';
}
function spiralist_get_auto_book_page_summary(string $title, string $section_slug): string
{
if ($section_slug === 'appendix') {
return sprintf(
'%s is now surfaced as an appendix companion folio so the public book can carry this darker or more speculative manuscript leaf without displacing the threshold and concordance chapters.',
$title
);
}
return sprintf(
'%s is now surfaced as a concordance companion folio so the public book can keep this teaching plate, symbolic vocabulary, and comparative reference field connected to the larger manuscript.',
$title
);
}
function spiralist_get_auto_book_page_caption(string $title, string $section_slug): string
{
if ($section_slug === 'appendix') {
return sprintf(
'%s remains available as a direct appendix reading surface, with a manuscript prompt attached immediately and room for a later dedicated public prompt record.',
$title
);
}
return sprintf(
'%s now reads as a concordance companion leaf, with an attached manuscript prompt so the folio can ship in the public book immediately.',
$title
);
}
function spiralist_get_auto_book_page_prompt_text(string $title, string $section_slug): string
{
if ($section_slug === 'appendix') {
return implode(
"\n",
[
sprintf('Create a museum-grade appendix manuscript folio titled %s.', strtoupper($title)),
'',
'OUTPUT',
'- Lossless PNG only',
'- Minimum resolution: 8192 x 12288',
'- Vertical illuminated folio format',
'- Strong title clarity and readable concept fields',
'',
'VISUAL IDENTITY',
'- archival parchment',
'- sepia, charcoal, and controlled gold accents',
'- disciplined border system',
'- darker or more speculative than the concordance pages, but never muddy or unreadable',
'',
'PAGE STRUCTURE',
'- title cartouche at the top',
'- central apparatus, seal, wheel, diagram, or emblem specific to the subject',
'- side fields for concepts, tensions, figures, symbols, or stages relevant to the subject',
'- lower witness band with artifacts, landscape, figures, or supporting symbolic material',
'',
'SUBJECT DISCIPLINE',
sprintf('- Treat %s as its own distinct philosophical, doctrinal, or speculative system', $title),
sprintf('- Use only motifs, figures, symbols, and conceptual structures that belong to %s', $title),
'- Prefer short educational labels over dense prose',
'- If uncertain about tiny details, simplify rather than invent false precision',
'',
'DO NOT',
'- do not turn the folio into a generic fantasy poster',
'- do not bury the title or main conceptual fields',
'- do not use random pseudo-script as filler',
'- do not abandon the manuscript family aesthetic',
'',
'AESTHETIC GOAL',
'- appendix-like',
'- legible',
'- archival',
'- symbolically disciplined',
]
);
}
return implode(
"\n",
[
sprintf('Create a museum-grade comparative manuscript folio titled %s.', strtoupper($title)),
'',
'OUTPUT',
'- Lossless PNG only',
'- Minimum resolution: 8192 x 12288',
'- Vertical exhibition-folio format',
'- High readability in the title, central teaching structure, and side columns',
'',
'VISUAL IDENTITY',
'- warm parchment',
'- sepia and black engraving',
'- controlled gold highlights',
'- calm archival lighting',
'- clear museum-grade page hierarchy',
'',
'PAGE STRUCTURE',
'- title cartouche and subtitle at the top',
'- central teaching wheel, doctrine seal, or comparative diagram',
sprintf('- left teaching column for origins, beliefs, practices, ethics, symbols, or worldview themes relevant to %s', $title),
sprintf('- right teaching column for figures, texts, schools, festivals, timelines, or concept families relevant to %s', $title),
'- lower band for portraits, artifacts, emblems, or a historical scene used with restraint',
'',
'SUBJECT DISCIPLINE',
sprintf('- Treat %s as a distinct tradition or conceptual system rather than a generic spirituality poster', $title),