Skip to content
Snippets Groups Projects
Commit 6e503c8d authored by Yassine Doghri's avatar Yassine Doghri
Browse files

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

add condition to podcast page

fix #39
parent 2f07992e
No related branches found
No related tags found
No related merge requests found
...@@ -43,10 +43,15 @@ ...@@ -43,10 +43,15 @@
] ]
) ?> ) ?>
<?php foreach ($podcast->platforms as $platform): ?> <?php foreach ($podcast->platforms as $platform): ?>
<a href="<?= $platform->link_url ?>" title="<?= $platform->label ?>" target="_blank" rel="noopener noreferrer" class="ml-2"> <?php if ($platform->visible): ?>
<?= platform_icon($platform->icon_filename, 'h-8') ?> <a href="<?= $platform->link_url ?>" title="<?= $platform->label ?>" target="_blank" rel="noopener noreferrer" class="ml-2">
</a> <?= platform_icon(
<?php endforeach; ?> $platform->icon_filename,
'h-8'
) ?>
</a>
<?php endif; ?>
<?php endforeach; ?>
</div> </div>
<div class="mb-2 opacity-75"> <div class="mb-2 opacity-75">
<?= $podcast->description_html ?> <?= $podcast->description_html ?>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment