themes/BootstrapChildTheme/SyliusShopBundle/views/Taxon/_breadcrumb.html.twig line 1

Open in your IDE?
  1. {% set ancestors = taxon.ancestors|reverse %}
  2. <nav aria-label="breadcrumb">
  3.     <ol class="breadcrumb">
  4.         <li class="breadcrumb-item"><a class="breadcrumb-link" href="{{ path('sylius_shop_homepage') }}">{{ 'sylius.ui.home'|trans }}</a></li>
  5.         {% for ancestor in ancestors %}
  6.             {% if not ancestor.isRoot() %}
  7.                 {% if ancestor.enabled %}
  8.                     <li class="breadcrumb-item">
  9.                         <a class="breadcrumb-link" href="{{ path('sylius_shop_product_index', {'slug': ancestor.redirect ?: ancestor.slug, '_locale': ancestor.translation.locale}) }}">{{ ancestor.name }}</a>
  10.                     </li>
  11.                 {% else %}
  12.                     <li class="breadcrumb-item">{{ ancestor.name }}</li>
  13.                 {% endif %}
  14.             {% endif %}
  15.         {% endfor %}
  16.         <li class="breadcrumb-item active" aria-current="page">{{ taxon.name }}</li>
  17.     </ol>
  18. </nav>