modules/QSL/AMP/templates/web/customer/modules/QSL/AMP/categories/menulist/body.twig line 1

Open in your IDE?
  1. {#
  2.  # AMP categories menu list
  3.  #}
  4. {% if this.isSubtree() %}<ul>{% endif %}
  5.   {% for idx, _category in this.getCategories(this.rootId) %}
  6.     <li {{ this.displayItemClass(idx, loop.length, _category)|raw }}>
  7.       <a href="{{ _category.link }}" {{ this.displayLinkClass(idx, loop.length, _category)|raw }}>{{ _category.name }}</a>
  8.       {% if _category.subcategoriesCount and _category.depth < 1 %}
  9.         {{ widget(template=this.getBody(), rootId=_category.id, is_subtree='1') }}
  10.       {% endif %}
  11.     </li>
  12.   {% endfor %}
  13.   {% for idx, w in this.getViewList('topCategories.children', {'rootId': this.getParam('rootId'), 'is_subtree': this.getParam('is_subtree')}) %}
  14.     <li {{ this.displayListItemClass(idx, loop.length, w)|raw }}>{{ w.display() }}</li>
  15.   {% endfor %}
  16. {% if this.isSubtree() %}</ul>{% endif %}