<?php $pageTitle='Events — Almost Heaven Radio'; include __DIR__ . '/header.php'; include __DIR__ . '/menu.php'; $promo=file_exists(__DIR__.'/data/promo.json')?json_decode((string)file_get_contents(__DIR__.'/data/promo.json'),true):[]; if(!is_array($promo)) $promo=[]; ?>
<main class="content-area"><div class="content-wrapper page-shell"><section class="content-card"><h1>🎉 Events & Promos</h1><p>What’s happening at Almost Heaven Radio.</p><?php if(!empty($promo['title'])): ?><div class="feature-card" style="margin-top:18px;"><h3><?= htmlspecialchars($promo['title']) ?></h3><?php if(!empty($promo['start']) || !empty($promo['end'])): ?><p class="text-muted"><?= htmlspecialchars(trim(($promo['start'] ?? '') . ' ' . ($promo['end'] ?? ''))) ?></p><?php endif; ?><p><?= nl2br(htmlspecialchars((string)($promo['description'] ?? ''))) ?></p><?php if(!empty($promo['prizes'])): ?><p><strong>Prizes:</strong> <?= htmlspecialchars((string)$promo['prizes']) ?></p><?php endif; ?></div><?php else: ?><p>No featured event is pinned right now.</p><?php endif; ?></section></div></main>
<?php include __DIR__ . '/footer.php'; ?>