Skip to content
wiki.fftac.org

Template AI Engine - Source Excerpt 04

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

<form class="ai-share-form" data-ai-share-form>
                            <label class="ai-control-field" for="ai-share-title">
                                <span><?php esc_html_e('Post title', 'antichrist-engine'); ?></span>
                                <input id="ai-share-title" type="text" name="title" maxlength="140" data-ai-share-title>
                            </label>
                            <label class="ai-control-field" for="ai-share-visibility">
                                <span><?php esc_html_e('Destination', 'antichrist-engine'); ?></span>
                                <select id="ai-share-visibility" name="visibility" data-ai-share-visibility>
                                    <option value="draft"><?php esc_html_e('Private draft', 'antichrist-engine'); ?></option>
                                    <option value="review" selected><?php esc_html_e('Journal review', 'antichrist-engine'); ?></option>
                                    <option value="public"><?php esc_html_e('Public profile post', 'antichrist-engine'); ?></option>
                                </select>
                            </label>
                            <div class="ai-share-form__actions">
                                <button class="button" type="submit" data-ai-share-submit><?php esc_html_e('Share Output', 'antichrist-engine'); ?></button>
                            </div>
                            <p class="ai-status-line" data-ai-share-status><?php echo esc_html($ai_copy['share_policy']); ?></p>
                        </form>
                    </section>

                    <form class="ai-chat-form" data-ai-chat-form>
                        <label for="ai-prompt">
                            <span><?php echo esc_html($ai_copy['form_label']); ?></span>
                            <textarea id="ai-prompt" name="prompt" rows="4" maxlength="<?php echo esc_attr((string) $user_prompt_limit); ?>" placeholder="<?php echo esc_attr($ai_copy['placeholder']); ?>" required data-ai-prompt></textarea>
                        </label>
                        <div class="ai-chat-form__footer">
                            <p class="ai-status-line" data-ai-status><?php echo esc_html($ai_copy['hint']); ?></p>
                            <button class="button ai-send-button" type="submit" data-ai-submit><?php echo esc_html($ai_copy['submit']); ?></button>
                        </div>
                    </form>
                    <noscript>
                        <p class="membership-notice membership-notice--error"><?php esc_html_e('The secure AI console requires JavaScript so requests can use nonce-protected AJAX.', 'antichrist-engine'); ?></p>
                    </noscript>
                </main>
            </div>
        <?php endif; ?>
    </div>
</section>

<section id="ai-command-map" class="section">
    <div class="container">
        <div class="section__header">
            <p class="eyebrow"><?php esc_html_e('AI Command Map', 'antichrist-engine'); ?></p>
            <h2><?php echo esc_html($ai_copy['map_title']); ?></h2>
            <p><?php echo esc_html($ai_copy['map_summary']); ?></p>
        </div>
        <div class="card-grid card-grid--three">
            <?php foreach ($route_map as $route) : ?>
                <?php $route_url = antichrist_engine_foundation_build_target_url('ai_engine', array(), (string) ($route['anchor'] ?? 'ask-the-adversary')); ?>
                <article class="card foundation-panel ai-route-card">
                    <p class="eyebrow"><?php echo esc_html($route['eyebrow']); ?></p>
                    <h3><?php echo esc_html($route['title']); ?></h3>
                    <p><?php echo esc_html($route['summary']); ?></p>
                    <a class="text-link" href="<?php echo esc_url($route_url); ?>"><?php echo esc_html($route['cta']); ?></a>
                </article>
            <?php endforeach; ?>
        </div>
    </div>
</section>

<section id="ai-prompt-lanes" class="section">
    <div class="container">
        <div class="section__header">
            <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>
        <div class="ai-prompt-grid">
            <?php foreach ($prompt_paths as $path) : ?>
                <?php
                $path_args = isset($path['args']) && is_array($path['args']) ? $path['args'] : array();
                $path_url  = antichrist_engine_foundation_build_target_url((string) ($path['target'] ?? 'ai_engine'), $path_args, (string) ($path['anchor'] ?? ''));
                ?>
                <article class="card foundation-panel ai-prompt-card">
                    <p class="eyebrow"><?php echo esc_html($path['eyebrow']); ?></p>
                    <h3><?php echo esc_html($path['title']); ?></h3>
                    <p><?php echo esc_html($path['summary']); ?></p>
                    <blockquote class="ai-prompt-card__prompt"><?php echo esc_html($path['prompt']); ?></blockquote>
                    <p class="foundation-panel__subline"><?php echo esc_html($path['audience']); ?></p>
                    <div class="hero__actions">
                        <a class="button button--ghost" href="<?php echo esc_url($path_url); ?>"><?php echo esc_html($path['cta']); ?></a>
                    </div>
                </article>
            <?php endforeach; ?>
        </div>
    </div>
</section>

<section id="ai-response-contract" class="section">
    <div class="container">
        <div class="section__header">
            <p class="eyebrow"><?php esc_html_e('Response Contract', 'antichrist-engine'); ?></p>
            <h2><?php echo esc_html($ai_copy['contract_title']); ?></h2>
            <p><?php echo esc_html($ai_copy['contract_summary']); ?></p>
        </div>
        <div class="card-grid card-grid--three">
            <?php foreach ($response_contract as $layer) : ?>
                <article class="card foundation-panel ai-contract-card">
                    <p class="eyebrow"><?php echo esc_html($layer['eyebrow']); ?></p>
                    <h3><?php echo esc_html($layer['title']); ?></h3>
                    <p><?php echo esc_html($layer['summary']); ?></p>
                    <p class="foundation-panel__subline"><?php echo esc_html($layer['note']); ?></p>
                </article>
            <?php endforeach; ?>
        </div>
    </div>
</section>

<section id="ai-next-routes" class="section">
    <div class="container">
        <div class="section__header">
            <p class="eyebrow"><?php esc_html_e('Handoff Routes', 'antichrist-engine'); ?></p>
            <h2><?php echo esc_html($ai_copy['next_title']); ?></h2>
            <p><?php echo esc_html($ai_copy['next_summary']); ?></p>
        </div>
        <div class="card-grid card-grid--three">
            <?php foreach ($next_routes as $route) : ?>
                <?php
                $route_args = isset($route['args']) && is_array($route['args']) ? $route['args'] : array();
                $route_url  = antichrist_engine_foundation_build_target_url((string) ($route['target'] ?? 'ai_engine'), $route_args, (string) ($route['anchor'] ?? ''));
                ?>
                <article class="card foundation-panel ai-next-card">
                    <p class="eyebrow"><?php echo esc_html($route['eyebrow']); ?></p>
                    <h3><?php echo esc_html($route['title']); ?></h3>
                    <p><?php echo esc_html($route['summary']); ?></p>
                    <p class="foundation-panel__subline"><?php echo esc_html($route['note']); ?></p>
                    <div class="hero__actions">
                        <a class="button button--ghost" href="<?php echo esc_url($route_url); ?>"><?php echo esc_html($route['cta']); ?></a>
                    </div>
                </article>
            <?php endforeach; ?>
        </div>
    </div>
</section>
<?php
get_footer();