julienmonnerie/site/controllers/home.php

18 lines
373 B
PHP
Raw Normal View History

<?php
2022-11-25 14:17:23 +01:00
return function ($site) {
2025-05-08 17:10:00 +02:00
// Get items from image gallery structure field
$galleryItems = $site->image_gallery()->toStructure();
// Get contact fields content
2022-11-25 14:17:23 +01:00
$email = $site->email();
$instagram = $site->instagram();
return [
2025-05-08 17:10:00 +02:00
'galleryItems' => $galleryItems,
'email' => $email,
'instagram' => $instagram,
];
};