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