add ticket animation / link

This commit is contained in:
isUnknown 2024-07-31 07:59:51 +02:00
parent be549bba16
commit 8a1f9370dd
11 changed files with 89 additions and 7 deletions

View file

@ -3,10 +3,12 @@
<div class="event-card__infos">
<div>
<h5><?= $event->title() ?></h5>
<?= svg('assets/images/icons/ticket.svg') ?>
<?php if ($event->isMapadoEvent() == 'true'): ?>
<?php snippet('ticket', ['link' => 'https://cdn-besancon.mapado.com/event/' . $event->mapadoSlug()]) ?>
<?php endif ?>
</div>
<div>
<p class="event-card__authors"><?= $event->authors() ?></p>
<div class="event-card__authors"><?= $event->authors() ?></div>
<p><?= $event->schedule() ?></p>
</div>
</div>

3
site/snippets/ticket.php Normal file
View file

@ -0,0 +1,3 @@
<a class="ticket" href="<?= $link ?>" target="_blank" title="Aller à la billetterie">
<?= svg('assets/images/icons/ticket.svg') ?>
</a>