templates/front/blank_layout.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html lang="fr">
  3.     <head>
  4.         {% include "front/common/layout.head_common_meta_link.html.twig" %}
  5.         {% if fileExists('favicon/favicon-16x16.ico') %}
  6.             <link rel="icon" type="image/x-icon" sizes="16x16"
  7.                   href="{{ path('static_file_folder', {'folder': 'favicon', 'fileName': 'favicon-16x16.ico'}) }}?v={{ version }}">
  8.         {% endif %}
  9.         {% if fileExists('favicon/favicon-32x132.png') %}
  10.             <link rel="icon" type="image/png" sizes="32x32"
  11.                   href="{{ path('static_file_folder', {'folder': 'favicon', 'fileName': 'favicon-32x132.png'}) }}?v={{ version }}">
  12.         {% endif %}
  13.         {% if fileExists('favicon/favicon-96x96.png') %}
  14.             <link rel="icon" type="image/png" sizes="96x96"
  15.                   href="{{ path('static_file_folder', {'folder': 'favicon', 'fileName': 'favicon-96x96.png'}) }}?v={{ version }}">
  16.         {% endif %}
  17.         {% if fileExists('favicon/favicon-180x180.png') %}
  18.             <link rel="icon" type="image/png" sizes="180x8180"
  19.                   href="{{ path('static_file_folder', {'folder': 'favicon', 'fileName': 'favicon-180x180.png'}) }}?v={{ version }}">
  20.         {% endif %}
  21.         <title>{{ platform.global.seo.title }}</title>
  22.         {% block styles_global_vendor %}
  23.             {# Styles spécifique à une page #}
  24.         {% endblock styles_global_vendor %}
  25.         {# Styles commun à l'ensemble du site #}
  26.         {% if platform.front.theme is defined and platform.front.theme not in ['', null] %}
  27.             <link rel="stylesheet"
  28.                   href="{{ asset('build/assets/templates/' ~ platform.front.theme ~'/scss/main.css') }}?v={{ version }}">
  29.         {% endif %}
  30.         <link rel="stylesheet" href="{{ path('front_common_css_custom') }}">
  31.         {% block styles %}
  32.             {# Styles spécifique à une page #}
  33.         {% endblock styles %}
  34.         {# Style global venant du fichier platform.[projet].yaml, doit avoir la priorité absolue sur tous les autres #}
  35.         {% if platform.front.css_config.custom_css_files is defined %}
  36.             {% for file in platform.front.css_config.custom_css_files %}
  37.                 <link rel="stylesheet" href="{{ asset(file) }}?v={{ version }}">
  38.             {% endfor %}
  39.         {% endif %}
  40.         {% if platform.front.common.custom_css is defined %}
  41.             <style rel="stylesheet">
  42.                 {{ platform.front.common.custom_css|raw }}
  43.             </style>
  44.         {% endif %}
  45.         {% block styles_custom %}
  46.             {# Styles spécifique à une page et prioritaire par rapport au css global venant de platform.[projet].yaml #}
  47.         {% endblock styles_custom %}
  48.         {% include "front/common/layout.head_common_js.html.twig" %}
  49.         <script>
  50.             const cdn = '{{ cdn }}';
  51.         </script>
  52.     </head>
  53.     <body class="{% block bodyclass %}document{% endblock %}">
  54.         <div class="wrapper">
  55.             {% block header %}{% endblock header %}
  56.             <div class="container mt-3" style="background-color: #fff;">
  57.                 {% block content %}{% endblock content %}
  58.             </div>
  59.             {% block footer %}{% endblock footer %}
  60.         </div>
  61.         {% block gotop %}
  62.             <a class="gotop btn btn-yellow d-none">
  63.                 <i class="glyphicon glyphicon-arrow-up"></i>
  64.             </a>
  65.         {% endblock gotop %}
  66.         {% block scripts %}
  67.             <script src="{{ asset('build/assets/js/front/jquery.min.js') }}?v={{ version }}"></script>
  68.             <script src="{{ asset('build/assets/bower_components/bootstrap4/dist/js/bootstrap.bundle.min.js') }}?v={{ version }}"></script>
  69.         {% endblock scripts %}
  70.     </body>
  71. </html>