modules/QSL/FlyoutCategoriesMenu/templates/web/customer/modules/QSL/FlyoutCategoriesMenu/body.twig line 1

Open in your IDE?
  1. {##
  2.  # Top categories tree
  3.  #}
  4. <ul class="flyout-menu{% if not this.isSubtree() %} catalog-categories catalog-categories-tree{% else %} sublevel{% endif %}">
  5.   {% if not this.isSubtree() %}
  6.     {{ widget_list('topCategories.linksAbove') }}
  7.   {% endif %}
  8.   {% for idx, _category in this.getCategories(this.rootId) %}
  9.     <li {{ this.displayItemClass(idx, loop.length, _category)|raw }}>
  10.       {{ widget(template=this.getDir() ~ "parts/category.link.twig", _category=_category, isShowTriangle=this.isShowTriangle() and _category.hasSubcategories) }}
  11.       {% if _category.hasSubcategories and this.isAllowedDepthWithoutAjax(_category.depth) %}
  12.         {{ widget(template=this.getBody(), rootId=_category.id, is_subtree='1') }}
  13.       {% endif %}
  14.     </li>
  15.   {% endfor %}
  16.   {% for idx, w in this.getViewList('topCategories.children', {'rootId': this.getParam('rootId'), 'is_subtree': this.getParam('is_subtree')}) %}
  17.     <li {{ this.displayListItemClass(idx, loop.length, w)|raw }}>{{ w.display() }}</li>
  18.   {% endfor %}
  19.   {% if not this.isSubtree() %}
  20.     {{ widget_list('topCategories.linksUnder') }}
  21.   {% endif %}
  22. </ul>