diff --git a/app/Views/podcast.php b/app/Views/podcast.php index df2d582044cbf53e583d2c21af8b4e99046edf4d..586f11e1f44f8d43a744f8f4a28e3aa8a5d9a5c9 100644 --- a/app/Views/podcast.php +++ b/app/Views/podcast.php @@ -43,10 +43,15 @@ ] ) ?> <?php foreach ($podcast->platforms as $platform): ?> - <a href="<?= $platform->link_url ?>" title="<?= $platform->label ?>" target="_blank" rel="noopener noreferrer" class="ml-2"> - <?= platform_icon($platform->icon_filename, 'h-8') ?> - </a> - <?php endforeach; ?> + <?php if ($platform->visible): ?> + <a href="<?= $platform->link_url ?>" title="<?= $platform->label ?>" target="_blank" rel="noopener noreferrer" class="ml-2"> + <?= platform_icon( + $platform->icon_filename, + 'h-8' + ) ?> + </a> + <?php endif; ?> + <?php endforeach; ?> </div> <div class="mb-2 opacity-75"> <?= $podcast->description_html ?>