<?php include 'includes/header.php'; $djs=file_exists(__DIR__.'/data/djs.json')?json_decode(file_get_contents(__DIR__.'/data/djs.json'),true):[]; if(!is_array($djs))$djs=[]; ?>
<div class="container content-box mt-5"><div class="text-center mb-5"><h1>Meet Our DJs</h1><p class="subtext">The voices and personalities behind Home Time Radio</p></div><div class="row"><?php foreach($djs as $dj): $img=$dj['image']??''; ?><div class="col-lg-6 mb-4"><div class="card h-100"><div class="row g-0 h-100"><div class="col-md-4 p-3 d-flex align-items-center justify-content-center"><?php if($img): ?><img src="<?= htmlspecialchars($img) ?>" class="img-fluid rounded" style="max-height:180px;object-fit:cover;" alt="<?= htmlspecialchars($dj['name']??'') ?>"><?php endif; ?></div><div class="col-md-8"><div class="card-body"><h4 class="card-title"><?= htmlspecialchars($dj['name']??'') ?></h4><?php if(!empty($dj['show'])): ?><p class="card-text"><strong><?= htmlspecialchars($dj['show']) ?></strong></p><?php endif; ?><p class="card-text"><?= nl2br(htmlspecialchars($dj['bio']??'')) ?></p></div></div></div></div></div><?php endforeach; ?><?php if(empty($djs)): ?><div class="col-12"><div class="bg-light p-4 rounded">No DJs added yet.</div></div><?php endif; ?></div></div><?php include 'includes/footer.php'; ?>
