templates/index.html.twig line 1

Open in your IDE?
  1. {% set version = 'custom' %}
  2. <!DOCTYPE html>
  3. <html lang="fr">
  4.     <head>
  5.         <meta charset="UTF-8">
  6.         <meta name="viewport" content="width=device-width, initial-scale=1">
  7.         {% if metas is defined and metas is not empty %}
  8.             <title>{{ metas.title }}</title>
  9.             <meta name="description" content="{{ metas.description }}">
  10.         {% endif %}
  11.         {% if version == 'bootstrap' %}
  12.             <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.6.1/css/bootstrap.min.css" integrity="sha512-T584yQ/tdRR5QwOpfvDfVQUidzfgc2339Lc8uBDtcp/wYu80d7jwBgAxbyMh0a9YM9F8N3tdErpFI8iaGx6x5g==" crossorigin="anonymous" referrerpolicy="no-referrer" />
  13.         {% endif %}
  14.         
  15.         {% if app.request.get('preview') and app.request.get('preview') == 'preview' %}
  16.             <meta name="robots" content="none" />
  17.         {% endif %}
  18.         {% block stylesheets %}
  19.             {{ encore_entry_link_tags('app') }}
  20.         {% endblock %}
  21.         {% for block in blocks %}
  22.             {% if block.module and block.module.moduleAsset %}
  23.                 {{ block.module.moduleAsset.css|raw }}
  24.             {% endif %}
  25.         {% endfor %}
  26.     </head>
  27.     <body id="{{slug}}">
  28.         
  29.         <!-- header -->
  30.         {% if header is defined %}
  31.             {% include "home/blocks/header.html.twig" %}
  32.         {% else %}
  33.             {% block header %}{% endblock %}
  34.         {% endif %}
  35.         <!-- content -->
  36.         <main class="marged-left-right">
  37.             {% block content %}{% endblock %}
  38.         </main>
  39.         <!-- footer -->
  40.         {%  if footer is defined %}
  41.             {% include "home/blocks/footer.html.twig" %}
  42.         {% else %}
  43.             {% block footer %}{% endblock %}
  44.         {%  endif %}
  45.         {% block javascripts %}
  46.             {{ encore_entry_script_tags('app') }}
  47.         {% endblock %}
  48.         {% if version == 'bootstrap' %}
  49.             <script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.6.1/js/bootstrap.min.js" integrity="sha512-UR25UO94eTnCVwjbXozyeVd6ZqpaAE9naiEUBK/A+QDbfSTQFhPGj5lOR6d8tsgbBk84Ggb5A3EkjsOgPRPcKA==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
  50.         {% endif %}
  51.         <script
  52.             src="https://code.jquery.com/jquery-3.5.1.min.js"
  53.             integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0="
  54.             crossorigin="anonymous">
  55.         </script>
  56.         <script src="https://code.jquery.com/ui/1.13.0/jquery-ui.js"></script>
  57.         <script type="text/javascript" src="https://forms.sbc29.com/form.js"></script>
  58.         {% for block in blocks %}
  59.             {% if block.module and block.module.moduleAsset %}
  60.                 <script>
  61.                     {% for variable, data in block.data %}
  62.                         {% if data is not iterable %}
  63.                             let {{ variable }} = `{{ data }}`;
  64.                         {% else %}
  65.                             let {{ variable }} = `{{ data.0|raw }}`;
  66.                         {% endif %}
  67.                     {% endfor %}
  68.                 </script>
  69.                 {{ block.module.moduleAsset.js|raw }}
  70.             {% endif %}
  71.         {% endfor %}
  72.     </body>
  73. </html>