add callout ticket button show / hide

This commit is contained in:
isUnknown 2024-09-18 17:34:52 +02:00
parent aa572adb16
commit baffb504b6
4 changed files with 15 additions and 5 deletions

View file

@ -1,4 +1,6 @@
<section class="callout" style="--color: <?= $site->calloutColor() ?>;">
<h4><?= $site->calloutText()->inline() ?></h4>
<a class="ticket-link" href="<?= option('ticketingUrl') ?>" target="_blank" title="Aller à la billetterie"><?php snippet('ticket') ?> Billetterie</a>
<?php if ($site->calloutTicket()->exists() && $site->calloutTicket() == 'true'): ?>
<a class="ticket-link" href="<?= option('ticketingUrl') ?>" target="_blank" title="Aller à la billetterie"><?php snippet('ticket') ?> Billetterie</a>
<?php endif ?>
</section>