exhibitions()->yaml(); // Add url based title to each exhibition foreach ($exhibitions as &$exhibition) { $exhibition['title'] = str_replace(['http://', 'https://', 'www.'], '', $exhibition['url']); } // Get contact fields content $email = $page->email(); $instagram = $page->instagram(); // Get image files section content // $images = $page->files()->template("full_screen_image")->sortBy('sort'); $images = $page->files()->template("full_screen_image")->shuffle(); return [ 'exhibitions' => $exhibitions, 'email' => $email, 'instagram' => $instagram, 'images' => $images ]; };