From 3ecb964f29aa18a7d75565061afdaa6ce4fad58d Mon Sep 17 00:00:00 2001 From: isUnknown Date: Fri, 6 Sep 2024 13:58:37 +0200 Subject: [PATCH] fix first picture --- site/snippets/event-card.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/site/snippets/event-card.php b/site/snippets/event-card.php index 30bf089..3f85760 100644 --- a/site/snippets/event-card.php +++ b/site/snippets/event-card.php @@ -4,7 +4,10 @@ gallery()->toFiles()->count() > 1): ?> - $event->gallery()->toFiles()->count() > 1 ? $event->gallery()->toFiles()->nth(2) : $event->gallery()->toFiles()->first()]) ?> + gallery()->toFiles()->count() > 1 ? $event->gallery()->toFiles()->nth(1) : $event->gallery()->toFiles()->first(); + snippet('picture', ["file" => $file]); + ?>