base.html.twig 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. {% set body_classes = body_class(['header-fixed', 'header-animated', 'header-dark', 'header-transparent', 'sticky-footer']) %}
  2. {% set grid_size = theme_var('grid-size') %}
  3. {% set compress = theme_var('production-mode') ? '.min.css' : '.css' %}
  4. <!DOCTYPE html>
  5. <html lang="{{ grav.language.getActive ?: grav.config.site.default_lang }}">
  6. <head>
  7. {% block head %}
  8. <meta charset="utf-8" />
  9. <title>{% if header.title %}{{ header.title|e('html') }} | {% endif %}{{ site.title|e('html') }}</title>
  10. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  11. <meta name="viewport" content="width=device-width, initial-scale=1">
  12. <meta name="theme-color" content="#317EFB"/>
  13. {% include 'partials/metadata.html.twig' %}
  14. <link rel="icon" type="image/png" href="{{ url('theme://images/favicon.png') }}" />
  15. <link rel="canonical" href="{{ page.url(true, true) }}" />
  16. {% block stylesheets %}
  17. {% do assets.addCss('theme://css-compiled/theme'~compress) %}
  18. {% do assets.addCss('theme://css/leaflet.css') %}
  19. {% do assets.addCss('theme://css/jquery.bxslider.min.css') %}
  20. {% endblock %}
  21. {% block javascripts %}
  22. {% do assets.addJs('theme://js/jquery-3.4.1.min.js', {group:'bottom'}) %}
  23. {% do assets.addJs('theme://js/leaflet.js', {group:'bottom'}) %}
  24. {% do assets.addJs('theme://js/imagesloaded.pkgd.min.js', {group:'bottom'}) %}
  25. {% do assets.addJs('theme://js/masonry.filter.js', {group:'bottom'}) %}
  26. {% do assets.addJs('theme://js/masonry.pkgd.min.js', {group:'bottom'}) %}
  27. {% do assets.addJs('theme://js/jquery.bxslider.min.js', {group:'bottom'}) %}
  28. {% do assets.addJs('theme://js/site.min.js', {group:'bottom'}) %}
  29. {% endblock %}
  30. {% block assets deferred %}
  31. {{ assets.css()|raw }}
  32. {{ assets.js()|raw }}
  33. {% endblock %}
  34. {% endblock head %}
  35. <!-- Matomo -->
  36. <script type="text/javascript">
  37. var _paq = window._paq || [];
  38. _paq.push([function() {
  39. var self = this;
  40. function getOriginalVisitorCookieTimeout() {
  41. var now = new Date(),
  42. nowTs = Math.round(now.getTime() / 1000),
  43. visitorInfo = self.getVisitorInfo();
  44. var createTs = parseInt(visitorInfo[2]);
  45. var cookieTimeout = 33696000; // 13 mois en secondes
  46. var originalTimeout = createTs + cookieTimeout - nowTs;
  47. return originalTimeout;
  48. }
  49. this.setVisitorCookieTimeout( getOriginalVisitorCookieTimeout() );
  50. }]);
  51. _paq.push(['trackPageView']);
  52. _paq.push(['enableLinkTracking']);
  53. (function() {
  54. var u="//lecampus.kevintessier.net/matomo/";
  55. _paq.push(['setTrackerUrl', u+'matomo.php']);
  56. _paq.push(['setSiteId', '1']);
  57. var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
  58. g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
  59. })();
  60. </script>
  61. <!-- End Matomo Code -->
  62. <script type="application/ld+json">
  63. {
  64. "@graph": [
  65. {
  66. "@type": "Place",
  67. "address": {
  68. "@type": "PostalAddress",
  69. "addressLocality": "Eurre",
  70. "addressRegion": "Val de Drôme",
  71. "postalCode": "26400",
  72. "streetAddress": "Place Michel Paulus,Ecosite du Val de Drôme"
  73. },
  74. "name": "Le Campus Biovallee"
  75. }
  76. ]
  77. }
  78. </script>
  79. </head>
  80. <body>
  81. {% block header %}
  82. <header>
  83. <nav>
  84. <div class="logo">
  85. <a href="/"><img alt="le_campus_biovallee" src="/user/themes/lecampus/images/logo_lecampus.svg" alt="logo_lecampus"></a>
  86. </div>
  87. <nav class="dropmenu">
  88. {% block header_navigation %}
  89. {% include 'partials/navigation.html.twig' %}
  90. {% endblock %}
  91. </nav>
  92. <div class="reso">
  93. <a href="https://www.facebook.com/Lecampus.Valdedrome" target="_blank" rel =" noopener "><img src="/user/themes/lecampus/images/fb.svg" alt="logo-facebook"></a>
  94. <a href="https://www.youtube.com/user/CCVDful" target="_blank" rel =" noopener "><img src="/user/themes/lecampus/images/yt.svg" alt="logo-youtube"></a>
  95. <!-- <a href="#" target="_blank" rel =" noopener "><img src="/user/themes/lecampus/images/in.svg" alt="logo-link"></a> -->
  96. </div>
  97. </nav>
  98. </header>
  99. {% endblock %}
  100. <section id="{{page.template}}" class="start">
  101. {% block body %}
  102. <div class="header-wrapper">
  103. {% block header_body %}{% endblock %}
  104. </div>
  105. <div class="body-wrapper">
  106. {% block content %}{% endblock %}
  107. {% block sidebar %}{% endblock %}
  108. </div>
  109. {% endblock %}
  110. </section>
  111. {% block newsletter %}{% endblock %}
  112. {% block devis %}{% endblock %}
  113. {% block reco %}{% endblock %}
  114. {% block footer %}
  115. {% include 'partials/footer.html.twig' %}
  116. <iframe title="exclude"
  117. style="border: 0;"
  118. src="https://lecampus.kevintessier.net/matomo/index.php?module=CoreAdminHome&action=optOut&language=fr&backgroundColor=&fontColor=&fontSize=&fontFamily="
  119. ></iframe>
  120. {% endblock %}
  121. {% block bottom %}
  122. {{ assets.js('bottom')|raw }}
  123. {% endblock %}
  124. </body>
  125. </html>