<?php require_once __DIR__ . '/includes/public_bootstrap.php'; $events=ugfx_events(); ugfx_public_header('Underground FX Events'); ?>
<section class="page-hero"><div class="container-xxl"><div class="glass-panel page-hero-card"><h1>Events and promotions</h1><p>Campaigns, contests, poster drops, community nights and station promo pushes all live here in one cleaner event board.</p></div></div></section>
<section class="pb-5"><div class="container-xxl"><div class="row g-4"><?php foreach($events as $item): ?><div class="col-lg-6"><article class="event-card"><img class="story-image" src="<?= htmlspecialchars($item['image']) ?>" alt="<?= htmlspecialchars($item['title']) ?>"><div class="event-meta"><span class="meta-pill"><?= htmlspecialchars($item['start']) ?></span><?php if(!empty($item['featured'])): ?><span class="meta-pill">Featured</span><?php endif; ?><span class="meta-pill"><?= htmlspecialchars($item['location']) ?></span></div><h2 class="h4"><?= htmlspecialchars($item['title']) ?></h2><p class="text-secondary mb-0"><?= htmlspecialchars($item['description']) ?></p></article></div><?php endforeach; if(empty($events)): ?><div class="col-12"><div class="story-card">No Underground FX events have been posted yet.</div></div><?php endif; ?></div></div></section><?php ugfx_public_footer(); ?>
