From 7fb9be054e2d1fc904a39bc06ef587e296723272 Mon Sep 17 00:00:00 2001 From: Andy Miller Date: Thu, 5 May 2016 17:22:50 -0600 Subject: [PATCH] hooked into config --- admin.yaml | 4 +++ blueprints.yaml | 26 +++++++++++++++++++ themes/grav/templates/partials/base.html.twig | 2 +- themes/grav/templates/partials/nav.html.twig | 6 +++-- 4 files changed, 35 insertions(+), 3 deletions(-) diff --git a/admin.yaml b/admin.yaml index 631f2d8d..5cda9223 100644 --- a/admin.yaml +++ b/admin.yaml @@ -2,6 +2,10 @@ enabled: true route: '/admin' theme: grav logo_text: '' +body_classes: '' +sidebar: + activate: hover + size: small dashboard: days_of_stats: 7 session: diff --git a/blueprints.yaml b/blueprints.yaml index e995330d..447cba61 100644 --- a/blueprints.yaml +++ b/blueprints.yaml @@ -52,6 +52,32 @@ form: placeholder: "Grav" help: Text to display in place of the default Grav logo + body_classes: + type: text + label: Body classes + size: medium + help: add a space seperated name of custom body classes + + sidebar.activate: + type: select + label: Sidebar Activation + help: Control how the sidebar is activated + size: small + default: tab + options: + tab: Tab + hover: Hover + + sidebar.size: + type: select + label: Sidebar Size + help: Control the width of the sidebar + size: medium + default: auto + options: + auto: Automatically width + small: Small width + theme: type: hidden label: Theme diff --git a/themes/grav/templates/partials/base.html.twig b/themes/grav/templates/partials/base.html.twig index 9c7aafa4..ffde4a4f 100644 --- a/themes/grav/templates/partials/base.html.twig +++ b/themes/grav/templates/partials/base.html.twig @@ -30,7 +30,7 @@ {% endblock %} {% block body %} - + {% block page %}
diff --git a/themes/grav/templates/partials/nav.html.twig b/themes/grav/templates/partials/nav.html.twig index d8546e40..90fbec7f 100644 --- a/themes/grav/templates/partials/nav.html.twig +++ b/themes/grav/templates/partials/nav.html.twig @@ -1,6 +1,8 @@ {% if authorize(['admin.login', 'admin.super']) %} -
-{% endif %} \ No newline at end of file +{% endif %}