Skip to content
wiki.fftac.org

Template AI Engine - Source Excerpt 02

Back to Template AI Engine

Summary

This source excerpt preserves a bounded section of Anti-Christ.org/wp-content/themes/antichrist-engine/template-ai-engine.php so readers can inspect the evidence without opening the full source file.

**Source path:** Anti-Christ.org/wp-content/themes/antichrist-engine/template-ai-engine.php

<?php foreach ($personas as $persona_key => $persona) : ?>
                                <article class="ai-flavor-card<?php echo $persona_key === $default_persona ? ' is-active' : ''; ?>" data-ai-flavor-card data-persona="<?php echo esc_attr($persona_key); ?>">
                                    <p class="eyebrow"><?php echo esc_html($persona['mode'] ?? $persona['label']); ?></p>
                                    <h3><?php echo esc_html($persona['label']); ?></h3>
                                    <p><?php echo esc_html($persona['best_for'] ?? $persona['summary']); ?></p>
                                    <p class="foundation-panel__subline"><strong><?php esc_html_e('Shape:', 'antichrist-engine'); ?></strong> <?php echo esc_html($persona['output_shape'] ?? ''); ?></p>
                                    <p class="foundation-panel__subline"><strong><?php esc_html_e('Boundary:', 'antichrist-engine'); ?></strong> <?php echo esc_html($persona['boundary'] ?? ''); ?></p>
                                </article>
                            <?php endforeach; ?>
                        </div>
                    </article>

                    <article class="card foundation-panel ai-control-card ai-control-card--protocol">
                        <p class="eyebrow"><?php esc_html_e('Inquiry Protocol', 'antichrist-engine'); ?></p>
                        <h2><?php echo esc_html($ai_copy['protocol_deck_title']); ?></h2>
                        <p><?php echo esc_html($ai_copy['protocol_deck_summary']); ?></p>
                        <label class="ai-control-field" for="ai-protocol">
                            <span><?php esc_html_e('Choose an operation', 'antichrist-engine'); ?></span>
                            <select id="ai-protocol" name="protocol" data-ai-protocol>
                                <?php foreach ($protocols as $protocol_key => $protocol) : ?>
                                    <option value="<?php echo esc_attr($protocol_key); ?>" data-summary="<?php echo esc_attr($protocol['summary']); ?>" data-mode="<?php echo esc_attr($protocol['mode'] ?? ''); ?>" data-output-shape="<?php echo esc_attr($protocol['output_shape'] ?? ''); ?>" <?php selected($protocol_key, $default_protocol); ?>>
                                        <?php echo esc_html($protocol['label']); ?>
                                    </option>
                                <?php endforeach; ?>
                            </select>
                        </label>
                        <p class="foundation-panel__subline" data-ai-protocol-summary><?php echo esc_html($protocols[$default_protocol]['summary'] ?? ''); ?></p>
                        <div class="ai-protocol-grid" aria-label="<?php esc_attr_e('AI inquiry protocols', 'antichrist-engine'); ?>">
                            <?php foreach ($protocols as $protocol_key => $protocol) : ?>
                                <button class="ai-protocol-card<?php echo $protocol_key === $default_protocol ? ' is-active' : ''; ?>" type="button" data-ai-protocol-card data-protocol="<?php echo esc_attr($protocol_key); ?>" data-prompt="<?php echo esc_attr($protocol['starter']); ?>">
                                    <span class="eyebrow"><?php echo esc_html($protocol['mode'] ?? $protocol['label']); ?></span>
                                    <strong><?php echo esc_html($protocol['label']); ?></strong>
                                    <span><?php echo esc_html($protocol['best_for'] ?? $protocol['summary']); ?></span>
                                    <small><strong><?php esc_html_e('Shape:', 'antichrist-engine'); ?></strong> <?php echo esc_html($protocol['output_shape'] ?? ''); ?></small>
                                </button>
                            <?php endforeach; ?>
                        </div>
                    </article>

                    <article class="card foundation-panel ai-control-card">
                        <p class="eyebrow"><?php esc_html_e('Starter Prompts', 'antichrist-engine'); ?></p>
                        <div class="ai-starter-list">
                            <?php foreach ($personas as $persona_key => $persona) : ?>
                                <button class="ai-starter" type="button" data-ai-starter data-persona="<?php echo esc_attr($persona_key); ?>" data-prompt="<?php echo esc_attr($persona['starter']); ?>">
                                    <span><?php echo esc_html($persona['label']); ?></span>
                                    <strong><?php echo esc_html($persona['starter']); ?></strong>
                                </button>
                            <?php endforeach; ?>
                        </div>
                    </article>

                    <article class="card foundation-panel ai-control-card ai-control-card--lanes">
                        <p class="eyebrow"><?php esc_html_e('Prompt Lanes', 'antichrist-engine'); ?></p>
                        <h2><?php echo esc_html($ai_copy['prompt_title']); ?></h2>
                        <p><?php echo esc_html($ai_copy['prompt_summary']); ?></p>
                        <div class="ai-lane-list" aria-label="<?php esc_attr_e('AI prompt lanes', 'antichrist-engine'); ?>">
                            <?php foreach ($prompt_paths as $path) : ?>
                                <?php
                                $lane_target = (string) ($path['target'] ?? '');
                                $lane_anchor = (string) ($path['anchor'] ?? '');
                                $lane_persona = 'research';
                                $lane_protocol = 'authority_audit';

                                if ('recovery' === $lane_target) {
                                    $lane_persona = 'recovery';
                                    $lane_protocol = 'fear_decoder';
                                } elseif ('journal' === $lane_target) {
                                    $lane_persona = 'algorithmic';
                                    $lane_protocol = 'systems_map';
                                } elseif ('executive-briefings' === $lane_anchor) {
                                    $lane_persona = 'briefing';
                                    $lane_protocol = 'public_note';
                                } elseif ('research-command' === $lane_anchor) {
                                    $lane_persona = 'research';
                                    $lane_protocol = 'evidence_ledger';
                                }
                                ?>
                                <button class="ai-lane-card" type="button" data-ai-prompt-lane data-lane="<?php echo esc_attr($path['eyebrow']); ?>" data-persona="<?php echo esc_attr($lane_persona); ?>" data-protocol="<?php echo esc_attr($lane_protocol); ?>" data-prompt="<?php echo esc_attr($path['prompt']); ?>">
                                    <span class="eyebrow"><?php echo esc_html($path['eyebrow']); ?></span>
                                    <strong><?php echo esc_html($path['title']); ?></strong>
                                    <span><?php echo esc_html($path['summary']); ?></span>
                                    <small><?php echo esc_html($path['audience']); ?></small>
                                </button>
                            <?php endforeach; ?>
                        </div>
                    </article>

                    <article class="card foundation-panel ai-control-card ai-workspace-panel" data-ai-workspace-tools>
                        <p class="eyebrow"><?php echo esc_html($ai_copy['workspace_title']); ?></p>
                        <h2><?php echo esc_html($ai_copy['workspace_heading']); ?></h2>
                        <p><?php echo esc_html($ai_copy['workspace_summary']); ?></p>
                        <label class="ai-control-field" for="ai-workspace-brief">
                            <span><?php echo esc_html($ai_copy['workspace_label']); ?></span>
                            <textarea id="ai-workspace-brief" rows="5" maxlength="1200" data-ai-brief placeholder="<?php echo esc_attr($ai_copy['workspace_placeholder']); ?>"></textarea>
                        </label>
                        <div class="ai-session-actions ai-session-actions--workspace">
                            <button class="button button--ghost" type="button" data-ai-save-brief><?php esc_html_e('Save Brief', 'antichrist-engine'); ?></button>
                            <button class="button button--ghost" type="button" data-ai-apply-brief><?php esc_html_e('Add To Prompt', 'antichrist-engine'); ?></button>
                            <button class="button button--ghost" type="button" data-ai-clear-brief><?php esc_html_e('Clear Brief', 'antichrist-engine'); ?></button>
                        </div>