{% set menuHeader = getMenuWebsiteLocaleArray(app.request.locale,"header",connectUser) %}{% set menuHeader2 = getMenuWebsiteLocaleArray(app.request.locale,"header-right",connectUser) %}{% if page is defined %} {% set navname = page.navbar %}{% else %} {% set navname = "default" %}{% endif %}{% if navname == "default" %} <header class="uc-header header-global uc-navbar-sticky-wrap z-999"> <nav class="uc-navbar-container uc-navbar-transparent uc-navbar-float ft-tertiary z-1"> <div class="uc-navbar-main"> <div class="container max-w-lg lg:max-w-950px xl:max-w-xl"> <div class="uc-navbar min-h-56px lg:min-h-100px px-2 lg:px-0 text-gray-900 dark:text-white"> <div class="uc-navbar-left"> <div class="uc-logo"> <a class="panel text-none" href="{% if app.request.locale == default_locale %}{{ path('homepage') }}{% else %}{{ path('locale_homepage',{'_locale':app.request.locale}) }}{% endif %}" style="width: {{ logo_width }}px"> <img class="text-primary dark:text-tertiary" src="{{ logo }}" alt="{{ websitename }}" width="{{ logo_width }}" height="{{ logo_height }}" data-uc-svg> </a> </div> </div> <div class="uc-navbar-center d-none xl:d-flex"> <ul class="uc-navbar-nav gap-4 xl:gap-5 d-none lg:d-flex fs-5 fw-bold" style="--uc-nav-height: 48px"> {% if menuHeader is not empty %} {% for m in menuHeader %} {% if m.link != "#" %} <li><a href="{{ m.link }}" {% if m.targetBlank == 1%}target="_blank"{% endif %}>{{ m.title }}</a></li> {% else %} {% set itemsLink = getMenuWebsiteItems(m.id) %} <li> <a href="#">{{ m.title }} <span data-uc-navbar-parent-icon></span></a> <div class="uc-navbar-dropdown w-600px ft-primary text-unset fs-6 fw-normal p-0 hide-scrollbar rounded-2 overflow-hidden" data-uc-drop="mode: click; offset: 0; boundary: !.uc-navbar; animation: uc-animation-slide-top-small; duration: 150;"> <div class="row child-cols-6 g-0 col-match" data-uc-grid> <div> <ul class="uc-nav uc-navbar-dropdown-nav p-2"> {% for itl in itemsLink %} <li> <a class="hstack items-start gap-2 p-2 hover:bg-gray-600 hover:bg-opacity-5 dark:hover:bg-white duration-150 rounded-1-5" href="{{ itl.link }}" aria-label="{{ itl.title }}" title="{{ itl.title }}"> {% if itl.linkPicture is not empty %}<img src="{{ itl.linkPicture }}" width="20" style="margin-top:-2px;" />{% endif %} <span class="vstack gap-narrow mt-nnarrow"> <span class="fw-bold dark:text-white">{{ itl.title }}</span> {% if itl.description is not empty %}<span class="fw-normal">{{ itl.description }}</span>{% endif %} </span> </a> </li> {% endfor %} </ul> </div> {% if m.submenuHTML is not empty %} <div> <ul class="uc-nav uc-navbar-dropdown-nav p-2 h-100 bg-gray-25 dark:bg-gray-300 dark:bg-opacity-5"> {{ m.submenuHTML|raw }} </ul> </div> {% endif %} </div> </div> </li> {% endif %} {% endfor %} {% endif %} </ul> </div> <div class="uc-navbar-right"> <div class="d-inline-block"> <ul class="uc-navbar-nav gap-3 xl:gap-4 d-none lg:d-flex fw-medium ltr:ms-2 ltr:xl:ms-4 rtl:me-2 rtl:xl:me-4"> {% block header_content %} {% set translationsPaths = app.session.get('translations_paths') %} {% if translationsPaths is not null %} <li class="d-inline-block"> <a href="#" class="hstack gap-1 text-none fw-medium" role="button" aria-haspopup="true" aria-expanded="true"> <i class="icon icon-1 unicon-wikis"></i> <span>{{ app.request.locale }}</span> </a> <div class="w-200px py-1 bg-white dark:bg-gray-700 shadow-xs rounded-2 " data-uc-drop="mode: click; offset: 0; pos: top-right; boundary: !.uc-navbar-container; animation: uc-animation-slide-top-small; duration: 150;" style="top: 100px; left: 889.023px; max-width: 2017px;"> <ul class="nav-y gap-0 fs-7"> {% for key, value in translationsPaths %} {% if key == "en" %} <li> <a href="{{ value }}" class="w-100 p-1 px-2 hover:bg-gray-600 hover:bg-opacity-5 dark:hover:bg-white duration-150"> <img class="w-20px rounded-1 me-1 rtl:me-0 rtl:ms-1" src="/assets/lexend/images/common/en.svg" alt="{{ "Anglais"|translateLocale(arrayTranslate) }}" /> {{ "Anglais"|translateLocale(arrayTranslate) }} </a> </li> {% endif %} {% if key == "fr" %} <li> <a href="{{ value }}" class="w-100 p-1 px-2 hover:bg-gray-600 hover:bg-opacity-5 dark:hover:bg-white duration-150"> <img class="w-20px rounded-1 me-1 rtl:me-0 rtl:ms-1" src="/assets/lexend/images/common/fr.svg" alt="{{"Français"|translateLocale(arrayTranslate)}}" /> {{"Français"|translateLocale(arrayTranslate)}} </a> </li> {% endif %} {% if key == "de" %} <li> <a href="{{ value }}" class="w-100 p-1 px-2 hover:bg-gray-600 hover:bg-opacity-5 dark:hover:bg-white duration-150"> <img class="w-20px rounded-1 me-1 rtl:me-0 rtl:ms-1" src="/assets/lexend/images/common/de.svg" alt="{{ "Allemand"|translateLocale(arrayTranslate) }}" /> {{ "Allemand"|translateLocale(arrayTranslate) }} </a> </li> {% endif %} {% endfor %} </ul> </div> </li> {% endif %} {% endblock header_content %} {% if menuHeader2 is not empty %} {% for m in menuHeader2 %} {% if m.typeButton == "download" %} <li> <a href="{{ m.link }}" {% if m.targetBlank == 1%}target="_blank"{% endif %} title="{{ m.title }}" class="btn btn-md btn-primary border-0 px-3 lg:d-inline-flex" style="color:white !important;"> {{ m.title }} </a> </li> {% else %} <li> <a href="{{ m.link }}" {% if m.targetBlank == 1%}target="_blank"{% endif %} title="{{ m.title }}">{{ m.title }}</a> </li> {% endif %} {% endfor %} {% endif %} </ul> <a class="d-block lg:d-none" href="#uc-menu-panel" data-uc-navbar-toggle-icon data-uc-toggle></a> </div> </div> </div> </div> </div> </nav> </header>{% endif %}{% if navname == "secondary" %} <header class="uc-header header-six uc-navbar-sticky-wrap z-999 uc-sticky" data-uc-sticky="start: 300px; animation: uc-animation-slide-top; sel-target: .uc-navbar-container; cls-active: uc-navbar-sticky; cls-inactive: uc-navbar-transparent; end: !*;"> <nav class="uc-navbar-container lg:mt-3 rounded-0 lg:rounded-pill uc-navbar-float ft-tertiary z-1 uc-navbar-transparent"> <div class="uc-navbar-main"> <div class="container max-w-lg lg:max-w-950px xl:max-w-xl"> <div class="uc-navbar min-h-64px lg:min-h-80px px-2 lg:px-0 text-gray-900 dark:text-white" data-uc-navbar="mode: click; animation: uc-animation-slide-top-small; duration: 150;"> <div class="uc-navbar-left"> <div class="uc-logo"> <a class="panel text-none" href="{% if app.request.locale == default_locale %}{{ path('homepage') }}{% else %}{{ path('locale_homepage',{'_locale':app.request.locale}) }}{% endif %}" style="width: {{ logo_width }}px"> <img class="text-primary dark:text-tertiary" src="{{ logo }}" alt="{{ websitename }}" width="{{ logo_width }}" height="{{ logo_height }}" data-uc-svg> </a> </div> </div> <div class="uc-navbar-center"> <ul class="uc-navbar-nav gap-3 xl:gap-5 d-none lg:d-flex fs-5 fw-medium" data-uc-scrollspy-nav="closest: li; offset: 40; scroll: true"> {% if menuHeader is not empty %} {% for m in menuHeader %} {% if m.link != "#" %} <li><a href="{{ m.link }}" {% if m.targetBlank == 1%}target="_blank"{% endif %}>{{ m.title }}</a></li> {% else %} {% set itemsLink = getMenuWebsiteItems(m.id) %} <li> <a href="#">{{ m.title }} <span data-uc-navbar-parent-icon></span></a> <div class="uc-navbar-dropdown w-600px ft-primary text-unset fs-6 fw-normal p-0 hide-scrollbar rounded-2 overflow-hidden" data-uc-drop="mode: click; offset: 0; boundary: !.uc-navbar; animation: uc-animation-slide-top-small; duration: 150;"> <div class="row child-cols-6 g-0 col-match" data-uc-grid> <div> <ul class="uc-nav uc-navbar-dropdown-nav p-2"> {% for itl in itemsLink %} <li> <a class="hstack items-start gap-2 p-2 hover:bg-gray-600 hover:bg-opacity-5 dark:hover:bg-white duration-150 rounded-1-5" href="{{ itl.link }}" aria-label="{{ itl.title }}" title="{{ itl.title }}"> {% if itl.linkPicture is not empty %}<img src="{{ itl.linkPicture }}" width="20" style="margin-top:-2px;" />{% endif %} <span class="vstack gap-narrow mt-nnarrow"><b class="fw-bold dark:text-white">{{ itl.title }}</b> {% if itl.description is not empty %}<span class="fw-normal">{{ itl.description }}</span>{% endif %} </span> </a> </li> {% endfor %} </ul> </div> {% if m.submenuHTML is not empty %} <div> <ul class="uc-nav uc-navbar-dropdown-nav p-2 h-100 bg-gray-25 dark:bg-gray-300 dark:bg-opacity-5"> {{ m.submenuHTML|raw }} </ul> </div> {% endif %} </div> </div> </li> {% endif %} {% endfor %} {% endif %} </ul> </div> <div class="uc-navbar-right"> <ul class="uc-navbar-nav gap-3 xl:gap-4 d-none lg:d-flex fw-medium ltr:ms-2 ltr:xl:ms-4 rtl:me-2 rtl:xl:me-4"> {% set translationsPaths = app.session.get('translations_paths') %} {% if translationsPaths is not null %} <li class="d-inline-block"> <a href="#" class="hstack gap-1 text-none fw-medium" role="button" aria-haspopup="true" aria-expanded="true"> <i class="icon icon-1 unicon-wikis"></i> <span>{{ app.request.locale }}</span> </a> <div class="w-200px py-1 bg-white dark:bg-gray-700 shadow-xs rounded-2 " data-uc-drop="mode: click; offset: 0; pos: top-right; boundary: !.uc-navbar-container; animation: uc-animation-slide-top-small; duration: 150;" style="top: 100px; left: 889.023px; max-width: 2017px;"> <ul class="nav-y gap-0 fs-7"> {% for key, value in translationsPaths %} {% if key == "en" %} <li> <a href="{{ value }}" class="w-100 p-1 px-2 hover:bg-gray-600 hover:bg-opacity-5 dark:hover:bg-white duration-150"> <img class="w-20px rounded-1 me-1 rtl:me-0 rtl:ms-1" src="/assets/lexend/images/common/en.svg" alt="{{ "Anglais"|translateLocale(arrayTranslate) }}" /> {{ "Anglais"|translateLocale(arrayTranslate) }} </a> </li> {% endif %} {% if key == "fr" %} <li> <a href="{{ value }}" class="w-100 p-1 px-2 hover:bg-gray-600 hover:bg-opacity-5 dark:hover:bg-white duration-150"> <img class="w-20px rounded-1 me-1 rtl:me-0 rtl:ms-1" src="/assets/lexend/images/common/fr.svg" alt="{{"Français"|translateLocale(arrayTranslate)}}" /> {{"Français"|translateLocale(arrayTranslate)}} </a> </li> {% endif %} {% if key == "de" %} <li> <a href="{{ value }}" class="w-100 p-1 px-2 hover:bg-gray-600 hover:bg-opacity-5 dark:hover:bg-white duration-150"> <img class="w-20px rounded-1 me-1 rtl:me-0 rtl:ms-1" src="/assets/lexend/images/common/de.svg" alt="{{ "Allemand"|translateLocale(arrayTranslate) }}" /> {{ "Allemand"|translateLocale(arrayTranslate) }} </a> </li> {% endif %} {% endfor %} </ul> </div> </li> {% endif %} {% if menuHeader2 is not empty %} {% for m in menuHeader2 %} {% if m.typeButton == "download" %} <li> <a href="{{ m.link }}" {% if m.targetBlank == 1%}target="_blank"{% endif %} title="{{ m.title }}" class="btn btn-md btn-primary border-0 px-3 lg:d-inline-flex"> {{ m.title }} </a> </li> {% else %} <li> <a href="{{ m.link }}" {% if m.targetBlank == 1%}target="_blank"{% endif %} title="{{ m.title }}">{{ m.title }}</a> </li> {% endif %} {% endfor %} {% endif %} </ul> </div> </div> </div> </div> </nav> </header>{% endif %}<div id="uc-menu-panel" data-uc-offcanvas="overlay: true;" class="uc-offcanvas uc-offcanvas-overlay" tabindex="-1"> <div class="uc-offcanvas-bar bg-white text-dark dark:bg-gray-900 dark:text-white uc-offcanvas-bar-animation uc-offcanvas-slide" role="dialog" aria-modal="true" style="max-width: 581px;"> <header class="uc-offcanvas-header hstack justify-between items-center pb-2 bg-white dark:bg-gray-900"> <div class="uc-logo"> <a href="{% if app.request.locale == default_locale %}{{ path('homepage') }}{% else %}{{ path('locale_homepage',{'_locale':app.request.locale}) }}{% endif %}" class="h5 text-none text-gray-900 dark:text-white"> <img src="{{ logo }}" alt="{{ websitename }}" width="{{ logo_width }}" height="{{ logo_height }}"> </a> </div> <button class="uc-offcanvas-close rtl:end-auto rtl:start-0 m-1 mt-2 icon-3 btn border-0 dark:text-white dark:text-opacity-50 hover:text-primary hover:rotate-90 duration-150 transition-all" type="button"> <i class="unicon-close"></i> </button> </header> <div class="panel"> <div class="uc-sticky-placeholder" hidden=""></div> <ul class="nav-y gap-narrow fw-medium fs-6 uc-nav" data-uc-nav=""> {% if menuHeader is not empty %} {% for m in menuHeader %} {% if m.link != "#" %} <li><a href="{{ m.link }}" {% if m.targetBlank == 1%}target="_blank"{% endif %}>{{ m.title }}</a></li> {% else %} {% set itemsLink = getMenuWebsiteItems(m.id) %} <li class="uc-parent"> <a href="#" id="uc-nav-{{ m.id }}" role="button" aria-controls="uc-nav-{{ m.id }}" aria-expanded="false" aria-disabled="false">{{ m.title }}</a> <ul class="uc-nav-sub uc-nav" data-uc-nav="" hidden="" id="uc-nav-12" role="region" aria-labelledby="uc-nav-11"> {% for itl in itemsLink %} <li role="presentation"><a href="{{ itl.link }}">{{ itl.title }}</a></li> {% endfor %} </ul> </li> {% endif %} {% endfor %} {% endif %} <li class="hr opacity-10 my-1"></li> {% if menuHeader2 is not empty %} {% for m in menuHeader2 %} {% if m.typeButton == "download" %} <li> <a href="{{ m.link }}" {% if m.targetBlank == 1%}target="_blank"{% endif %} title="{{ m.title }}" class="btn btn-md btn-primary border-0 px-3 lg:d-inline-flex" style="color:white !important;"> {{ m.title }} </a> </li> {% else %} <li> <a href="{{ m.link }}" {% if m.targetBlank == 1%}target="_blank"{% endif %} title="{{ m.title }}">{{ m.title }}</a> </li> {% endif %} {% endfor %} {% endif %} </ul> <ul class="social-icons nav-x mt-4"> {% if facebook is not empty %} <li> <a href="{{ facebook }}" target="_blank"> <i class="icon icon-2 unicon-logo-facebook"></i> </a> </li> {% endif %} {% if twitter is not empty %} <li> <a href="{{ twitter }}" target="_blank"> <i class="icon icon-2 unicon-logo-x-filled"></i> </a> </li> {% endif %} {% if instagram is not empty %} <li> <a href="{{ instagram }}" target="_blank"> <i class="icon icon-2 unicon-logo-instagram"></i> </a> </li> {% endif %} {% if linkedin is not empty %} <li> <a href="{{ linkedin }}" target="_blank"> <i class="icon icon-2 unicon-logo-linkedin"></i> </a> </li> {% endif %} {% if youtube is not empty %} <li> <a href="{{ youtube }}" target="_blank"> <i class="icon icon-2 unicon-logo-youtube"></i> </a> </li> {% endif %} </ul> <div class="uc-sticky-placeholder" hidden=""></div> </div> </div></div>