templates/commons/menuProducts.html.twig line 1

Open in your IDE?
  1. <div class="bgc-white br-0 overflow-hidden">
  2.     <div class="d-flex max-0 pills-products position-relative justify-content-between">
  3.         <div class="col-auto px-0">
  4.             <div class="nav wi-330 flex-column nav-pills bgc-F1F5F6 pay-50 pal-60 c-0d8fc4-h" id="v-pills-tab" role="tablist"
  5.                  aria-orientation="vertical">
  6.                 {% for key, category in getCategories() %}
  7.                     {% if category.published %}
  8.                     <a
  9.                         class="{{ (loop.first) ? 'activeCatLink ' }} d-flex c-06303E c-3992B0-h mab-5 bgc-white-h position-relative transition pay-12 br-0 pointer w-100 cat-menu-link link-img-cat align-items-center c-44515d fs-18 fw-600 tdl-none-h c-0d8fc4-h {{ (loop.first) ? 'active' }}"
  10.                         id="v-pills-home-tab{{ loop.index }}"
  11.                         data-img="{{ category.categoryFileName ? asset(vich_uploader_asset(category, 'categoryFile'))|imagine_filter('medium') : asset('assets/img/sans-img-1-dmd-inox.jpg')|imagine_filter('medium') }}"
  12. {#                        data-img="{{ category ? asset(vich_uploader_asset(category, 'categoryFile')) }}"#}
  13.                         data-toggle="pill" href="#v-pills-home{{ loop.index }}" role="tab"
  14.                         aria-controls="v-pills-home{{ loop.index }}"
  15.                         aria-selected="true"
  16.                         data-href="{{ path('front_products', {"catSlug":category.slug}) }}"
  17.                         >
  18.                         <div class="position-relative col-auto pax-10">
  19.                             <div class="wi-65 he-65 d-flex align-items-center jusify-content-center" style="background-color:{{category.color}}">
  20. {#                                <img src="{{ asset(vich_uploader_asset(category, 'categoryIconFile')) }}"#}
  21.                                 <img src="{{ category.categoryIconFileName ? asset(vich_uploader_asset(category, 'categoryIconFile'))|imagine_filter('medium') : asset('assets/img/sans-img-1-dmd-inox.jpg')|imagine_filter('medium') }}"
  22.                                      alt="{{ category.title }}" class="img-white  position-absolute t-0 b-0 w-auto l-0 r-0 m-auto img-white mawi-65"/>
  23.                             </div>
  24.                         </div>
  25.                         <div class="col pax-0">
  26.                             <div class="c-inherit text-uppercase fs-14" data-link3>
  27.                                 {{ category.title }}
  28.                                 {#   <div class="c-A0A2A6 link c-9DC771-h fs-13 fw-600 d-block allProductsLink" data-href="{{ path('front_products', {"catSlug":category.slug}) }}" >
  29.                                        {{"menuProducts.allProducts.link"|trans|raw }}
  30.                                    </div>#}
  31.                             </div>
  32.                         </div>
  33.                         <div class="position-absolute wi-22 he-22 t-0 b-0 r-20 arrowProduct my-auto d-flex align-items-center justify-content-center">
  34.                             <i class="fa-solid fa-chevron-right c-inherit fs-12"></i>
  35.                         </div>
  36.                     </a>
  37.                     {% endif %}
  38.                 {% endfor %}
  39.             </div>
  40.         </div>
  41.         <div class="w-100 d-flex max-0 pills-products position-relative justify-content-between">
  42.             <div class="col-3 px-0 brw-1 brs-solid bc-F1F5F6 ">
  43.                 <div class="tab-content h-100 pay-35 pal-24 par-48 bgc-F2F4F8 position-relative" id="v-pills-tabContent">
  44.                     {% for key, category in getCategories() %}
  45.                         {% if category.published and getSubCategories(category)|length > 0 %}
  46.                             <div class="tab-pane  {{ (loop.first) ? 'show active ' }}" id="v-pills-home{{ loop.index }}"
  47.                                  role="tabpanel" aria-labelledby="v-pills-home-tab{{ loop.index }}">
  48.                                 <div class="fw-700 c-06303E fs-16  mab-10">
  49.                                     {{ category.title }}
  50.                                 </div>
  51.                                 {% for key, subCategory in getSubCategories(category) %}
  52.                                     {% if subCategory.published %}
  53.                                         <div id="accordionProducts{{ loop.index }}{{category.id}}" class="cat{{category.id}}Application{{ loop.index }}">
  54.                                             <div class="">
  55.                                                 <div class="" id="headingOneProducts{{ loop.index }}{{category.id}}">
  56.                                                     <div role="button" data-cat="{{category.id}}" data-app="{{ loop.index }}"  class="c-06303E  headingOneProducts{{ loop.index }} {{ (loop.first) ? 'activesubCatLink ' }} mab-3  cat-subMenu-link position-relative c-65B3CD-h d-flex  position-relative transition pay-8 par-10 br-0 pointer w-100 fs-14 fw-500">
  57.                                                         <a class="c-06303E c-65B3CD-h pointer w-100 fs-14 fw-500" href="{% if getSubValues(subCategory)|length == 0 %}{{ getProductUrl(null, false, null, subCategory, null, null) }}{% else %}{{ getProductUrl(null, true, null, subCategory, null, null) }}{% endif %}">
  58.                                                             {{ subCategory.title }}
  59.                                                         </a>
  60.                                                     </div>
  61.                                                 </div>
  62.                                             </div>
  63.                                         </div>
  64.                                     {% endif %}
  65.                                 {% endfor %}
  66.                             </div>
  67.                         {% endif %}
  68.                     {% endfor %}
  69.                 </div>
  70.             </div>
  71.             <div class="col-3 px-0 px-0 brw-1 brs-solid bc-F1F5F6">
  72.                 {% for key, category in getCategories() %}
  73.                     {% if category.published %}
  74.                         <div class=" {{ (loop.first) ? 'catActive' }}">
  75.                             {% for key, subCategory in getSubCategories(category) %}
  76.                                 {% if subCategory.published and getSubSubCategories(subCategory)|length > 0 %}
  77.                                     <div id="contentCat{{category.id}}Application{{ loop.index }}" class="{{ (loop.first) ? 'appActive' }} contentCat  pay-35 pal-24 par-48">
  78.                                         <div class="fw-700 c-06303E fs-16  mab-10">
  79.                                             {{ subCategory.title }}
  80.                                         </div>
  81.                                         {% for key, subSubCategory in getSubSubCategories(subCategory) %}
  82.                                             {% if subSubCategory.published %}
  83.                                                 <div  class="">
  84.                                                     <div id="cat{{category.id}}Application{{ subCategory.id }}Sub{{loop.index}}" role="button" data-cat="{{category.id}}" class="c-06303E  {#headingOneProducts{{ loop.index }}#} {{ (loop.first) ? 'activesubsubCatLink ' }} headingOneSubProducts{{ loop.index }} mab-3  cat-subSubMenu-link position-relative c-65B3CD-h d-flex  position-relative transition pay-8 par-10 br-0 pointer w-100 fs-14 fw-500" data-subcat="{{ subCategory.id }} " data-subsubCat="{{ loop.index }}" >
  85.                                                         <a class="c-06303E c-65B3CD-h pointer w-100 fs-14 fw-500" href="{% if getSubValues(subSubCategory)|length == 0 %}{{ getProductUrl(null, false, null, null, subSubCategory, null) }}{% else %}{{ getProductUrl(null, true, null, null, subSubCategory, null) }}{% endif %}">
  86.                                                             {{ subSubCategory.title }}
  87.                                                         </a>
  88.                                                     </div>
  89.                                                 </div>
  90.                                             {% endif %}
  91.                                         {% endfor %}
  92.                                         {#    {% for key, product in getProducts(subCategory) %}
  93.                                     <div class="mab-24">
  94.                                         <a class="c-7D7D7D fw-600 fs-14 c-9DC771-h link-transform" href="{{ getProductUrl(product, subCategory) }}">
  95.                                             {{ product.title }}
  96.                                         </a>
  97.                                     </div>
  98.                                  {% endfor %}#}
  99.                                     </div>
  100.                                 {% endif %}
  101.                             {% endfor %}
  102.                         </div>
  103.                     {% endif %}
  104.                 {% endfor %}
  105.             </div>
  106.             <div class="col-3 px-0 brw-1 brs-solid bc-F1F5F6">
  107.                 {% for key, category in getCategories() %}
  108.                     {% if category.published %}
  109.                         <div class=" {{ (loop.first) ? 'catActive3' }}">
  110.                             {% for key, subCategory in getSubCategories(category) %}
  111.                                 {% if subCategory.published %}
  112.                                     {#                        <div id="contentCat{{category.id}}Application{{ loop.index }}" class="{{ (loop.first) ? 'appActive' }} contentCat  pay-35 pal-24 par-48">#}
  113.                                     {#  <div class="fw-700 c-06303E fs-16  mab-10">
  114.                             {{ subCategory.title }}
  115.                         </div>#}
  116.                                     <div class=" {{ (loop.first) ? 'subcatActive3' }}">
  117.                                         {% for key, subSubCategory in getSubSubCategories(subCategory) %}
  118.                                             {% if subSubCategory.published and getSubSubSubCategories(subSubCategory)|length > 0 %}
  119.                                                 <div class="cat{{category.id}}Application{{ subCategory.id }}Sub{{loop.index}} contentSubSubCat {{ (loop.first) ? 'subSubcatActive3' }} pay-35 pal-24 par-48">
  120.                                                     <div class="fw-700 c-06303E fs-16  mab-10">
  121.                                                         {{ subSubCategory.title }}
  122.                                                     </div>
  123.                                                     {#    <div role="button" data-cat="{{category.id}}" class="c-06303E  mab-3  cat-subSubMenu-link position-relative c-65B3CD-h d-flex  position-relative transition pay-8 par-10 br-0 pointer w-100 fs-14 fw-500" data-subcat="{{ subCategory.id }} " data-subsubCat="{{ loop.index }}" >
  124.                                         </div>#}
  125.                                                     {% for key, subSubSubCategory in getSubSubSubCategories(subSubCategory) %}
  126.                                                         {% if subSubSubCategory.published %}
  127.                                                             <div class="mab-8">
  128.                                                                 <a class="c-06303E c-65B3CD-h pointer w-100 fs-14 fw-500" href="{{ getProductUrl(null, true, null, null, null, subSubSubCategory) }}">
  129.                                                                     {{ subSubSubCategory.title }}
  130.                                                                 </a>
  131.                                                             </div>
  132.                                                         {% endif %}
  133.                                                     {% endfor %}
  134.                                                 </div>
  135.                                             {% endif %}
  136.                                         {% endfor %}
  137.                                     </div>
  138.                                 {% endif %}
  139.                                 {#    {% for key, product in getProducts(subCategory) %}
  140.                                 <div class="mab-24">
  141.                                     <a class="c-7D7D7D fw-600 fs-14 c-9DC771-h link-transform" href="{{ getProductUrl(product, subCategory) }}">
  142.                                         {{ product.title }}
  143.                                     </a>
  144.                                 </div>
  145.                             {% endfor %}#}
  146.                                 {#                        </div>#}
  147.                             {% endfor %}
  148.                         </div>
  149.                     {% endif %}
  150.                 {% endfor %}
  151.             </div>
  152.             {% set firstCategory = getCategories()[0] %}
  153.             <div class="col-3 pax-0">
  154.                 <div class="par-30 pay-34 pal-20 h-100 d-flex align-items-center justify-content-center">
  155.                     {#                {{dump(getCategories()[0])}}#}
  156.                     <img class="img-cat of-contain h-100 wi-300 mr-auto"
  157.                          src="{{ firstCategory.categoryFileName ? asset(vich_uploader_asset(firstCategory, 'categoryFile'))|imagine_filter('medium') : asset('assets/img/sans-img-1-dmd-inox.jpg')|imagine_filter('medium') }}"
  158.                          alt="{{ getCategories()[0].title }}" />
  159.                     {#   {% for key,  category in getCategories() %}
  160.                    {% endfor %}#}
  161.                 </div>
  162.             </div>
  163.         </div>
  164.     </div>
  165. </div>