templates/layouts/layouts_front/nav_menu.html.twig line 1

Open in your IDE?
  1. <style>
  2.     #api_error:before {
  3.         content: none !important;
  4.     }
  5.     #api_error {
  6.         padding: 5px;
  7.         height: 60px;
  8.         max-width: 100% !important;
  9.         width: 100% !important;
  10.         display: flex !important;
  11.         justify-content: center !important;
  12.         align-items: center !important;
  13.     }
  14.     #flux .current {
  15.         position: relative;
  16.         width: 100%;
  17.         top: 0;
  18.         left: 0;
  19.         transform: inherit;
  20.     }
  21.     #flux li p {
  22.         transform: inherit;
  23.     }
  24.     @media (max-width: 500px) {
  25.         #flux li p {
  26.             padding: 0;
  27.             font-size: 1em;
  28.         }
  29.         #flux {
  30.             height: 50px;
  31.             padding: 0;
  32.         }
  33.     }
  34. </style>
  35. <section data-bs-version="5.1" class="menu bistro_menu1 cid-sYKQ7yZHbI" once="menu" id="menu1-46">
  36.     {% if api_error %}
  37.         <ul id="flux" data-pos="1" data-nbFlux="1" style="background-color: #17A4A780">
  38.             <li id="flux_1" class="current">
  39.                 <p id="api_error">
  40.                     Nous rencontrons un problème technique, la boutique et l'espace client sont indisponibles.
  41.                 </p>
  42.             </li>
  43.         </ul>
  44.     {% endif %}
  45.     {% include 'layouts/layouts_front/nav/flash_info.html.twig' %}
  46.     <nav id="navbar"
  47.          class="pt-4 pt-xxl-3 navbar navbar-expand-lg navbar-dropdown navbar-fixed-top {% if flashInfo is defined  and flashInfo|length > 0 %}{% endif %}">
  48.         {% set pagesLeft = pagesFirstLevel|length / 2 %}
  49.         {% set pagesLeft = pagesLeft | round %}
  50.         {% if (pagesFirstLevel|length != 4 or pagesFirstLevel|length != 6) and logoInMenu == 'center' %}
  51.             {% set logoInMenu = 'top_center' %}
  52.         {% endif %}
  53.         {# LOGO AU CENTRE AU DESSUS #}
  54.         {% if logoInMenu == 'top_center' %}
  55.             <div class="navbar-brand d-flex d-lg-flex">
  56.                 <span class="navbar-logo">
  57.                     <a href="{{ websiteroot }}">
  58.                         <img class="desktopLogo"
  59.                              src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt=""
  60.                              style="height: 3rem;" loading="lazy" class="lazyload"
  61.                              data-src="{{ asset('medias_front/common/logoHeadMobile.png') }}">
  62.                     </a>
  63.                 </span>
  64.             </div>
  65.         {% endif %}
  66.         <div class="menu_box justify-content-end container-fluid align-items-end pt-5 pt-lg-0">
  67.             <button class="navbar-toggler" type="button" data-toggle="collapse" data-bs-toggle="collapse"
  68.                     onclick="togglerMenu()"
  69.                     data-target=".menuCollapse" data-bs-target=".menuCollapse"
  70.                     aria-controls="navbarNavAltMarkup nav_up panierCmt" aria-expanded="false"
  71.                     aria-label="Toggle navigation">
  72.                 <span class="hamburger">
  73.                     <span style="color: red"></span>
  74.                     <span></span>
  75.                     <span></span>
  76.                     <span></span>
  77.                 </span>
  78.             </button>
  79.             <div class="{% if logoInMenu != 'center' %}  collapse justify-content-start navbar-collapse multi-collapse  justify-content-center navMenu{% endif %}"
  80.                  id="navbarSupportedContent">
  81.                 <div id="containerMenuPage" class="d-flex">
  82.                     <div class="icon-nav">
  83.                         <a href="{{ websiteroot }}" class="">
  84.                             <img class="noFadeInUp"
  85.                                  src="{{ asset('/medias_front/common/logo.svg', twigNameSpace) }}"
  86.                                  alt="Logo">
  87.                         </a>
  88.                     </div>
  89.                     <div class="logonav"></div>
  90.                     <div class="d-flex flex-column blocnav">
  91.                         <div class="contentnav chekosnav">
  92.                             {% include '@main-app/layouts/layouts_front/nav_top_menu.html.twig' %}
  93.                         </div>
  94.                         <div class="justify-content-center align-items-end menuhover flex-column">
  95.                             <div class="fondnav"></div>
  96.                             <div class="fondnavNuage"></div>
  97.                             {% include '@main-app/layouts/layouts_front/temp.html.twig' %}
  98.                         </div>
  99.                     </div>
  100.                 </div>
  101.                 {# LOGO AU CENTRE #}
  102.                 {% if logoInMenu == 'center' %}
  103.                     <div class="navbar-brand d-lg-flex">
  104.                     <span class="navbar-logo">
  105.                         <a href="{{ websiteroot }}">
  106.                             <img src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt=""
  107.                                  style="height: 3rem;" loading="lazy" class="lazyload"
  108.                                  data-src="{{ asset('medias_front/common/logoHead.png') }}">
  109.                         </a>
  110.                     </span>
  111.                     </div>
  112.                 {% endif %}
  113.                 {% if rightMenuActivated %}
  114.                     <div class="offcanvas_box ms-5">
  115.                         <button class="btn_offcanvas" type="button" data-bs-toggle="offcanvas"
  116.                                 data-bs-target="#offcanvasRight" aria-controls="offcanvasRight">
  117.                             <div class="hamburger">
  118.                                 <span></span>
  119.                                 <span></span>
  120.                                 <span></span>
  121.                             </div>
  122.                         </button>
  123.                         <div class="offcanvas offcanvas-end" tabindex="-1" id="offcanvasRight"
  124.                              aria-labelledby="offcanvasRightLabel">
  125.                             <div class="offcanvas-header">
  126.                                 <button type="button" class="btn-close text-reset" data-bs-dismiss="offcanvas"
  127.                                         aria-label="Close">
  128.                                 </button>
  129.                             </div>
  130.                             <div class="offcanvas-body">
  131.                                 <div class="offcanvas_image">
  132.                                     <img src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="
  133.                                          alt="" style="height: 4rem;" loading="lazy" class="lazyload"
  134.                                          data-src="assets/images/logo2.png">
  135.                                 </div>
  136.                                 <p class="mbr-text mbr-fonts-style display-4">Lorem ipsum dolor sit amet, consectetur
  137.                                     adipisicing elit. Sit ex voluptatem voluptas aut quod, autem obcaecati
  138.                                     molestiae.</p>
  139.                                 <div class="offcanvas_contact">
  140.                                     <h3 class="mbr-section-subtitle mbr-fonts-style display-5">BistroM5</h3>
  141.                                     <p class="text_widget mb-0 mbr-fonts-style display-4"><a href="#"
  142.                                                                                              class="text-primary">350
  143.                                             5th Ave, New York, NY 10118 </a>
  144.                                         <br><br>
  145.                                         <a href="tel:12345678900" class="text-primary">+1 234-567-8900</a>
  146.                                         <br>
  147.                                         <a href="tel:98765432100" class="text-primary">+9 876-543-2100</a>
  148.                                     </p>
  149.                                 </div>
  150.                                 <div class="icons-menu">
  151.                                     <a class="iconfont-wrapper" href="#" target="_blank">
  152.                                         <span class="p-2 mbr-iconfont socicon-facebook socicon"></span>
  153.                                     </a>
  154.                                     <a class="iconfont-wrapper" href="#" target="_blank">
  155.                                         <span class="p-2 mbr-iconfont socicon-twitter socicon"></span>
  156.                                     </a>
  157.                                     <a class="iconfont-wrapper" href="#" target="_blank">
  158.                                         <span class="p-2 mbr-iconfont socicon-instagram socicon"></span>
  159.                                     </a>
  160.                                     <a class="iconfont-wrapper" href="#" target="_blank">
  161.                                         <span class="p-2 mbr-iconfont socicon-linkedin socicon"></span>
  162.                                     </a>
  163.                                 </div>
  164.                             </div>
  165.                         </div>
  166.                     </div>
  167.                 {% endif %}
  168.             </div>
  169.             <div class="imgMobLogo">
  170.                 <div class="logonav d-flex flex-column align-items-start justify-content-start flex-wrap navMoblogo">
  171.                     <a href="{{ websiteroot }}">
  172.                         <img class="noFadeInUp resize-scroll"
  173.                              src="{{ asset('/medias_front/common/logo.svg',projectDirectory) }}"
  174.                              alt="Logo barege">
  175.                     </a>
  176.                 </div>
  177.             </div>
  178.             {#            {% if isEcommerce == 1 %} #}
  179.             {#                {% include 'layouts/layouts_front/nav/ecommerce.html.twig' %} #}
  180.             {#            {% endif %} #}
  181.         </div>
  182.     </nav>
  183. </section>