events-grid - finish
This commit is contained in:
parent
024e142a23
commit
41a7b7b4cb
5 changed files with 36 additions and 11 deletions
|
|
@ -35,6 +35,7 @@ tabs:
|
|||
width: 1/2
|
||||
placeholder: 1h20
|
||||
disabled: true
|
||||
help: Nécessite **qu'une séance au moins ait une heure de fin** sur Mapado.
|
||||
when:
|
||||
isMapadoEvent: true
|
||||
- width: 1/2
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
@ -23,9 +23,11 @@
|
|||
'asc'
|
||||
);
|
||||
|
||||
snippet('events-grid', ['events' => $orderedEvents->limit(2)])
|
||||
snippet('events-grid', ['events' => $orderedEvents->slice(0, 2)])
|
||||
?>
|
||||
|
||||
<?php snippet('newsletter-section') ?>
|
||||
|
||||
<?php snippet('events-grid', ['events' => $orderedEvents->slice(2, 5)]) ?>
|
||||
|
||||
<?php snippet('footer') ?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue