templates/layout/includes/navegation/navbar.html.twig line 1

Open in your IDE?
  1. <div class="megamenu style2">
  2.     <div class="row">
  3.         <div class="lvl-1 col-md-2">
  4.             <a href="#" class="site-nav lvl-1 menu-title text-center w-100" style="font-weight: 800 !important; font-size: 16px">{{ "navegation.brand" | trans }}</a>
  5.             <div class="menu-brand-logo align-items-center"  id="brand-container">
  6.             </div>
  7.         </div>
  8.         <div class="lvl-1 col-md-3">
  9.             <a href="#" class="site-nav lvl-1 menu-title text-center w-100 m-0" style="font-weight: 800 !important; font-size: 16px" >{{ "general.filters.categories" | trans }}</a>
  10.             <div class="subLinks">
  11.             {% for category in categories %}
  12.                 {% set url = category.category.getDetailUrl({'rootCategory': null, 'document' : document}) %}
  13.                     <div class="lvl-2 children sub {% if loop.first %}first-category active{% endif %}" id="category-{{ category.category.getId() }}" onmouseover="showSubcategories({{ category.category.getId() }});" style="padding: 5px;">
  14.                         <a href="{{ url }}" class="site-nav lvl-2 menu-title" style="font-weight: 600 !important;">{{ category.category.title }}</a>
  15.                     </div>
  16.             {% endfor %}
  17.             </div>
  18.             <div class="menu-brand-logo align-items-center"  id="brand-container">
  19.             </div>
  20.         </div>
  21.         <div class="lvl-1 col-md-2">
  22.             <a href="#" class="site-nav lvl-1 menu-title"></a>
  23.             {% for category in categories %}
  24.                 <div class="subLinks subcategories-list subcategory-{{ category.category.getId() }}" style="display: none;" >
  25.                     {% for subcategory in category.children %}
  26.                         {% set subcategoryUrl = subcategory.category.getDetailUrl({'rootCategory': null, 'document' : document}) %}
  27.                         <div class="lvl-2 children sub {% if loop.first %}active{% endif %}" id="category-{{ subcategory.category.getId() }}" onmouseover="showSubsubcategories({{ subcategory.category.getId() }});" style="padding: 5px;">
  28.                             <a href="{{ subcategoryUrl }}" class="site-nav lvl-2 menu-title">{{ subcategory.category.title }}</a>
  29.                         </div>
  30.                     {% endfor %}
  31.                 </div>
  32.             {% endfor %}
  33.         </div>
  34.         <div class="lvl-1 col-md-2">
  35.             <a href="#" class="site-nav lvl-1 menu-title"></a>
  36.             {% for category in categories %}
  37.                 {% set categoryIndex = loop.first %}
  38.                 {% for subcategory in category.children %}
  39.                     {% set subcategoryFirst = loop.first %}
  40.                     <div class="subLinks subsubcategories-list subsubcategory-{{ subcategory.category.getId() }}" style="display: none;">
  41.                         {% for subsubcategory in subcategory.children %}
  42.                             {% set subsubcategoryUrl = subsubcategory.category.getDetailUrl({'rootCategory': null, 'document' : document}) %}
  43.                             <div class="lvl-2 children" id="category-{{ subsubcategory.category.Id }}">
  44.                                 <a href="{{ subsubcategoryUrl }}"  class="site-nav lvl-2 menu-title">{{ subsubcategory.category.title }}</a>
  45.                             </div>
  46.                         {% endfor %}
  47.                     </div>
  48.                 {% endfor %}
  49.             {% endfor %}
  50.         </div>
  51.         <div class="lvl-1 col-md-3 p-0 text-center align-items-center featured-product-container" id="featured-product-container"></div>
  52.     </div>
  53. </div>
  54. <script>
  55.     let errorFeaturedProduct= '{{ 'navbar.product.error_translation' |trans}}'
  56.     let errorLoadingFeaturedProduct= '{{ 'navbar.product.error.loading_translation' |trans}}'
  57. </script>