diff --git a/templates/partials/_base.html.twig b/templates/partials/_base.html.twig new file mode 100644 index 0000000..bad9ead --- /dev/null +++ b/templates/partials/_base.html.twig @@ -0,0 +1,97 @@ +{% set theme_config = attribute(config.themes, config.system.pages.theme) %} + + + +{% block head %} + + {% if header.title %}{{ header.title|e('html') }} | {% endif %}{{ site.title|e('html') }} + {% include 'partials/metadata.html.twig' %} + + + + + {% block stylesheets %} + {% do assets.addCss('theme://css/pure-0.5.0/grids-min.css', 103) %} + {% do assets.addCss('theme://css-compiled/nucleus.css', 102) %} + {% do assets.addCss('theme://css-compiled/template.css', 101) %} + {% do assets.addCss('theme://css/custom.css', 100) %} + {% do assets.addCss('theme://css/font-awesome.min.css', 100) %} + {% do assets.addCss('theme://css/slidebars.min.css') %} + + {% if browser.getBrowser == 'msie' and browser.getVersion == 10 %} + {% do assets.addCss('theme://css/nucleus-ie10.css') %} + {% endif %} + {% if browser.getBrowser == 'msie' and browser.getVersion >= 8 and browser.getVersion <= 9 %} + {% do assets.addCss('theme://css/nucleus-ie9.css') %} + {% do assets.addJs('theme://js/html5shiv-printshiv.min.js') %} + {% endif %} + {% endblock %} + {{ assets.css() }} + + {% block javascripts %} + {% do assets.addJs('jquery', 101) %} + {% do assets.addJs('theme://js/modernizr.custom.71422.js', 100) %} + {% do assets.addJs('theme://js/antimatter.js') %} + {% do assets.addJs('theme://js/slidebars.min.js') %} + {% endblock %} + {{ assets.js() }} + +{% endblock head %} + + +
+ {% block header %} + + {% endblock %} + + {% block showcase %}{% endblock %} + + {% block body %} +
+ {% block content %}{% endblock %} +
+ {% endblock %} + + {% block footer %} + + {% endblock %} +
+
+
+ {% include 'partials/navigation.html.twig' %} +
+
+ {% block bottom %} + {{ assets.js('bottom') }} + + {% endblock %} + + diff --git a/templates/partials/base.html.twig b/templates/partials/base.html.twig index bad9ead..98815cd 100644 --- a/templates/partials/base.html.twig +++ b/templates/partials/base.html.twig @@ -1,97 +1 @@ -{% set theme_config = attribute(config.themes, config.system.pages.theme) %} - - - -{% block head %} - - {% if header.title %}{{ header.title|e('html') }} | {% endif %}{{ site.title|e('html') }} - {% include 'partials/metadata.html.twig' %} - - - - - {% block stylesheets %} - {% do assets.addCss('theme://css/pure-0.5.0/grids-min.css', 103) %} - {% do assets.addCss('theme://css-compiled/nucleus.css', 102) %} - {% do assets.addCss('theme://css-compiled/template.css', 101) %} - {% do assets.addCss('theme://css/custom.css', 100) %} - {% do assets.addCss('theme://css/font-awesome.min.css', 100) %} - {% do assets.addCss('theme://css/slidebars.min.css') %} - - {% if browser.getBrowser == 'msie' and browser.getVersion == 10 %} - {% do assets.addCss('theme://css/nucleus-ie10.css') %} - {% endif %} - {% if browser.getBrowser == 'msie' and browser.getVersion >= 8 and browser.getVersion <= 9 %} - {% do assets.addCss('theme://css/nucleus-ie9.css') %} - {% do assets.addJs('theme://js/html5shiv-printshiv.min.js') %} - {% endif %} - {% endblock %} - {{ assets.css() }} - - {% block javascripts %} - {% do assets.addJs('jquery', 101) %} - {% do assets.addJs('theme://js/modernizr.custom.71422.js', 100) %} - {% do assets.addJs('theme://js/antimatter.js') %} - {% do assets.addJs('theme://js/slidebars.min.js') %} - {% endblock %} - {{ assets.js() }} - -{% endblock head %} - - -
- {% block header %} - - {% endblock %} - - {% block showcase %}{% endblock %} - - {% block body %} -
- {% block content %}{% endblock %} -
- {% endblock %} - - {% block footer %} - - {% endblock %} -
-
-
- {% include 'partials/navigation.html.twig' %} -
-
- {% block bottom %} - {{ assets.js('bottom') }} - - {% endblock %} - - +{% extends '_base.html.twig' %}