<?php
 
 
$flash = $_SESSION['contact_flash'] ?? $_SESSION['flash'] ?? null;
unset($_SESSION['contact_flash'], $_SESSION['flash']);

 
 
$bodyHtml = Shortcode::expand(Sanitizer::richHtml($page['body'] ?? ''), ['flash' => $flash, 'page' => $page]);
?>

<div class="static-page">
    <div class="static-page__header">
        <h1 class="static-page__title"><?= htmlspecialchars($page['title']) ?></h1>
    </div>

    <div class="static-page__body rich-content">
        <?= $bodyHtml ?>
    </div>
</div>
