if optimised files exist, else shows placeholder */ function imgSlot(string $slot, string $file, string $label, string $caption, string $prompt): string { $base = pathinfo($file, PATHINFO_FILENAME); $webp = __DIR__ . '/assets/images/why-ours/' . $base . '.webp'; $jpg = __DIR__ . '/assets/images/why-ours/' . $base . '.jpg'; $webpSrc = 'assets/images/why-ours/' . $base . '.webp'; $jpgSrc = 'assets/images/why-ours/' . $base . '.jpg'; $alt = htmlspecialchars($caption); $html = '
Image slot ' . htmlspecialchars($slot) . ' — place generated image at assets/images/why-ours/' . htmlspecialchars($file) . '
'; $html .= '' . htmlspecialchars($label) . ''; $html .= '
= htmlspecialchars($t['hero_kicker']) ?>
= htmlspecialchars($t['hero_sub']) ?>
= htmlspecialchars($t['problem_eyebrow']) ?>
= htmlspecialchars($t['problem_sub']) ?>
= htmlspecialchars($t['problem_caption']) ?>
= htmlspecialchars($t['analogy_eyebrow']) ?>
= htmlspecialchars($t['a1_body']) ?>
= htmlspecialchars($t['a1_term']) ?>= htmlspecialchars($t['a2_body']) ?>
= htmlspecialchars($t['a2_term']) ?>= htmlspecialchars($t['a3_body']) ?>
= htmlspecialchars($t['a3_term']) ?>= htmlspecialchars($t['graph_eyebrow']) ?>
= htmlspecialchars($t['graph_sub']) ?>
= htmlspecialchars($t['graph_caption']) ?>
= htmlspecialchars($t['compare_eyebrow']) ?>
= htmlspecialchars($t['compare_sub']) ?>
| = htmlspecialchars($t['compare_th_q']) ?> | = htmlspecialchars($t['compare_th_gpt']) ?> | = htmlspecialchars($t['compare_th_dbn']) ?> |
|---|---|---|
| = htmlspecialchars($t['compare_r1_q']) ?> | = htmlspecialchars($t['compare_r1_gpt']) ?> | = htmlspecialchars($t['compare_r1_dbn']) ?> |
| = htmlspecialchars($t['compare_r2_q']) ?> | = htmlspecialchars($t['compare_r2_gpt']) ?> | = htmlspecialchars($t['compare_r2_dbn']) ?> |
| = htmlspecialchars($t['compare_r3_q']) ?> | = htmlspecialchars($t['compare_r3_gpt']) ?> | = htmlspecialchars($t['compare_r3_dbn']) ?> |
= htmlspecialchars($t['compare_caption']) ?>
= htmlspecialchars($t['llm_eyebrow']) ?>
= $t['llm_body_html'] ?>
= htmlspecialchars($t['privacy_eyebrow']) ?>
= htmlspecialchars($t['privacy_body']) ?>
= htmlspecialchars($t['cta_sub']) ?>