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