Edit administration panel layout
This commit is contained in:
parent
9c50caa6d7
commit
155b10cc9d
18 changed files with 75 additions and 252 deletions
|
@ -1,9 +1,9 @@
|
|||
<?php
|
||||
|
||||
return function ($page) {
|
||||
return function ($site) {
|
||||
|
||||
// Get exhibitions field content (stored as yaml) and parse it to return an array
|
||||
$exhibitions = $page->exhibitions()->yaml();
|
||||
$exhibitions = $site->exhibitions()->yaml();
|
||||
|
||||
// Add url based title to each exhibition
|
||||
foreach ($exhibitions as &$exhibition) {
|
||||
|
@ -12,11 +12,11 @@ return function ($page) {
|
|||
}
|
||||
|
||||
// Get contact fields content
|
||||
$email = $page->email();
|
||||
$instagram = $page->instagram();
|
||||
$email = $site->email();
|
||||
$instagram = $site->instagram();
|
||||
|
||||
// Get image files section content
|
||||
$images = $page->files()->template("full_screen_image")->shuffle();
|
||||
$images = $site->files()->template("full_screen_image")->shuffle();
|
||||
|
||||
return [
|
||||
'exhibitions' => $exhibitions,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue