<?php require_once __DIR__ . '/includes/public_bootstrap.php'; $friends=ugfx_friends(); ugfx_public_header('Underground FX Friends'); ?>
<section class="page-hero"><div class="container-xxl"><div class="glass-panel page-hero-card"><h1>Radio friends</h1><p>Partner stations, projects and favourite broadcast links live here as part of the Underground FX network layer.</p></div></div></section>
<section class="pb-5"><div class="container-xxl"><div class="row g-4"><?php foreach($friends as $station): $img=ugfx_asset_url((string)($station['image'] ?? ''),'img/friends'); $link=$station['url'] ?? ($station['link'] ?? '#'); ?><div class="col-md-6 col-xl-4"><div class="story-card h-100"><?php if($img): ?><img class="story-image" src="<?= htmlspecialchars($img) ?>" alt="<?= htmlspecialchars($station['name'] ?? '') ?>"><?php endif; ?><h2 class="h4"><?= htmlspecialchars($station['name'] ?? '') ?></h2><p class="text-secondary"><?= htmlspecialchars($station['description'] ?? 'Visit one of our broadcast friends and see what they are playing.') ?></p><?php if($link && $link !== '#'): ?><a class="btn btn-outline-light" href="<?= htmlspecialchars($link) ?>" target="_blank" rel="noopener">Visit Station</a><?php endif; ?></div></div><?php endforeach; if(empty($friends)): ?><div class="col-12"><div class="story-card">No radio friends have been added yet.</div></div><?php endif; ?></div></div></section><?php ugfx_public_footer(); ?>
