events-grid - finish

This commit is contained in:
isUnknown 2024-07-31 11:20:08 +02:00
parent 024e142a23
commit 41a7b7b4cb
5 changed files with 36 additions and 11 deletions

View file

@ -1,17 +1,23 @@
<div class="event-card grid__item" style="--span: <?= $span ?>">
<a href="<?= $event->url() ?>" title="Voir le détail">
<a href="<?= $event->url() ?>" title="Voir l'événément">
<?php snippet('picture', ["file" => $event->gallery()->toFiles()->first()]) ?>
</a>
<div class="event-card__infos">
<div>
<h5><?= $event->title() ?></h5>
<a href="<?= $event->url() ?>" title="Voir l'événément">
<h5><?= $event->title() ?></h5>
</a>
<?php if ($event->isMapadoEvent() == 'true'): ?>
<?php snippet('ticket', ['link' => 'https://cdn-besancon.mapado.com/event/' . $event->mapadoSlug()]) ?>
<?php endif ?>
</div>
<div>
<div class="event-card__authors"><?= $event->authors() ?></div>
<p><?= $event->schedule() ?></p>
<div class="event-card__authors">
<a href="<?= $event->url() ?>" title="Voir l'événément">
<?= $event->authors() ?>
</a>
</div>
<a href="<?= $event->url() ?>" title="Voir l'événément"><p><?= $event->schedule() ?></p></a>
</div>
</div>
</a>
</div>