templates/base.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html lang="fr">
  3.   <head>
  4.     {% set config = config.getConfig %}
  5.     <meta charset="UTF-8" />
  6.     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  7.     <title>
  8.       {% block title %}
  9.         Welcome!
  10.       {% endblock %}
  11.     </title>
  12.     {% block meta %}
  13.       {{ include('component/_meta_base.html.twig') }}
  14.     {% endblock %}
  15.     {{ config.analytics|raw }}
  16.     <link rel="icon" href="{{ config.icon }}" />
  17.     {# Run `composer require symfony/webpack-encore-bundle` to start using Symfony UX #}
  18.     {% block stylesheets %}
  19.       {{ encore_entry_link_tags('app') }}
  20.     {% endblock %}
  21.     <link rel="stylesheet" href="/css/setting.css" />
  22.     <link rel="stylesheet" href="{{ path('dynamic_style') }}" />
  23.     {% if config.cssAdd is not empty %}
  24.       <link rel="stylesheet" href="{{ config.cssAdd }}" />
  25.     {% endif %}
  26.     {# {{ render(controller('App\\Controller\\BaseController::style')) }} #}
  27.   </head>
  28.   <body class="app">
  29.     <div style="background-color: rgba(99, 99, 99, 0.8);z-index:5000;" id="modal-picture" class="fixed flex-center hidden inset-0">
  30.       <div class="abs m-l-1 pointer left-0 rounded bg-grey-4-op ft-white p-1 flex-center" id="prev-box" style="z-index: 6000;">
  31.         <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="size-6">
  32.           <path stroke-linecap="round" stroke-linejoin="round" d="M15.75 19.5 8.25 12l7.5-7.5" />
  33.         </svg>
  34.       </div>
  35.       <div class="abs m-r-1 pointer right-0 rounded bg-grey-4-op ft-white p-1 flex-center" id="next-box" style="z-index: 6000;">
  36.         <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="size-6">
  37.           <path stroke-linecap="round" stroke-linejoin="round" d="m8.25 4.5 7.5 7.5-7.5 7.5" />
  38.         </svg>
  39.       </div>
  40.       <div class="flex-center rel">
  41.         <img src="" style="height: 95vh;width:auto;" id="img-target" alt="" />
  42.         <div class="top-1 right-1 rounded abs p-05 pointer flex-center pointer r1-1 border bg-light" data-toggle="hidden" data-target="modal-picture" style="z-index: 8000;">
  43.           <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="size-6">
  44.             <path stroke-linecap="round" stroke-linejoin="round" d="M6 18 18 6M6 6l12 12" />
  45.           </svg>
  46.         </div>
  47.       </div>
  48.     </div>
  49.     <header class="fixed top-0 left-0 w-100" style="max-height: 0px;" id="header" style="z-index: 500;">
  50.       <div id="dynamic-link" class="hidden">
  51.         {% if dynamicLink is defined %}
  52.           {# Lien panier utilisateur #}
  53.           {% if dynamicLink.cart_road_enable %}
  54.             <a href="{{ dynamicLink.cart_url }}">
  55.               {% if dynamicLink.icon_cart is not empty %}
  56.                 {{ dynamicLink.icon_cart|raw }}
  57.               {% endif %}
  58.               {{ dynamicLink.link_text_cart }}
  59.             </a>
  60.           {% endif %}
  61.           {# Lien logout #}
  62.           {% if app.user %}
  63.             {# Lien profil utilisateur si activé #}
  64.             {% if dynamicLink.user_profile_enable %}
  65.               <a href="{{ dynamicLink.user_profile_url }}">
  66.                 {% if dynamicLink.icon_user_profile is not empty %}
  67.                   {{ dynamicLink.icon_user_profile|raw }}
  68.                 {% endif %}
  69.                 {{ dynamicLink.link_text_user_profile }}
  70.               </a>
  71.             {% endif %}
  72.             {% if dynamicLink.login_road_enable %}
  73.               <a href="{{ dynamicLink.logout_url }}">
  74.                 {% if dynamicLink.icon_logout is not empty %}
  75.                   {{ dynamicLink.icon_logout|raw }}
  76.                 {% endif %}
  77.                 {{ dynamicLink.link_text_logout }}
  78.               </a>
  79.             {% endif %}
  80.           {% else %}
  81.             {# Lien login si pas connecté #}
  82.             {% if dynamicLink.login_road_enable %}
  83.               <a href="{{ dynamicLink.login_url }}">
  84.                 {% if dynamicLink.icon_login is not empty %}
  85.                   {{ dynamicLink.icon_login|raw }}
  86.                 {% endif %}
  87.                 {{ dynamicLink.link_text_login }}
  88.               </a>
  89.             {% endif %}
  90.           {% endif %}
  91.         {% endif %}
  92.       </div>
  93.       {% if isHeaderComponent is defined %}
  94.         {% if config.headerComponent is defined and isHeaderComponent == false %}
  95.           {% if config.headerComponent == null %}
  96.           {% else %}
  97.             <div class="w-100" id="headercomponent">{{ config.headerComponent.content|raw }}</div>
  98.           {% endif %}
  99.         {% endif %}
  100.       {% endif %}
  101.       {{ config.header|raw }}
  102.     </header>
  103.     {% for message in app.session.flashbag.get('success') %}
  104.       <div id="popup" class="fixed inset-0 flex-center" data-toggle="hidden">
  105.         <div class="bg-light rel p1 z-10 border rad1">
  106.           <p>{{ message }}</p>
  107.           <div class="top-right abs p05 flex-center pointer circle r1-1 border bg-light" data-toggle="hidden" data-target="popup">
  108.             <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="size-6">
  109.               <path stroke-linecap="round" stroke-linejoin="round" d="M6 18 18 6M6 6l12 12" />
  110.             </svg>
  111.           </div>
  112.         </div>
  113.       </div>
  114.     {% endfor %}
  115.     {% if app.request.query.get('email') == '1' %}
  116.       <div id="popup" class="fixed inset-0 p-1 flex-center">
  117.         <div class="bg-light rel p-1 z-10 border rad-1">
  118.           <p>Votre message à bien été envoyé. Nous vous recontactons prochainement.</p>
  119.           <div class="top-right abs p-05 flex-center pointer circle r1-1 border bg-light" data-toggle="hidden" data-target="popup">
  120.             <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="size-6">
  121.               <path stroke-linecap="round" stroke-linejoin="round" d="M6 18 18 6M6 6l12 12" />
  122.             </svg>
  123.           </div>
  124.         </div>
  125.       </div>
  126.     {% endif %}
  127.     {% block body %}
  128.     {% endblock %}
  129.     <footer>
  130.       <div class="w-100">
  131.         {% if config.footerComponent is not null %}
  132.           {{ config.footerComponent.content|raw }}
  133.         {% endif %}
  134.       </div>
  135.       <ul class="flex-row bg-light p-05 ft-dark w-100 space-around wrap">
  136.         {% if is_granted('ROLE_ADMIN') %}
  137.           <li class="p-05">
  138.             <a href="{{ path('app_admin') }}" class="roboto">Admin</a>
  139.           </li>
  140.         {% endif %}
  141.         {% if app.user %}
  142.           <li class="p-05">
  143.             <a href="{{ path('app_logout') }}" class="roboto">Déconnexion</a>
  144.           </li>
  145.         {% else %}
  146.           <li class="p-05">
  147.             <a href="{{ path('app_login') }}" class="roboto">Connexion</a>
  148.           </li>
  149.         {% endif %}
  150.         <li class="p-05">
  151.           <span class="roboto">Développé par</span> <a target="_blank" href="https://impulse-web-design.com/" class="roboto">Impulse Web Design</a>
  152.         </li>
  153.       </ul>
  154.       {# <button id="openConsent">⚙️ Gérer mes cookies</button> #}
  155.     </footer>
  156.     {% if config.cookiesInformation.is_cookie == true %}
  157.       <div id="consentModal" class="hidden fixed {{ config.cookiesInformation.modal_position }}">
  158.         <form id="consentForm" class="{{ config.cookiesInformation.form_appearance }}" data-noload="">
  159.           <div class="p-1">
  160.             <p class="{{ config.cookiesInformation.text_appearance }}">{{ config.cookiesInformation.title }}</p>
  161.           </div>
  162.           <div class="p-1">
  163.             <p class="{{ config.cookiesInformation.text_appearance }}" data-text-base="" data-text-class="">
  164.               {{ config.cookiesInformation.text|nl2br }} <a href="{{ config.cookiesInformation.link }}" target="_blank">{{ config.cookiesInformation.link_text }}</a>
  165.             </p>
  166.           </div>
  167.           <div id="choice-section" class="hidden">
  168.             <div class="column">
  169.               {% if config.cookiesInformation.is_tracking == true %}
  170.                 <div class="flex-row p-1">
  171.                   <p class="{{ config.cookiesInformation.text_appearance }}">{{ config.cookiesInformation.text_tracking }}</p>
  172.                   <div>
  173.                     <input class="tgl tgl-light" id="tracking" type="checkbox" name="tracking" />
  174.                     <label class="tgl-btn" for="tracking"></label>
  175.                   </div>
  176.                 </div>
  177.               {% else %}
  178.                 <div class="hidden">
  179.                   <p class="{{ config.cookiesInformation.text_appearance }}">{{ config.cookiesInformation.text_tracking }}</p>
  180.                   <div>
  181.                     <input class="tgl tgl-light" id="tracking" type="checkbox" name="tracking" />
  182.                     <label class="tgl-btn" for="tracking"></label>
  183.                   </div>
  184.                 </div>
  185.               {% endif %}
  186.               {% if config.cookiesInformation.is_publicity == true %}
  187.                 <div class="flex-row p-1">
  188.                   <p class="{{ config.cookiesInformation.text_appearance }}">{{ config.cookiesInformation.text_publicity }}</p>
  189.                   <div>
  190.                     <input class="tgl tgl-light" id="publicity" type="checkbox" name="publicity" />
  191.                     <label class="tgl-btn" for="publicity"></label>
  192.                   </div>
  193.                 </div>
  194.               {% else %}
  195.                 <div class="hidden">
  196.                   <p class="{{ config.cookiesInformation.text_appearance }}">{{ config.cookiesInformation.text_publicity }}</p>
  197.                   <div>
  198.                     <input class="tgl tgl-light" id="publicity" type="checkbox" name="publicity" />
  199.                     <label class="tgl-btn" for="publicity"></label>
  200.                   </div>
  201.                 </div>
  202.               {% endif %}
  203.               {% if config.cookiesInformation.is_custom == true %}
  204.                 <div class="flex-row p-1">
  205.                   <p class="{{ config.cookiesInformation.text_appearance }}">{{ config.cookiesInformation.text_custom }}</p>
  206.                   <div>
  207.                     <input class="tgl tgl-light" id="preference" type="checkbox" name="preference" />
  208.                     <label class="tgl-btn" for="preference"></label>
  209.                   </div>
  210.                 </div>
  211.               {% else %}
  212.                 <div class="hidden">
  213.                   <p class="{{ config.cookiesInformation.text_appearance }}">{{ config.cookiesInformation.text_custom }}</p>
  214.                   <div>
  215.                     <input class="tgl tgl-light" id="preference" type="checkbox" name="preference" />
  216.                     <label class="tgl-btn" for="preference"></label>
  217.                   </div>
  218.                 </div>
  219.               {% endif %}
  220.               <button class="{{ config.cookiesInformation.button_appearance }}" type="submit">Valider</button>
  221.             </div>
  222.           </div>
  223.           <div class="grid grid-col-3 w-100">
  224.             <button class="{{ config.cookiesInformation.button_appearance }}" type="button" id="customchoice" data-toggle="hidden" data-target="choice-section">Personnaliser</button>
  225.             <button class="{{ config.cookiesInformation.button_appearance }}" type="button" id="rejectAll">{{ config.cookiesInformation.button_text_reject }}</button>
  226.             <button class="{{ config.cookiesInformation.button_appearance }}" type="button" id="acceptAll">{{ config.cookiesInformation.button_text_accept }}</button>
  227.           </div>
  228.         </form>
  229.       </div>
  230.       <script src="/js/cookies.js"></script>
  231.     {% endif %}
  232.     <script src="/js/app-min.js?v=0049"></script>
  233.     {{ config.cookiesconsent|raw }}
  234.     {% if config.javascriptAdd is not empty %}
  235.       <script src="{{ config.javascriptAdd }}"></script>
  236.     {% endif %}
  237.     {% block javascripts %}
  238.     {% endblock %}
  239.   </body>
  240. </html>