templates/site/base.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html>
  3.     <head>
  4.         <meta charset="UTF-8">
  5.         <title>{% block title %}ABCM{% endblock %}</title>
  6.         <meta name="viewport" content="width=device-width, initial-scale=1">
  7.         <link rel="icon" href="/img/icones/favicon.ico" type="image/x-icon">
  8.         <link rel="stylesheet" href="https://use.typekit.net/mvl5avz.css">
  9.         {% if app.request.pathinfo("_route") starts with "/haguenau" %}
  10.             <link rel="stylesheet" href="/css/haguenau.css">
  11.         {% elseif app.request.pathinfo("_route") starts with "/saverne" %}
  12.             <link rel="stylesheet" href="/css/saverne.css">
  13.         {% else %}
  14.             <link rel="stylesheet" href="/css/global.css">
  15.         {% endif %}
  16.         <script async src="https://www.googletagmanager.com/gtag/js?id=UA-XXXXXXXX-X"></script>
  17.         <script>
  18.             window.dataLayer = window.dataLayer || [];
  19.             function gtag(){dataLayer.push(arguments);}
  20.             gtag('js', new Date());
  21.             gtag('config', 'UA-XXXXXXXX-X');
  22.         </script>
  23.         {% block stylesheets %}
  24.             {{ encore_entry_link_tags('app') }}
  25.         {% endblock %}
  26.     </head>
  27.     <body>
  28.     {% if app.request.pathinfo("_route") starts with "/haguenau" or app.request.pathinfo("_route") starts with "/saverne"%}
  29.         {{ render(controller('App\\Controller\\SiteController::headerEcole', {'path': app.request.pathinfo })) }}
  30.     {% else %}
  31.         {{ render(controller('App\\Controller\\SiteController::header', { 'currentPage': currentPage|default(''), 'page': page|default('') })) }}
  32.     {% endif %}
  33.         <main id="main">
  34.             {% include "site/layout/messages.twig" %}
  35.             {% block body %}
  36.                 {% block content %}{% endblock %}
  37.             {% endblock %}
  38.         </main>
  39.     {% if app.request.pathinfo("_route") starts with "/haguenau" or app.request.pathinfo("_route") starts with "/saverne"%}
  40.         {% include "site/mini-site/layout/footer.html.twig" %}
  41.     {% else %}
  42.         {{ render(controller('App\\Controller\\SiteController::footer')) }}
  43.     {% endif %}
  44.         {% block javascripts %}
  45.             {{ encore_entry_script_tags('app') }}
  46.             <script src="{{ asset('bundles/fosjsrouting/js/router.min.js') }}"></script>
  47.             <script src="{{ path('fos_js_routing_js', { callback: 'fos.Router.setData' }) }}"></script>
  48.         {% endblock %}
  49.     </body>
  50. </html>