base.html.twig 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. {% set theme_config = attribute(config.themes, config.system.pages.theme) %}
  5. {% block head %}
  6. <meta charset="utf-8" />
  7. <title>{% if header.title %}{{ header.title|e('html') }} | {% endif %}{{ site.title|e('html') }}</title>
  8. {% include 'partials/metadata.html.twig' %}
  9. <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
  10. <link rel="icon" type="image/png" href="{{ url('theme://images/favicon.png', true) }}" />
  11. <link rel="canonical" href="{{ page.url(true, true) }}" />
  12. {% block stylesheets %}
  13. {% do assets.addCss('theme://css/pure-0.5.0/grids-min.css', 103) %}
  14. {% do assets.addCss('theme://css-compiled/nucleus.css',102) %}
  15. {% do assets.addCss('theme://css-compiled/template.css',101) %}
  16. {% do assets.addCss('theme://css/custom.css',100) %}
  17. {% do assets.addCss('theme://css/font-awesome.min.css',100) %}
  18. {% do assets.addCss('theme://css/slidebars.min.css') %}
  19. {% if browser.getBrowser == 'msie' and browser.getVersion == 10 %}
  20. {% do assets.addCss('theme://css/nucleus-ie10.css') %}
  21. {% endif %}
  22. {% if browser.getBrowser == 'msie' and browser.getVersion >= 8 and browser.getVersion <= 9 %}
  23. {% do assets.addCss('theme://css/nucleus-ie9.css') %}
  24. {% do assets.addJs('theme://js/html5shiv-printshiv.min.js') %}
  25. {% endif %}
  26. {% endblock %}
  27. {{ assets.css() }}
  28. {% block javascripts %}
  29. {% do assets.addJs('jquery',101) %}
  30. {% do assets.addJs('theme://js/modernizr.custom.71422.js',100) %}
  31. {% do assets.addJs('theme://js/antimatter.js') %}
  32. {% do assets.addJs('theme://js/slidebars.min.js') %}
  33. {% endblock %}
  34. {{ assets.js() }}
  35. {% endblock head%}
  36. </head>
  37. <body id="top" class="{{ page.header.body_classes }}">
  38. <div id="sb-site">
  39. {% block header %}
  40. <header id="header">
  41. <div id="logo">
  42. <h3><a href="{{ base_url == '' ? '/' : base_url }}">{{ config.site.title }}</a></h3>
  43. </div>
  44. <div id="navbar">
  45. {% block header_extra %}{% endblock %}
  46. {% if config.plugins.langswitcher.enabled %}
  47. {% include 'partials/langswitcher.html.twig' %}
  48. {% endif %}
  49. {% block header_navigation %}
  50. {% include 'partials/navigation.html.twig' %}
  51. {% endblock %}
  52. <span class="panel-activation sb-toggle-left navbar-left menu-btn fa fa-bars"></span>
  53. </div>
  54. </header>
  55. {% endblock %}
  56. {% block showcase %}{% endblock %}
  57. {% block body %}
  58. <section id="body" class="{{ class }}">
  59. {% block content %}{% endblock %}
  60. </section>
  61. {% endblock %}
  62. {% block footer %}
  63. <footer id="footer">
  64. <div class="totop">
  65. <span><a href="#" id="toTop"><i class="fa fa-arrow-up"></i></a></span>
  66. </div>
  67. <p><a href="http://getgrav.org">Grav</a> was <i class="fa fa-code"></i> with <i class="fa fa-heart"></i> by <a href="http://www.rockettheme.com">RocketTheme</a>.</p>
  68. </footer>
  69. {% endblock %}
  70. </div>
  71. <div class="sb-slidebar sb-left sb-width-thin">
  72. <div id="panel">
  73. {% include 'partials/navigation.html.twig' %}
  74. </div>
  75. </div>
  76. {% block bottom %}
  77. <script>
  78. $(function () {
  79. $(document).ready(function() {
  80. $.slidebars({
  81. hideControlClasses: true,
  82. scrollLock: true
  83. });
  84. });
  85. });
  86. </script>
  87. {% endblock %}
  88. </body>
  89. </html>