您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

56 行
1.8KB

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1">
  6. <title>{% block title %}Aux Actes Citoyens{% endblock %}</title>
  7. {% block meta %}{% endblock %}
  8. <link rel="icon" type="image/png" href="{{ asset('assets/img/favicon-aac.png') }}"/>
  9. {{ encore_entry_link_tags('app-frontend') }}
  10. {% block stylesheets %}{% endblock %}
  11. </head>
  12. {% set current_path = app.request.get('_route') %}
  13. <body id="{{ current_path }}">
  14. {% for message in app.flashes('success') %}
  15. <div class="alert alert-success">
  16. {{ message }}
  17. </div>
  18. {% endfor %}
  19. {% block header %}
  20. {% include 'frontend/header.html.twig' %}
  21. {% endblock %}
  22. <div id="content-page">
  23. {% block body %}{% endblock %}
  24. </div>
  25. {% block footer %}
  26. {% include 'frontend/footer.html.twig' %}
  27. {% endblock %}
  28. {{ encore_entry_script_tags('app-frontend') }}
  29. {% block javascripts %}{% endblock %}
  30. {% if chcookieconsent_isCookieConsentSavedByUser() == false %}
  31. {{ render_esi(path('ch_cookie_consent.show')) }}
  32. {% endif %}
  33. {% if chcookieconsent_isCategoryAllowedByUser('piwik') == true %}
  34. <!-- Matomo -->
  35. <script>
  36. var _paq = window._paq = window._paq || [];
  37. /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
  38. _paq.push(['trackPageView']);
  39. _paq.push(['enableLinkTracking']);
  40. (function() {
  41. var u="//statistiques.laclic.fr/";
  42. _paq.push(['setTrackerUrl', u+'matomo.php']);
  43. _paq.push(['setSiteId', '5']);
  44. var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
  45. g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
  46. })();
  47. </script>
  48. <!-- End Matomo Code -->
  49. {% endif %}
  50. </body>
  51. </html>