templates/bundles/SyliusShopBundle/Taxon/_breadcrumb.html.twig line 1

Open in your IDE?
  1. {% set ancestors = taxon.ancestors|reverse %}
  2. <div class="ui breadcrumb">
  3.     <a href="{{ path('sylius_shop_homepage') }}" class="section">{{ 'sylius.ui.home'|trans }}</a>
  4.     <div class="divider"> > </div>
  5.     {% for ancestor in ancestors %}
  6.         {% if ancestor.isRoot() or not ancestor.enabled %}
  7.             <a href="{{ path('sylius_shop_product_index', {'slug': ancestor.slug, '_locale': ancestor.translation.locale}) }}" class="section">{{ ancestor.name }}</a>
  8.         {% else %}
  9.             <a href="{{ path('sylius_shop_product_index', {'slug': ancestor.slug, '_locale': ancestor.translation.locale}) }}" class="section">{{ ancestor.name }}</a>
  10.         {% endif %}
  11.     <div class="divider"> / </div>
  12.     {% endfor %}
  13.     <div class="active section">{{ taxon.name }}</div>
  14. </div>