templates/_header.html.twig line 1

Open in your IDE?
  1. <div class="desktop-menu">
  2.     <div class="container pt-4">
  3.         <div class="row d-flex align-items-center">
  4.             <div class="col-lg-2 col-sm-12 mobile-header">
  5.                 {# Facebook #}
  6.                 {% if setting.siteFacebook != null %}
  7.                     <a href="{{ setting.siteFacebook }}" target="_blank" class="text-decoration-none" style="color: #0a3962;">
  8.                         <svg width="32" height="32" viewBox="0 0 24 24">
  9.                             <path fill="currentColor"
  10.                                 d="M22 12c0-5.52-4.48-10-10-10S2 6.48 2 12c0 4.84 3.44 8.87 8 9.8V15H8v-3h2V9.5C10 7.57 11.57 6 13.5 6H16v3h-2c-.55 0-1 .45-1 1v2h3v3h-3v6.95c5.05-.5 9-4.76 9-9.95z">
  11.                             </path>
  12.                         </svg>
  13.                     </a>
  14.                 {% endif %}
  15.                 {# Instagram #}
  16.                 {% if setting.siteInstagram != null %}
  17.                     <a href="{{ setting.siteInstagram }}" target="_blank" class="text-decoration-none" style="color: #0a3962;">
  18.                         <svg width="32" height="32" viewBox="0 0 256 256"><path fill="currentColor" d="M160 128a32 32 0 1 1-32-32a32.1 32.1 0 0 1 32 32Zm68-44v88a56 56 0 0 1-56 56H84a56 56 0 0 1-56-56V84a56 56 0 0 1 56-56h88a56 56 0 0 1 56 56Zm-52 44a48 48 0 1 0-48 48a48 48 0 0 0 48-48Zm16-52a12 12 0 1 0-12 12a12 12 0 0 0 12-12Z"/></svg>
  19.                     </a>
  20.                 {% endif %}
  21.                 {# LinkedIn #}
  22.                 {% if setting.siteLinkedin != null %}
  23.                     <a href="{{ setting.siteLinkedin }}" target="_blank" class="text-decoration-none" style="color: #0a3962;">
  24.                         <svg width="29" height="29" viewBox="0 0 20 20">
  25.                             <path fill="currentColor"
  26.                                 d="M10 .4C4.698.4.4 4.698.4 10s4.298 9.6 9.6 9.6s9.6-4.298 9.6-9.6S15.302.4 10 .4zM7.65 13.979H5.706V7.723H7.65v6.256zm-.984-7.024c-.614 0-1.011-.435-1.011-.973c0-.549.409-.971 1.036-.971s1.011.422 1.023.971c0 .538-.396.973-1.048.973zm8.084 7.024h-1.944v-3.467c0-.807-.282-1.355-.985-1.355c-.537 0-.856.371-.997.728c-.052.127-.065.307-.065.486v3.607H8.814v-4.26c0-.781-.025-1.434-.051-1.996h1.689l.089.869h.039c.256-.408.883-1.01 1.932-1.01c1.279 0 2.238.857 2.238 2.699v3.699z">
  27.                             </path>
  28.                         </svg>
  29.                     </a>
  30.                 {% endif %}
  31.             </div>
  32.             <div class="col-lg-8 col-sm-12 mb-2">
  33.                 <a href="{{ path('app_home') }}" class="text-decoration-none">
  34.                     <img src="{{ asset('assets/img/' ~ setting.siteLogo ) }}" alt="{{ setting.siteName }}"
  35.                     class="img-fluid d-block mx-auto" style="max-width: 550px; width: 100%;">
  36.                 </a>
  37.             </div>
  38.             <div class="col-lg-2 col-sm-12 mobile-header">
  39.                 <div class="row mb-4">
  40.                     <div class="col mobile-padding">
  41.                         <svg width="32" height="32" viewBox="0 0 24 24" style="color: #0a3962;">
  42.                             <path fill="currentColor" fill-rule="evenodd"
  43.                                 d="M1 12C1 5.925 5.925 1 12 1s11 4.925 11 11s-4.925 11-11 11S1 18.075 1 12zm8 0c0-.17.01-.336.031-.5H12a1 1 0 1 0 0-2H9.877A3.993 3.993 0 0 1 13 8c.902 0 1.731.297 2.4.8a1 1 0 0 0 1.2-1.6a6.001 6.001 0 0 0-9.057 2.3H7a1 1 0 0 0 0 2h.02a6.081 6.081 0 0 0 0 1H7a1 1 0 1 0 0 2h.544a6.001 6.001 0 0 0 9.057 2.3a1 1 0 0 0-1.201-1.6c-.669.503-1.498.8-2.4.8a3.992 3.992 0 0 1-3.123-1.5H12a1 1 0 1 0 0-2H9.031A4.039 4.039 0 0 1 9 12z"
  44.                                 clip-rule="evenodd"></path>
  45.                         </svg>
  46.                         <span class="fw-bold" style="color: #0a3962;">
  47.                             <a href="{{ path('app_tarif') }}" class="text-decoration-none" style="color: #0a3962;">
  48.                                 Les tarifs
  49.                             </a>
  50.                         </span>
  51.                     </div>
  52.                 </div>
  53.                 <div class="row">
  54.                     <div class="col">
  55.                         <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
  56.                             aria-hidden="true" role="img" class="iconify iconify--ri" width="32" height="32"
  57.                             preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24" style="color: #21afe6;">
  58.                             <path fill="currentColor"
  59.                                 d="M4 22a8 8 0 1 1 16 0H4zm8-9c-3.315 0-6-2.685-6-6s2.685-6 6-6s6 2.685 6 6s-2.685 6-6 6z">
  60.                             </path>
  61.                         </svg>
  62.                         <span class="fw-bold">
  63.                             <a href="{{ setting.siteEspaceClient }}" target="_blank" class="text-decoration-none" style="color: #21afe6;">
  64.                                 Espace client
  65.                             </a>
  66.                         </span>
  67.                     </div>
  68.                 </div>
  69.             </div>
  70.         </div>
  71.     </div>
  72.     <div class="container">
  73.         <div class="row">
  74.             <div class="col header-menu mobile-header mobile-header-menu">
  75.                 <a href="{{ path('app_home') }}" class="menu-elem text-decoration-none fw-bold text-dark text-uppercase padding {% if pageTitle is defined and pageTitle != null and pageTitle == 'home' %}active{% endif %}" style="letter-spacing : 2px;">
  76.                     Accueil
  77.                 </a>
  78.                 <a href="{{ path('app_difference') }}" class="menu-elem ext-decoration-none fw-bold text-dark text-uppercase padding {% if pageTitle is defined and pageTitle != null and pageTitle == 'difference' %}active{% endif %}" style="letter-spacing : 2px;">
  79.                     Notre différence
  80.                 </a>
  81.                 <a href="{{ path('app_expert_index') }}" class="menu-elem ext-decoration-none fw-bold text-dark text-uppercase padding {% if pageTitle is defined and pageTitle != null and pageTitle == 'experts' %}active{% endif %}" style="letter-spacing : 2px;">
  82.                     Nos experts
  83.                 </a>
  84.                 <div class="menu-elem dropdown">
  85.                     <a href="#" data-bs-toggle="dropdown" aria-expanded="false" class="dropdown-toggle text-decoration-none fw-bold text-dark text-uppercase padding {% if pageTitle is defined and pageTitle != null and pageTitle == 'blog' %}active{% endif %}" style="letter-spacing : 2px;">
  86.                     Nos actualités
  87.                     </a>
  88.                     <ul class="dropdown-menu">
  89.                         <li><a class="dropdown-item" href="{{ path('app_blog_article_index') }}">Blog</a></li>
  90.                         <li><a class="dropdown-item" href="{{ path('app_newsletter') }}">Newsletter</a></li>
  91.                     </ul>
  92.                 </div>
  93.                 <a href="{{ path('app_office') }}" class="menu-elem text-decoration-none fw-bold text-dark text-uppercase padding {% if pageTitle is defined and pageTitle != null  and pageTitle == 'offices' %}active{% endif %}" style="letter-spacing : 2px;">
  94.                     Nos offices
  95.                 </a>
  96.                 <a href="{{ path('app_contact') }}" class="menu-elem text-decoration-none fw-bold text-dark text-uppercase padding {% if pageTitle is defined and pageTitle != null and pageTitle == 'contact' %}active{% endif %}" style="letter-spacing : 2px;">
  97.                     Contact
  98.                 </a>
  99.                 <a href="{{ path('app_offres') }}" class="menu-elem text-decoration-none fw-bold text-dark text-uppercase padding {% if pageTitle is defined and pageTitle != null and pageTitle == 'offres' %}active{% endif %}" style="letter-spacing : 2px;">
  100.                     Nos offres d'emploi
  101.                 </a>
  102.             </div>
  103.         </div>
  104.     </div>
  105. </div>
  106. <div class="mobile-menu">
  107.     <div class="nav-links">
  108.         <div class="d-flex justify-content-center align-items-center">
  109.             {# Facebook #}
  110.             {% if setting.siteFacebook != null %}
  111.                 <a href="{{ setting.siteFacebook }}" target="_blank" class="text-decoration-none" style="color: #0a3962;">
  112.                     <svg width="32" height="32" viewBox="0 0 24 24">
  113.                         <path fill="currentColor"
  114.                             d="M22 12c0-5.52-4.48-10-10-10S2 6.48 2 12c0 4.84 3.44 8.87 8 9.8V15H8v-3h2V9.5C10 7.57 11.57 6 13.5 6H16v3h-2c-.55 0-1 .45-1 1v2h3v3h-3v6.95c5.05-.5 9-4.76 9-9.95z">
  115.                         </path>
  116.                     </svg>
  117.                 </a>
  118.             {% endif %}
  119.             {# Instagram #}
  120.             {% if setting.siteInstagram != null %}
  121.                 <a href="{{ setting.siteInstagram }}" target="_blank" class="text-decoration-none" style="color: #0a3962;">
  122.                     <svg width="32" height="32" viewBox="0 0 256 256"><path fill="currentColor" d="M160 128a32 32 0 1 1-32-32a32.1 32.1 0 0 1 32 32Zm68-44v88a56 56 0 0 1-56 56H84a56 56 0 0 1-56-56V84a56 56 0 0 1 56-56h88a56 56 0 0 1 56 56Zm-52 44a48 48 0 1 0-48 48a48 48 0 0 0 48-48Zm16-52a12 12 0 1 0-12 12a12 12 0 0 0 12-12Z"/></svg>
  123.                 </a>
  124.             {% endif %}
  125.             {# LinkedIn #}
  126.             {% if setting.siteLinkedin != null %}
  127.                 <a href="{{ setting.siteLinkedin }}" target="_blank" class="text-decoration-none" style="color: #0a3962;">
  128.                     <svg width="29" height="29" viewBox="0 0 20 20">
  129.                         <path fill="currentColor"
  130.                             d="M10 .4C4.698.4.4 4.698.4 10s4.298 9.6 9.6 9.6s9.6-4.298 9.6-9.6S15.302.4 10 .4zM7.65 13.979H5.706V7.723H7.65v6.256zm-.984-7.024c-.614 0-1.011-.435-1.011-.973c0-.549.409-.971 1.036-.971s1.011.422 1.023.971c0 .538-.396.973-1.048.973zm8.084 7.024h-1.944v-3.467c0-.807-.282-1.355-.985-1.355c-.537 0-.856.371-.997.728c-.052.127-.065.307-.065.486v3.607H8.814v-4.26c0-.781-.025-1.434-.051-1.996h1.689l.089.869h.039c.256-.408.883-1.01 1.932-1.01c1.279 0 2.238.857 2.238 2.699v3.699z">
  131.                         </path>
  132.                     </svg>
  133.                 </a>
  134.             {% endif %}
  135.         </div>
  136.         {# Logo #}
  137.         <a href="{{ path('app_home') }}" class="text-decoration-none">
  138.             <img src="{{ asset('assets/img/' ~ setting.siteLogo ) }}" alt="{{ setting.siteName }}"
  139.             class="img-fluid d-block mx-auto" style="max-width: 550px; width: 100%;">
  140.         </a>
  141.         <div class="d-flex justify-content-center align-items-center flex-column my-4">
  142.             {# Menu Tarifs, Clients #}
  143.             <div class="d-flex">
  144.                 <svg class="me-2" width="25" height="25" viewBox="0 0 24 24" style="color: #0a3962;">
  145.                     <path fill="currentColor" fill-rule="evenodd"
  146.                         d="M1 12C1 5.925 5.925 1 12 1s11 4.925 11 11s-4.925 11-11 11S1 18.075 1 12zm8 0c0-.17.01-.336.031-.5H12a1 1 0 1 0 0-2H9.877A3.993 3.993 0 0 1 13 8c.902 0 1.731.297 2.4.8a1 1 0 0 0 1.2-1.6a6.001 6.001 0 0 0-9.057 2.3H7a1 1 0 0 0 0 2h.02a6.081 6.081 0 0 0 0 1H7a1 1 0 1 0 0 2h.544a6.001 6.001 0 0 0 9.057 2.3a1 1 0 0 0-1.201-1.6c-.669.503-1.498.8-2.4.8a3.992 3.992 0 0 1-3.123-1.5H12a1 1 0 1 0 0-2H9.031A4.039 4.039 0 0 1 9 12z"
  147.                         clip-rule="evenodd"></path>
  148.                 </svg>
  149.                 <span class="fw-bold" style="color: #0a3962;">
  150.                     <a href="{{ path('app_tarif') }}" class="text-decoration-none" style="color: #0a3962;">
  151.                         Les tarifs
  152.                     </a>
  153.                 </span>
  154.             </div>
  155.             <div class="d-flex mt-3">
  156.                 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
  157.                 aria-hidden="true" role="img" class="iconify iconify--ri" width="32" height="32"
  158.                 preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24" style="color: #21afe6;">
  159.                 <path fill="currentColor"
  160.                     d="M4 22a8 8 0 1 1 16 0H4zm8-9c-3.315 0-6-2.685-6-6s2.685-6 6-6s6 2.685 6 6s-2.685 6-6 6z">
  161.                 </path>
  162.                 </svg>
  163.                 <span class="fw-bold">
  164.                     <a href="{{ setting.siteEspaceClient }}" target="_blank" class="text-decoration-none" style="color: #21afe6;">
  165.                         Espace client
  166.                     </a>
  167.                 </span>
  168.             </div>
  169.         </div>
  170.         <div class="d-flex justify-content-center align-items-center flex-column">
  171.             {# Menu principal #}
  172.             <a href="{{ path('app_home') }}" class="text-decoration-none fw-bold text-uppercase padding {% if pageTitle is defined and pageTitle != null and pageTitle == 'home' %}active{% endif %}">
  173.                 Accueil
  174.             </a>
  175.             <a href="{{ path('app_difference') }}" class="text-decoration-none fw-bold text-uppercase padding {% if pageTitle is defined and pageTitle != null and pageTitle == 'difference' %}active{% endif %}">
  176.                 Notre différence
  177.             </a>
  178.             <a href="{{ path('app_expert_index') }}" class="text-decoration-none fw-bold text-uppercase padding {% if pageTitle is defined and pageTitle != null and pageTitle == 'experts' %}active{% endif %}">
  179.                 Nos experts
  180.             </a>
  181.             <div class="menu-elem dropdown">
  182.                 <a href="#" data-bs-toggle="dropdown" aria-expanded="false" class="dropdown-toggle text-decoration-none fw-bold text-uppercase padding {% if pageTitle is defined and pageTitle != null and pageTitle == 'blog' %}active{% endif %}">
  183.                 Nos actualités
  184.                 </a>
  185.                 <ul class="dropdown-menu">
  186.                     <li><a class="dropdown-item" href="{{ path('app_blog_article_index') }}">Blog</a></li>
  187.                     <li><a class="dropdown-item" href="{{ path('app_newsletter') }}">Newsletter</a></li>
  188.                 </ul>
  189.             </div>
  190.             <a href="{{ path('app_office') }}" class="text-decoration-none fw-bold text-uppercase padding {% if pageTitle is defined and pageTitle != null  and pageTitle == 'offices' %}active{% endif %}">
  191.                 Nos offices
  192.             </a>
  193.             <a href="{{ path('app_contact') }}" class="text-decoration-none fw-bold text-uppercase padding {% if pageTitle is defined and pageTitle != null and pageTitle == 'contact' %}active{% endif %}">
  194.                 Contact
  195.             </a>
  196.             <a href="{{ path('app_offres') }}" class="text-decoration-none fw-bold text-uppercase padding {% if pageTitle is defined and pageTitle != null and pageTitle == 'offres' %}active{% endif %}">
  197.                 Nos offres d'emploi
  198.             </a>
  199.         </div>
  200.     </div>
  201.     {# Logo #}
  202.     <a href="{{ path('app_home') }}" class="homebutton text-decoration-none">
  203.         <img src="{{ asset('assets/img/' ~ setting.siteLogo ) }}" alt="{{ setting.siteName }}" class="img-fluid" style="max-width: 270px; width: 100%;">
  204.     </a>
  205.     {# <img src="{{ asset('assets/img/menu-btn.png') }}" alt="Menu burger" class="menu-burger"> #}
  206.     <div id="burger-menu">
  207.         <span></span>
  208.     </div>
  209. </div>
  210. <script>
  211.     const menuBurger = document.querySelector('#burger-menu');
  212.     const navLinks = document.querySelector('.nav-links');
  213.     menuBurger.addEventListener('click', () => {
  214.         navLinks.classList.toggle('displayburger');
  215.         menuBurger.classList.toggle("close");
  216.     });
  217. </script>