mirror of
https://code.castopod.org/adaures/castopod
synced 2025-04-19 13:01:19 +00:00
fix(platforms): display platform link only when visible is toggled on
add condition to podcast page fix #39
This commit is contained in:
parent
2f07992e55
commit
6e503c8d61
@ -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 ?>
|
||||
|
Loading…
x
Reference in New Issue
Block a user