Template AI Engine - Source Excerpt 03
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
<p class="ai-status-line" data-ai-brief-status><?php echo esc_html($ai_copy['workspace_policy']); ?></p>
</article>
<article class="card foundation-panel ai-control-card ai-session-panel" data-ai-session-tools>
<p class="eyebrow"><?php echo esc_html($ai_copy['session_title']); ?></p>
<h2><?php echo esc_html($ai_copy['session_heading']); ?></h2>
<p><?php echo esc_html($ai_copy['session_summary']); ?></p>
<div class="ai-session-meter" data-ai-context-meter aria-label="<?php esc_attr_e('AI prompt and context usage', 'antichrist-engine'); ?>">
<div class="ai-session-meter__row">
<span><?php esc_html_e('Prompt', 'antichrist-engine'); ?></span>
<strong><span data-ai-prompt-count>0</span> / <span data-ai-prompt-limit><?php echo esc_html(number_format_i18n($user_prompt_limit)); ?></span></strong>
</div>
<div class="ai-session-meter__bar" aria-hidden="true">
<span data-ai-prompt-bar style="width: 0%;"></span>
</div>
<div class="ai-session-meter__row">
<span><?php esc_html_e('Local context', 'antichrist-engine'); ?></span>
<strong><span data-ai-context-count>0</span> / <span data-ai-context-limit><?php echo esc_html(number_format_i18n($user_context_limit)); ?></span></strong>
</div>
<div class="ai-session-meter__bar" aria-hidden="true">
<span data-ai-context-bar style="width: 0%;"></span>
</div>
</div>
<div class="ai-session-vault" data-ai-session-vault>
<p class="eyebrow"><?php echo esc_html($ai_copy['session_vault_title']); ?></p>
<label class="ai-control-field" for="ai-session-title">
<span><?php esc_html_e('Snapshot name', 'antichrist-engine'); ?></span>
<input id="ai-session-title" type="text" maxlength="80" data-ai-session-title placeholder="<?php echo esc_attr($ai_copy['session_name_placeholder']); ?>">
</label>
<label class="ai-control-field" for="ai-saved-session">
<span><?php esc_html_e('Saved snapshots', 'antichrist-engine'); ?></span>
<select id="ai-saved-session" data-ai-session-list>
<option value=""><?php echo esc_html($ai_copy['session_saved_empty']); ?></option>
</select>
</label>
<div class="ai-session-actions ai-session-actions--vault">
<button class="button button--ghost" type="button" data-ai-save-session><?php esc_html_e('Save Snapshot', 'antichrist-engine'); ?></button>
<button class="button button--ghost" type="button" data-ai-restore-session disabled><?php esc_html_e('Restore', 'antichrist-engine'); ?></button>
<button class="button button--ghost" type="button" data-ai-delete-session disabled><?php esc_html_e('Delete', 'antichrist-engine'); ?></button>
</div>
</div>
<div class="ai-session-actions">
<button class="button button--ghost" type="button" data-ai-export><?php esc_html_e('Export JSON', 'antichrist-engine'); ?></button>
<button class="button button--ghost" type="button" data-ai-export-markdown><?php esc_html_e('Export Markdown', 'antichrist-engine'); ?></button>
<button class="button button--ghost" type="button" data-ai-copy-transcript><?php esc_html_e('Copy Transcript', 'antichrist-engine'); ?></button>
<label class="button button--ghost ai-session-import" for="ai-transcript-import"><?php esc_html_e('Import JSON', 'antichrist-engine'); ?></label>
<input id="ai-transcript-import" class="screen-reader-text" type="file" accept="application/json,.json" data-ai-import>
</div>
<p class="ai-status-line" data-ai-session-status><?php echo esc_html($ai_copy['session_policy']); ?></p>
</article>
<article class="card foundation-panel ai-control-card ai-key-panel">
<p class="eyebrow"><?php echo esc_html($ai_copy['key_title']); ?></p>
<h2><?php esc_html_e('Bring your own key for larger work', 'antichrist-engine'); ?></h2>
<p><?php echo esc_html($ai_copy['key_summary']); ?></p>
<p class="foundation-panel__subline"><?php echo esc_html($ai_copy['key_instructions']); ?></p>
<form class="ai-key-form" data-ai-key-form autocomplete="off">
<label class="ai-control-field" for="ai-api-key">
<span><?php esc_html_e('OpenAI API key', 'antichrist-engine'); ?></span>
<input id="ai-api-key" type="password" name="api_key" inputmode="text" autocomplete="off" spellcheck="false" placeholder="<?php esc_attr_e('sk-...', 'antichrist-engine'); ?>">
</label>
<div class="ai-key-form__actions">
<button class="button" type="submit"><?php esc_html_e('Save Key', 'antichrist-engine'); ?></button>
<button class="button button--ghost" type="button" data-ai-key-delete <?php disabled(!$user_key_status['has_key']); ?>><?php esc_html_e('Remove Key', 'antichrist-engine'); ?></button>
</div>
<p class="ai-status-line" data-ai-key-status>
<?php echo esc_html($user_key_status['has_key'] ? sprintf(__('Personal key saved ending in %s.', 'antichrist-engine'), $user_key_status['hint']) : __('No personal key saved.', 'antichrist-engine')); ?>
</p>
</form>
</article>
<article class="card foundation-panel ai-control-card ai-policy-card">
<p class="eyebrow"><?php esc_html_e('Cost Guardrails', 'antichrist-engine'); ?></p>
<ul class="foundation-list foundation-list--tight">
<li><?php echo esc_html($ai_copy['site_key_policy']); ?></li>
<li><?php echo esc_html($ai_copy['user_key_policy']); ?></li>
<li><?php echo esc_html($ai_copy['hint']); ?></li>
</ul>
</article>
</aside>
<main class="ai-console__stage" aria-label="<?php esc_attr_e('AI conversation', 'antichrist-engine'); ?>">
<div class="ai-chat-toolbar">
<div>
<p class="eyebrow"><?php esc_html_e('Live Conversation', 'antichrist-engine'); ?></p>
<h2><?php echo esc_html($ai_copy['console_title']); ?></h2>
</div>
<div class="ai-chat-toolbar__actions">
<button class="button button--ghost" type="button" data-ai-fullscreen aria-pressed="false"><?php esc_html_e('Expand', 'antichrist-engine'); ?></button>
<button class="button button--ghost" type="button" data-ai-clear><?php esc_html_e('Clear History', 'antichrist-engine'); ?></button>
</div>
</div>
<div class="ai-chat-log" data-ai-log role="log" aria-live="polite" aria-label="<?php esc_attr_e('AI conversation history', 'antichrist-engine'); ?>"></div>
<section class="ai-share-panel" data-ai-share-panel hidden>
<div class="ai-share-panel__intro">
<p class="eyebrow"><?php esc_html_e('Share Layer', 'antichrist-engine'); ?></p>
<h3><?php echo esc_html($ai_copy['share_title']); ?></h3>
<p><?php echo esc_html($ai_copy['share_summary']); ?></p>
<p class="foundation-panel__subline" data-ai-share-preview><?php echo esc_html($ai_copy['share_empty']); ?></p>
</div>