themes/BootstrapTheme/templates/bundles/SyliusShopBundle/Taxon/_indexMenuFooter.html.twig line 1

Open in your IDE?
  1. {% import "@SyliusShop/Common/Macro/icons.html.twig" as icons %}
  2. {% macro item(taxon, isChild) %}
  3.     {% import _self as macros %}
  4.     {% if taxon.children|length > 0 %}
  5.        <li {% if taxon.visibleInMenu == false %}class="d-none" {% endif %}> <a href="{{ path('sylius_shop_product_index', {'slug': taxon.slug, '_locale': taxon.translation.locale}) }}" title="{{ taxon.name|raw }}">{{ taxon.name|raw }}</a></li>
  6.     {% else %}
  7.          <li {% if taxon.visibleInMenu == false %}class="d-none" {% endif %}> <a href="{{ path('sylius_shop_product_index', {'slug': taxon.slug, '_locale': taxon.translation.locale}) }}" title="{{ taxon.name|raw }}">{{ taxon.name|raw }}</a></li>
  8.     {% endif %}
  9. {% endmacro %}
  10. {% import _self as macros %}
  11. {% if taxons|length > 0 %}
  12.     {% for taxon in taxons if taxon.enabled and taxon.code != 'ma-machine' %}
  13.         {{ macros.item(taxon) }}
  14.     {% endfor %}
  15. {% endif %}