vendor/mhujer/breadcrumbs-bundle/WhiteOctober/BreadcrumbsBundle/Resources/views/microdata.html.twig line 1

Open in your IDE?
  1. {% if wo_breadcrumbs()|length %}
  2.     {%- apply spaceless -%}
  3.         <ol id="{{ listId }}" class="{{ listClass }}" itemscope itemtype="http://schema.org/BreadcrumbList">
  4.             {% for b in breadcrumbs %}
  5.                 <li{% if itemClass is defined and itemClass|length %} class="{{ itemClass }}"{% endif %} itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
  6.                     {% if b.url and not loop.last %}
  7.                     <a href="{{ b.url }}" itemprop="item"{% if linkRel is defined and linkRel|length %} rel="{{ linkRel }}"{% endif %}>
  8.                         {% endif %}
  9.                         <span itemprop="name">{% if b.translate is defined and b.translate == true %}{{- b.text | trans(b.translationParameters, translation_domain, locale) -}}{% else %}{{- b.text -}}{% endif %}</span>
  10.                         {% if b.url and not loop.last %}
  11.                     </a>
  12.                     {% elseif b.url %}
  13.                         <meta itemprop="item" content="{{ b.url }}" />
  14.                     {% endif %}
  15.                     <meta itemprop="position" content="{{ loop.index }}" />
  16.                     {% if separator is not null and not loop.last %}
  17.                         <span class='{{ separatorClass }}'>{{ separator }}</span>
  18.                     {% endif %}
  19.                 </li>
  20.             {% endfor %}
  21.         </ol>
  22.     {% endapply %}
  23. {% endif %}