templates/bundles/SyliusShopBundle/Product/Show/_breadcrumb.html.twig line 1

Open in your IDE?
  1. <div class="ui breadcrumb">
  2.     <a href="{{ path('sylius_shop_homepage') }}" class="section"><i class="fas fa-home"></i><strong>Mons Fromages</strong></a>
  3.     <div class="divider"> / </div>
  4.         <a href="{{ path('app_shop_product_search') }}" class="section">{{ 'sylius.ui.boutiqueenligne'|trans   }}</a>
  5.         <div class="divider"> / </div>
  6.     {#
  7.     {% if product.mainTaxon is not null %}
  8.         {% set taxon = product.mainTaxon %}
  9.         {% set ancestors = taxon.ancestors|reverse %}
  10.         {% for ancestor in ancestors %}
  11.             {% if ancestor.isRoot()  or not ancestor.enabled %}
  12.             {% else %}
  13.                 <a href="{{ path('sylius_shop_product_index', {'slug': ancestor.slug, '_locale': ancestor.translation.locale}) }}" class="section">{{ ancestor.name }}</a>
  14.                 <div class="divider"> / </div>
  15.             {% endif %}
  16.         {% endfor %}
  17.         <a href="{{ path('sylius_shop_product_index', {'slug': taxon.slug, '_locale': taxon.translation.locale}) }}" class="section">{{ taxon.name }}</a>
  18.         <div class="divider"> / </div>
  19.     {% endif %}
  20.     #}
  21.     <div class="active section">{{ product.name }}</div>
  22. </div>