base.html.twig 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  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.css') %}
  18. {% do assets.addCss('theme://css/tarteaucitron.css') %}
  19. {% do assets.addCss('theme://css/leaflet.css') %}
  20. {% do assets.addCss('theme://css/jquery.bxslider.min.css') %}
  21. {% endblock %}
  22. {% block javascripts %}
  23. {% do assets.addJs('jquery', 101) %}
  24. {% do assets.addJs('theme://js/jquery-3.4.1.min.js', {group:'bottom'}) %}
  25. {% do assets.addJs('theme://js/leaflet.js', {group:'bottom'}) %}
  26. {% do assets.addJs('theme://js/imagesloaded.pkgd.min.js', {group:'bottom'}) %}
  27. {% do assets.addJs('theme://js/masonry.filter.js', {group:'bottom'}) %}
  28. {% do assets.addJs('theme://js/masonry.pkgd.min.js', {group:'bottom'}) %}
  29. {% do assets.addJs('theme://js/jquery.bxslider.min.js', {group:'bottom'}) %}
  30. {% do assets.addJs('theme://js/jquery.slides.min.js', {group:'bottom'}) %}
  31. {% do assets.addJs('theme://js/site.js', {group:'bottom'}) %}
  32. {% endblock %}
  33. {% block assets deferred %}
  34. {{ assets.css()|raw }}
  35. {{ assets.js()|raw }}
  36. {% endblock %}
  37. {% endblock head %}
  38. <script type="text/javascript" src="https://cdn.jsdelivr.net/gh/AmauriC/tarteaucitron.js@V1.2/tarteaucitron.min.js"></script>
  39. <script type="application/ld+json">
  40. {
  41. "@graph": [
  42. {
  43. "@type": "Place",
  44. "address": {
  45. "@type": "PostalAddress",
  46. "addressLocality": "Eurre",
  47. "addressRegion": "Val de Drôme",
  48. "postalCode": "26400",
  49. "streetAddress": "Place Michel Paulus,Ecosite du Val de Drôme"
  50. },
  51. "name": "Le Campus"
  52. }
  53. ]
  54. }
  55. </script>
  56. <script type="text/javascript" src="https://checkoutpage.co/js/overlay.js" defer></script>
  57. </head>
  58. <body>
  59. {% block header %}
  60. <header>
  61. <nav>
  62. <div class="navTrigger">
  63. <i></i>
  64. <i></i>
  65. <i></i>
  66. </div>
  67. <div class="logo">
  68. <a href="/"><img alt="le_campus_biovallee" src="/user/themes/lecampus/images/logo_lecampus.svg" alt="logo_lecampus"></a>
  69. </div>
  70. <nav class="dropmenu">
  71. {% block header_navigation %}
  72. {% include 'partials/navigation.html.twig' %}
  73. {% endblock %}
  74. </nav>
  75. <div class="reso">
  76. <a href="https://www.facebook.com/Lecampus.Valdedrome" target="_blank" rel =" noopener "><img src="/user/themes/lecampus/images/fb.svg" alt="logo-facebook"></a>
  77. <a href="https://www.youtube.com/user/CCVDful" target="_blank" rel =" noopener "><img src="/user/themes/lecampus/images/yt.svg" alt="logo-youtube"></a>
  78. <a href="https://www.linkedin.com/company/lecampus-valdedrome/" target="_blank" rel =" noopener "><img src="/user/themes/lecampus/images/in.svg" alt="logo-link"></a>
  79. </div>
  80. </nav>
  81. </header>
  82. {% endblock %}
  83. <section id="{{page.template}}" class="start">
  84. {% block body %}
  85. <div class="header-wrapper">
  86. {% block header_body %}{% endblock %}
  87. </div>
  88. <div class="body-wrapper">
  89. {% block content %}{% endblock %}
  90. {% block sidebar %}{% endblock %}
  91. </div>
  92. {% endblock %}
  93. </section>
  94. {% block newsletter %}{% endblock %}
  95. {% block devis %}{% endblock %}
  96. {% block reco %}{% endblock %}
  97. {% block footer %}
  98. {% include 'partials/footer.html.twig' %}
  99. {% endblock %}
  100. {% block bottom %}
  101. {{ assets.js('bottom')|raw }}
  102. {% endblock %}
  103. <script type="text/javascript">
  104. tarteaucitron.user.gtagUa = 'UA-142182091-1';
  105. tarteaucitron.user.gtagMore = function () { /* add here your optionnal gtag() */ };
  106. (tarteaucitron.job = tarteaucitron.job || []).push('gtag');
  107. (tarteaucitron.job = tarteaucitron.job || []).push('facebook');
  108. (tarteaucitron.job = tarteaucitron.job || []).push('linkedin');
  109. </script>
  110. <!-- Lead the Way -->
  111. {#
  112. <script type="text/javascript">
  113. window.ltwAsyncInit =
  114. function(){init_multiplegl('https://gl.hostcg.com/',[['https://gl.hostcg.com/','4221','j7g56pk3ji']]);};
  115. </script>
  116. <script type="text/javascript" src="https://gl.hostcg.com/js/genlead.js" defer></script>
  117. #}
  118. <!-- End Lead the Way Code -->
  119. </body>
  120. </html>