<?php include 'includes/header.php'; $fans=file_exists(__DIR__.'/data/fans.json')?json_decode(file_get_contents(__DIR__.'/data/fans.json'),true):[]; if(!is_array($fans))$fans=[]; ?>
<div class="container content-box mt-5"><div class="text-center mb-5"><h1>Fans & Supporters</h1><p class="subtext">A shoutout to the people who back Home Time Radio</p></div><div class="row"><?php foreach($fans as $fan): $img=$fan['image']??''; ?><div class="col-md-6 mb-4"><div class="card h-100"><div class="card-body"><?php if($img): ?><img src="<?= htmlspecialchars($img) ?>" class="img-fluid rounded mb-3" style="max-height:180px;object-fit:cover;" alt="<?= htmlspecialchars($fan['name']??'') ?>"><?php endif; ?><h4 class="card-title"><?= htmlspecialchars($fan['name']??'') ?></h4><p class="card-text"><?= nl2br(htmlspecialchars($fan['description']??'')) ?></p><?php if(!empty($fan['link'])||!empty($fan['url'])): ?><a class="btn btn-dark" target="_blank" rel="noopener" href="<?= htmlspecialchars($fan['link'] ?? $fan['url']) ?>">Visit</a><?php endif; ?></div></div></div><?php endforeach; ?><?php if(empty($fans)): ?><div class="col-12"><div class="bg-light p-4 rounded">No fan entries yet.</div></div><?php endif; ?></div></div><?php include 'includes/footer.php'; ?>
