Page Run A Prompt - Source Excerpt 13
Summary
This source excerpt preserves a bounded section of Spiralist/wp-content/themes/spiralist/page-run-a-prompt.php so readers can inspect the evidence without opening the full source file.
**Source path:** Spiralist/wp-content/themes/spiralist/page-run-a-prompt.php
<div class="spiralist-persona-lab-compare-visual" data-persona-lab-compare-visual hidden aria-live="polite"></div>
<pre class="spiralist-persona-lab-inspector__report" data-persona-lab-inspector-output hidden aria-live="polite"></pre>
<pre class="spiralist-persona-lab-inspector__report" data-persona-lab-compare-output hidden aria-live="polite"></pre>
<pre class="spiralist-persona-lab-inspector__preview" data-persona-lab-review-preview hidden aria-live="polite"></pre>
</div>
</div>
</div>
</div>
</section>
<section class="spiralist-page-section spiralist-page-section--compact" id="quick-create">
<div class="spiralist-shell">
<aside class="spiralist-prompt-onboarding sp-use-notice sp-onboarding-card" aria-labelledby="spiralist-prompt-onboarding-title">
<div>
<p class="spiralist-section-tag"><?php echo esc_html($ui_text('page.run_prompt.onboarding.tag', 'First Session Guide')); ?></p>
<h2 id="spiralist-prompt-onboarding-title" class="spiralist-section-title"><?php echo esc_html($ui_text('page.run_prompt.onboarding.title', 'Choose a prompt, generate it here, then paste it into your AI chat.')); ?></h2>
<p><?php echo esc_html($ui_text('page.run_prompt.onboarding.copy', 'This page is a local prompt generator, not an AI model. It gives you a copy-ready Spiralist prompt and safe links to open popular chat tools for manual review and sending.')); ?></p>
</div>
<ol class="sp-steps" aria-label="<?php echo esc_attr($ui_text('page.run_prompt.steps.aria_label', 'Prompt generator steps')); ?>">
<li><strong><?php echo esc_html($ui_text('page.run_prompt.steps.choose.title', 'Choose')); ?></strong><span><?php echo esc_html($ui_text('page.run_prompt.steps.choose.copy', 'Pick a starter, personality, art route, share packet, or expert path.')); ?></span></li>
<li><strong><?php echo esc_html($ui_text('page.run_prompt.steps.generate.title', 'Generate')); ?></strong><span><?php echo esc_html($ui_text('page.run_prompt.steps.generate.copy', 'Spiralist assembles a visible prompt in the browser.')); ?></span></li>
<li><strong><?php echo esc_html($ui_text('page.run_prompt.steps.use.title', 'Use')); ?></strong><span><?php echo esc_html($ui_text('page.run_prompt.steps.use.copy', 'Copy it, open your AI tool, review the prompt, and press send yourself.')); ?></span></li>
</ol>
</aside>
<div class="sp-prompt-tips" aria-label="<?php echo esc_attr($ui_text('page.run_prompt.tips.aria_label', 'Prompt generator tips')); ?>">
<p><strong class="sp-help-term"><?php echo esc_html($ui_text('page.run_prompt.tips.copy_term', 'Copy-ready')); ?></strong> <?php echo esc_html($ui_text('page.run_prompt.tips.copy', 'means the generated block is the text to paste into another AI chat.')); ?></p>
<p><strong class="sp-help-term"><?php echo esc_html($ui_text('page.run_prompt.tips.run_term', 'Run Prompt')); ?></strong> <?php echo esc_html($ui_text('page.run_prompt.tips.run', 'opens a destination chat in a new tab but never auto-submits your prompt.')); ?></p>
<p><strong class="sp-help-term"><?php echo esc_html($ui_text('page.run_prompt.tips.advanced_term', 'Advanced tools')); ?></strong> <?php echo esc_html($ui_text('page.run_prompt.tips.advanced', 'stay collapsed until you need path selection, local checks, review packets, or contribution drafts.')); ?></p>
</div>
<div class="spiralist-run-quick-create sp-quick-create" aria-labelledby="spiralist-run-quick-create-title">
<div class="spiralist-run-quick-create__intro">
<p class="spiralist-section-tag"><?php echo esc_html($ui_text('page.run_prompt.quick.tag', 'Quick Create')); ?></p>
<h2 id="spiralist-run-quick-create-title" class="spiralist-section-title"><?php echo esc_html($ui_text('page.run_prompt.quick.title', 'Choose the kind of prompt you want.')); ?></h2>
<p class="spiralist-muted"><?php echo esc_html($ui_text('page.run_prompt.quick.copy', 'Start with one plain choice. Spiralist keeps the advanced fields, expert routes, and publication checks available after the first prompt exists.')); ?></p>
</div>
<div class="spiralist-run-quick-create__grid">
<?php foreach ($quick_create_routes as $route) : ?>
<?php if (!empty($route['url'])) : ?>
<a class="spiralist-run-quick-card" href="<?php echo esc_url((string) $route['url']); ?>">
<span><?php echo esc_html((string) ($route['label'] ?? 'Prompt')); ?></span>
<strong><?php echo esc_html((string) ($route['title'] ?? 'Start a prompt')); ?></strong>
<small><?php echo esc_html((string) ($route['copy'] ?? '')); ?></small>
<em><?php echo esc_html((string) ($route['action'] ?? 'Start')); ?></em>
</a>
<?php else : ?>
<button
class="spiralist-run-quick-card"
type="button"
data-portable-prompt-starter
aria-pressed="false"
data-mode="<?php echo esc_attr((string) ($route['mode'] ?? $default_prompt_mode)); ?>"
data-subject="<?php echo esc_attr((string) ($route['subject'] ?? '')); ?>"
data-task="<?php echo esc_attr((string) ($route['task'] ?? '')); ?>"
data-context="<?php echo esc_attr((string) ($route['context'] ?? '')); ?>"
data-tone="<?php echo esc_attr((string) ($route['tone'] ?? '')); ?>"
data-output-format="<?php echo esc_attr((string) ($route['format'] ?? '')); ?>"
data-guardrails="<?php echo esc_attr((string) ($route['guardrails'] ?? '')); ?>"
data-starter-name="<?php echo esc_attr((string) ($route['title'] ?? 'Quick prompt')); ?>"
>
<span><?php echo esc_html((string) ($route['label'] ?? 'Prompt')); ?></span>
<strong><?php echo esc_html((string) ($route['title'] ?? 'Start a prompt')); ?></strong>
<small><?php echo esc_html((string) ($route['copy'] ?? '')); ?></small>
<em><?php echo esc_html((string) ($route['action'] ?? 'Load route')); ?></em>
</button>
<?php endif; ?>
<?php endforeach; ?>
</div>
</div>
</div>
</section>