templates/elements/breadcrumbs.html.twig line 1

Open in your IDE?
  1. {% if wo_breadcrumbs()|length %}
  2.     {%- apply spaceless -%}
  3.         <div class="breadcrumbs">
  4.             {% for b in breadcrumbs %}
  5.                     {% if b.url and not loop.last %}
  6.                         <a class="breadcrumb" href="{{ b.url }}" itemprop="item"{% if linkRel is defined and linkRel|length %} rel="{{ linkRel }}"{% endif %}>
  7.                     {% else %}
  8.                         <a class="breadcrumb">
  9.                     {% endif %}
  10.                             {{- b.text | trans(b.translationParameters, translation_domain, locale) -}}</a>
  11.                     {% if b.url and not loop.last %}
  12.                         </a>
  13.                     {% else %}
  14.                         </a>
  15.                     {% endif %}
  16.             {% endfor %}
  17.         </div>
  18.     {%- endapply -%}
  19. {% endif %}