Edit indentation style

This commit is contained in:
Paul Nicoué 2022-09-09 15:26:04 +02:00
parent 98499d98de
commit 955b13fc44
23 changed files with 14326 additions and 14329 deletions

View file

@ -2,9 +2,9 @@
return function ($site) {
// Get home page object
$homePage = $site->homePage();
// Get home page object
$homePage = $site->homePage();
// Redirect to home page
return go($homePage->url());
// Redirect to home page
return go($homePage->url());
};

View file

@ -2,25 +2,25 @@
return function ($site, $page) {
// Get home page object
$homePage = $site->homePage();
// Get home page object
$homePage = $site->homePage();
// Get exhibitions field content (stored as yaml) and parse it to return an array
$exhibitions = $page->exhibitions()->yaml();
// Get exhibitions field content (stored as yaml) and parse it to return an array
$exhibitions = $page->exhibitions()->yaml();
// Add url based title to each exhibition
foreach ($exhibitions as &$exhibition) {
$exhibition['title'] = str_replace(['http://', 'https://', 'www.'], '', $exhibition['url']);
}
// 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 contact fields content
$email = $page->email();
$instagram = $page->instagram();
return [
'homePage' => $homePage,
'exhibitions' => $exhibitions,
'email' => $email,
'instagram' => $instagram
];
return [
'homePage' => $homePage,
'exhibitions' => $exhibitions,
'email' => $email,
'instagram' => $instagram
];
};

View file

@ -2,14 +2,14 @@
return function ($pages, $page) {
// Get exhibition page object
$exhibitionsPage = $pages->template('exhibitions')->first();
// Get exhibition page object
$exhibitionsPage = $pages->template('exhibitions')->first();
// Get image files section content
$images = $page->files()->template("full_screen_image")->sortBy('sort');
// Get image files section content
$images = $page->files()->template("full_screen_image")->sortBy('sort');
return [
'exhibitionsPage' => $exhibitionsPage,
'images' => $images
];
return [
'exhibitionsPage' => $exhibitionsPage,
'images' => $images
];
};