templates/Layout/layout.html.twig line 69

Open in your IDE?
  1. {% apply spaceless %}<!DOCTYPE html>
  2. {% set htmlLocale = app.request.locale|default(defaultlocale)|slice(0,2) %}
  3. <!--[if lte IE 9]> <html class="no-js lt-ie9" lang="{{ htmlLocale }}"> <![endif]-->
  4. <!--[if gt IE 9]><!--> <html lang="{{ htmlLocale }}"> <!--<![endif]-->
  5. <head>
  6.     <meta charset="utf-8">
  7.     <meta http-equiv="X-UA-Compatible" content="IE=edge">
  8.     <meta name="viewport" content="width=device-width, initial-scale=1">
  9.     <title>
  10.     {% set node = null %}
  11.     {% if nodetranslation is defined %}
  12.         {% set node = nodetranslation.node %}
  13.     {% endif %}
  14.     {% set nodemenu = get_node_menu(app.request.locale, node) %}
  15.     {{ websitetitle | trans }}{% block title %}{% if page is defined and nodemenu.getActiveForDepth(2) is not null %} - {{ get_title_for(page) }}{% endif %}{% endblock %}
  16.     </title>
  17.     {% if page is defined %}
  18.         {{ render_seo_metadata_for(page) }}
  19.     {% endif %}
  20.     {# Favicons #}
  21.     <link href="{{ asset('/bundles/iutudcwebsite/images/iut_icon.png') }}" rel="shortcut icon" />
  22.     {# Webfonts #}
  23.     {# {% include 'IUTUDCWebsiteBundle:Layout:_webfonts.html.twig' %} #}
  24.     {# CSS #}
  25.     {% include '@IUTUDCWebsite/Layout/_css.html.twig' %}
  26. </head>
  27. {% endapply %}
  28. <body id="sidebar-toggle-container" class="sidebar-toggle-container{% block extra_body_classes %}{% endblock %}" {% block extra_body_attributes %}{% endblock %}>
  29.     
  30.     {% if nodemenu is defined %}
  31.         {% set dataspage = {
  32.             'homepagePageNode': nodemenu.getNodeByInternalName('homepage'),
  33.             'newsPageNode': nodemenu.getNodeByInternalName('news'),
  34.             'liutPageNode': nodemenu.getNodeByInternalName('liut', null, true),
  35.             'formationsPageNode': nodemenu.getNodeByInternalName('formations', null, true),
  36.             'dutPageNode': nodemenu.getNodeByInternalName('dut'),
  37.             'inscriptionsPageNode': nodemenu.getNodeByInternalName('inscriptions'),
  38.             'partenariatsPageNode': nodemenu.getNodeByInternalName('partenariats'),
  39.             'vieetudiantePageNode': nodemenu.getNodeByInternalName('vieetudiante', null, true),
  40.             'departementsPageNode': nodemenu.getNodeByInternalName('departements')
  41.         } %}
  42.     {% endif %}
  43.     {# Google Tagmanager #}
  44.     {# {% include '@IUTUDCWebsite/Layout/_googletagmanager.html.twig' %} #}
  45.     {# Outdated browser message #}
  46.     {% include '@IUTUDCWebsite/Layout/_outdatedbrowser.html.twig' %}
  47.     {# Header #}
  48.     {% block header %}
  49.         {% include '@IUTUDCWebsite/Layout/_header.html.twig' with dataspage %}
  50.     {% endblock %}
  51.     {# Breadcrumbs #}
  52.     {% block breadcrumbs %}
  53.         {# {% include '@IUTUDCWebsite/Layout/_breadcrumbs.html.twig' %} #}
  54.     {% endblock %}
  55.     {# Content #}
  56.     <main role="main">
  57.         {% block content %}{% endblock %}
  58.     </main>
  59.     {# Footer #}
  60.     {% block footer %}
  61.         {% include '@IUTUDCWebsite/Layout/_footer.html.twig' with dataspage %}
  62.     {% endblock %}
  63.     {# Cookieconsent #}
  64.     {# {% block cookieconsent %}
  65.         {% include '@IUTUDCWebsite/Layout/_cookieconsent.html.twig' %}
  66.     {% endblock %} #}
  67.     {# JS Footer #}
  68.     {% block jsBundle %}
  69.         {% include '@IUTUDCWebsite/Layout/_js_footer.html.twig' %}
  70.     {% endblock %}
  71.     {% block javascript %}{% endblock javascript %}
  72. </body>
  73. </html>