Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

58 lines
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 %}Pietro{% endblock %}</title>
  7. {% block meta %}{% endblock %}
  8. <link rel="icon" type="image/png" href="{{ asset('assets/img/favicon.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/layout/header.html.twig' %}
  21. {% endblock %}
  22. <div id="content">
  23. {% block body %}{% endblock %}
  24. </div>
  25. {% block footer %}
  26. {% include 'frontend/layout/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;
  46. g.src = u + 'matomo.js';
  47. s.parentNode.insertBefore(g, s);
  48. })();
  49. </script>
  50. <!-- End Matomo Code -->
  51. {% endif %}
  52. </body>
  53. </html>