diff --git a/site/controllers/gallery.php b/site/controllers/gallery.php new file mode 100644 index 0000000..8107f78 --- /dev/null +++ b/site/controllers/gallery.php @@ -0,0 +1,15 @@ +template('exhibitions')->first(); + + // Get artworks files section content + $artworks = $page->files()->template("artwork")->sortBy('sort'); + + return [ + 'exhibitionsPage' => $exhibitionsPage, + 'artworks' => $artworks + ]; +}; diff --git a/site/templates/gallery.twig b/site/templates/gallery.twig index af83019..d2374db 100644 --- a/site/templates/gallery.twig +++ b/site/templates/gallery.twig @@ -1 +1,21 @@ {% extends "base.twig" %} + +{% block header %} +
+ + + +
+{% endblock %} + +{% block main %} +{% endblock %}