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.    <div class="breadcrumb-div-link">
  4.        <a href="{{ path('sylius_shop_homepage') }}" class="section">{{ 'sylius.ui.home'|trans }}</a>
  5.        <div class="divider"> / </div>
  6.        {% for ancestor in ancestors %}
  7.            {% if ancestor.isRoot() or not ancestor.enabled %}
  8.                <div class="section">{{ ancestor.name }}</div>
  9.            {% else %}
  10.                <a href="{{ path('sylius_shop_product_index', {'slug': ancestor.slug, '_locale': ancestor.translation.locale}) }}" class="section">{{ ancestor.name }}</a>
  11.            {% endif %}
  12.            <div class="divider"> / </div>
  13.        {% endfor %}
  14.        <div class="active section"><a  href="{{ path('sylius_shop_product_index', {'slug': taxon.slug, '_locale': taxon.translation.locale}) }}">{{ taxon.name }}</a> </div>
  15.    </div>
  16. </div>
  17. <style>
  18.     .ui.breadcrumb{
  19.         margin: 2rem 0 !important;
  20.         padding: 0;
  21.         background: transparent;
  22.         box-shadow: none;
  23.         font-size: 1.2rem;
  24.     }
  25. </style>