base.html.twig 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. {% set theme_config = attribute(config.themes, config.system.pages.theme) %}
  2. <!DOCTYPE html>
  3. <html lang="{{ grav.language.getActive ?: grav.config.site.default_lang }}">
  4. <head>
  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') }}" />
  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. {% block javascripts %}
  28. {% do assets.addJs('jquery', 101) %}
  29. {% do assets.addJs('theme://js/modernizr.custom.71422.js', 100) %}
  30. {% do assets.addJs('theme://js/antimatter.js') %}
  31. {% do assets.addJs('theme://js/slidebars.min.js') %}
  32. {% do assets.addJs('theme://js/parallax.min.js') %}
  33. {% do assets.addJs('theme://js/script-bio.js') %}
  34. {% endblock %}
  35. {% block assets deferred %}
  36. {{ assets.css()|raw }}
  37. {{ assets.js()|raw }}
  38. {% endblock %}
  39. {% endblock head %}
  40. </head>
  41. <body id="top" class="{{ page.header.body_classes }}">
  42. <div id="sb-site">
  43. {% block header %}
  44. <header id="header">
  45. <div id="logo">
  46. <img src="/user/pages/01.home/Republique-francaise-logo-sans-text.svg" alt="logo République Française">
  47. <img src="user/pages/01.home/EPAU_logo_EPAU_vecto-seul.svg" alt="logo EPAU">
  48. </div>
  49. <div id="navbar">
  50. {% block header_extra %}{% endblock %}
  51. {% if config.plugins.langswitcher.enabled %}
  52. {% include 'partials/langswitcher.html.twig' %}
  53. {% endif %}
  54. {% block header_navigation %}
  55. {% include 'partials/navigation.html.twig' %}
  56. {% endblock %}
  57. <span class="panel-activation sb-toggle-left navbar-left menu-btn fa fa-bars"></span>
  58. </div>
  59. </header>
  60. {% endblock %}
  61. {% block showcase %}{% endblock %}
  62. {% block body %}
  63. <section id="body" class="{{ class }}">
  64. {% block content %}{% endblock %}
  65. </section>
  66. {% endblock %}
  67. {% block footer %}
  68. <footer id="footer">
  69. <div class="totop">
  70. <span><a href="#" id="toTop"><i class="fa fa-arrow-up"></i></a></span>
  71. </div>
  72. <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>
  73. </footer>
  74. {% endblock %}
  75. </div>
  76. {% block sidebar_navigation %}
  77. <div class="sb-slidebar sb-left sb-width-thin">
  78. <div id="panel">
  79. {% include 'partials/navigation.html.twig' %}
  80. </div>
  81. </div>
  82. {% endblock %}
  83. {% block bottom %}
  84. <script>
  85. $(function () {
  86. $(document).ready(function() {
  87. $.slidebars({
  88. hideControlClasses: true,
  89. scrollLock: true
  90. });
  91. });
  92. });
  93. </script>
  94. {{ assets.js('bottom')|raw }}
  95. {% endblock %}
  96. </body>
  97. </html>