themes/XChildTheme/templates/bundles/SyliusShopBundle/Taxon/_sideXMenu.html.twig line 1

Open in your IDE?
  1. <nav class="menu-nav-bar d-flex bg-body-tertiary border-bottom">
  2. <a href=""
  3. class="all-categories d-flex gap-2 justify-content-between align-items-center link-body-emphasis text-decoration-none text-uppercase text-black pr-2 fw-bold">
  4. <div class="icon" style="width: 35px;">
  5. <svg xmlns="http://www.w3.org/2000/svg" height="100%" width="100%" fill="currentColor" class="bi bi-list"
  6. viewBox="0 0 16 16">
  7. <path fill-rule="evenodd"
  8. d="M2.5 12a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5m0-4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5m0-4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5" />
  9. </svg>
  10. </div>
  11. All Categories
  12. </a>
  13. <nav class="all-categories-menus d-nonex">
  14. <ul class="parent-category">
  15. {% macro item(taxon) %}
  16. {% import _self as macros %}
  17. {% if taxon.isEnabled() %}
  18. {% if taxon.children|length > 0 %}
  19. <li class="nav-item xxx">
  20. <a href="{{ path('sylius_shop_product_index', {'slug': taxon.slug, '_locale': taxon.translation.locale}) }}" class="text-black text-capitalize pl-4 sv d-block p-2" aria-current="page">{{ taxon.name }}</a>
  21. <div class="sub-category d-nonex">
  22. <div class="row">
  23. <div class="col">
  24. <a href="#" style="color:black!important; font-weight:bold;" class="text-black text-capitalize pl-4 d-block p-2 " aria-current="page">{{ taxon.name }}</a>
  25. <ul class="">
  26. {% for childTaxon in taxon.children %}
  27. {{ macros.item(childTaxon) }}
  28. {% endfor %}
  29. </ul>
  30. </div>
  31. <div class="col">
  32. <a href="#" style="color:black!important; font-weight:bold;" class="text-black text-capitalize d-block p-2" aria-current="page">Brands</a>
  33. <ul>
  34. <li class="nav-item p-1"><a href="">Pampers</a></li>
  35. <li class="nav-item p-1"><a href="">Moun</a></li>
  36. <li class="nav-item p-1"><a href="">Nurter</a></li>
  37. <li class="nav-item p-1"><a href="">Carte</a></li>
  38. <li class="nav-item p-1"><a href="">Qare</a></li>
  39. </ul>
  40. </div>
  41. </div>
  42. </div>
  43. </li>
  44. {% else %}
  45. <li class="nav-item xxx">
  46. <a href="{{ path('sylius_shop_product_index', {'slug': taxon.slug, '_locale': taxon.translation.locale}) }}" class="text-black text-capitalize pl-4 sz d-block p-2 "><img src="{{ asset('bootstrap-theme/images/lotion.png') }}" alt=""> {{ taxon.name }}</a>
  47. </li>
  48. {% endif %}
  49. {% endif %}
  50. {% endmacro %}
  51. {% import _self as macros %}
  52. {% if taxons|length > 0 %}
  53. {% for taxon in taxons %}
  54. {{ macros.item(taxon) }}
  55. {% endfor %}
  56. {% endif %}
  57. </ul>
  58. </nav>
  59. </nav>