custom/plugins/ThemeOkeonline/src/Resources/views/storefront/layout/header/categories-list.html.twig line 1

Open in your IDE?
  1. {% block layout_header_categories_list %}
  2.     {% set categoryNumber = setting|split('-')[1] %}
  3.     {% set categoryId = theme_config('headerStylesLayoutHeaderCategoriesParentCategory' ~ categoryNumber) %} 
  4.     {% set categoriesExtension  = page.extensions.categories %}
  5.     {% if(  categoriesExtension is defined and categoriesExtension is not empty and
  6.             categoryId is defined and categoryId is not empty ) %}
  7.         {% set root = page.extensions.categories|filter((u) => u.id == categoryId)|first %}         
  8.         {% if root.children %}
  9.             {% for childTreeItem in root.children %}
  10.                 {% sw_include '@Storefront/storefront/layout/header/category-dropdown.html.twig' with {
  11.                     'rootTreeItem': childTreeItem,
  12.                 } %}
  13.             {% endfor %}
  14.         {% endif %} 
  15.     {% endif %}
  16. {% endblock %}