29 lines
No EOL
997 B
PHP
29 lines
No EOL
997 B
PHP
<div class="event-card grid__item" style="--span: <?= $span ?>">
|
|
<a class="event-card__link" href="<?= $event->url() ?>"></a>
|
|
<div class="image-wrapper">
|
|
<?php if ($event->gallery()->toFiles()->count() > 1): ?>
|
|
<?php snippet('picture', [
|
|
'file' => $event->gallery()->toFiles()->first(),
|
|
'class' => 'image-cover'
|
|
]) ?>
|
|
<?php endif ?>
|
|
<?php
|
|
$file = $event->gallery()->toFiles()->count() > 1 ? $event->gallery()->toFiles()->nth(1) : $event->gallery()->toFiles()->first();
|
|
snippet('picture', ["file" => $file]);
|
|
?>
|
|
</div>
|
|
<div class="event-card__infos">
|
|
<div>
|
|
<h5><?= $event->title() ?></h5>
|
|
<?php if ($event->isMapadoEvent() == 'true'): ?>
|
|
<?php snippet('ticket', ['link' => option('ticketingUrl') . 'event/' . $event->mapadoSlug()]) ?>
|
|
<?php endif ?>
|
|
</div>
|
|
<div>
|
|
<div class="event-card__authors">
|
|
<?= $event->authors() ?>
|
|
</div>
|
|
<p><?= $event->schedule() ?></p>
|
|
</div>
|
|
</div>
|
|
</div>
|