fix(platforms): display platform link only when visible is toggled on

add condition to podcast page

fix #39
This commit is contained in:
Yassine Doghri 2020-10-07 10:12:14 +00:00
parent 2f07992e55
commit 6e503c8d61
1 changed files with 9 additions and 4 deletions

View File

@ -43,9 +43,14 @@
] ]
) ?> ) ?>
<?php foreach ($podcast->platforms as $platform): ?> <?php foreach ($podcast->platforms as $platform): ?>
<?php if ($platform->visible): ?>
<a href="<?= $platform->link_url ?>" title="<?= $platform->label ?>" target="_blank" rel="noopener noreferrer" class="ml-2"> <a href="<?= $platform->link_url ?>" title="<?= $platform->label ?>" target="_blank" rel="noopener noreferrer" class="ml-2">
<?= platform_icon($platform->icon_filename, 'h-8') ?> <?= platform_icon(
$platform->icon_filename,
'h-8'
) ?>
</a> </a>
<?php endif; ?>
<?php endforeach; ?> <?php endforeach; ?>
</div> </div>
<div class="mb-2 opacity-75"> <div class="mb-2 opacity-75">