fix first picture
This commit is contained in:
parent
972faa7e32
commit
3ecb964f29
1 changed files with 4 additions and 1 deletions
|
|
@ -4,7 +4,10 @@
|
|||
<?php if ($event->gallery()->toFiles()->count() > 1): ?>
|
||||
<img class="image-cover" src="<?= $event->gallery()->toFiles()->first()->url() ?>" alt="">
|
||||
<?php endif ?>
|
||||
<?php snippet('picture', ["file" => $event->gallery()->toFiles()->count() > 1 ? $event->gallery()->toFiles()->nth(2) : $event->gallery()->toFiles()->first()]) ?>
|
||||
<?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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue