mirror of
https://github.com/ad-aures/castopod.git
synced 2026-03-31 21:39:20 +02:00
fix(icons): set correct names for lock and lock-unlock icons in premium banner
This commit is contained in:
parent
3cd30205d9
commit
37ee6d35b4
1 changed files with 4 additions and 2 deletions
|
|
@ -4,8 +4,10 @@ if ($podcast->is_premium): ?>
|
|||
<?php
|
||||
$isUnlocked = service('premium_podcasts')
|
||||
->isUnlocked($podcast->handle);
|
||||
$shownIcon = $isUnlocked ? 'lock-unlock' : 'lock';
|
||||
$hiddenIcon = $isUnlocked ? 'lock' : 'lock-unlock';
|
||||
// @icon('lock-unlock-fill')
|
||||
// @icon('lock-fill')
|
||||
$shownIcon = $isUnlocked ? 'lock-unlock-fill' : 'lock-fill';
|
||||
$hiddenIcon = $isUnlocked ? 'lock-fill' : 'lock-unlock-fill';
|
||||
?>
|
||||
<div class="flex flex-col items-center justify-between col-start-2 px-2 py-1 mt-2 sm:px-1 md:mt-4 rounded-conditional-full gap-y-2 sm:flex-row bg-accent-base gap-x-2 text-accent-contrast">
|
||||
<p class="inline-flex items-center text-sm md:pl-4 gap-x-2"><?= $isUnlocked ? lang('PremiumPodcasts.banner_lock') : lang('PremiumPodcasts.banner_unlock') ?></p>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue