templates/juki/HitsoCommonBundle/Common/breadcrumbs.html.twig line 1

Open in your IDE?
  1. <div class="main breadcrumb">
  2.     {% if wo_breadcrumbs()|length %}
  3.         {%- spaceless -%}
  4.                 <ol id="wo-breadcrumbs" itemscope itemtype="http://schema.org/BreadcrumbList">
  5.                     {% for b in wo_breadcrumbs() %}
  6.                         <li{% if itemClass is defined and itemClass|length %} class="{{ itemClass }}"{% endif %} itemprop="itemListElement"
  7.                                                                                                                  itemscope
  8.                                                                                                                  itemtype="http://schema.org/ListItem">
  9.                             {% if b.url %}
  10.                                 {% if b.url|slice(0,1)=='/' %}
  11.                                     {% if b.url|slice(1,1)=='/' %}
  12.                                         {% set burl = app.request.scheme ~':' ~ b.url %}
  13.                                     {% else %}
  14.                                         {% set burl = app.request.scheme ~'://' ~ app.request.httpHost ~ b.url %}
  15.                                     {% endif %}
  16.                                 {% elseif app.request.attributes.has('_route') %}
  17.                                     {% set burl = app.request.scheme ~'://' ~ app.request.httpHost ~ path(app.request.attributes.get('_route'), app.request.attributes.get('_route_params')) ~ b.url %}
  18.                                 {% endif %}
  19.                             {% elseif app.request.attributes.has('_route') %}
  20.                                 {% set burl = app.request.scheme ~'://' ~ app.request.httpHost ~ path(app.request.attributes.get('_route'), app.request.attributes.get('_route_params')) ~ b.url %}
  21.                             {% endif %}
  22.                             <meta itemprop="item" content="{{ burl }}" />
  23.                             {% if b.url and not loop.last %}
  24.                             <a href="{{ burl }}" {% if linkRel is defined and linkRel|length %} rel="{{ linkRel }}"{% endif %}>
  25.                                 {% endif %}
  26.                                 <span itemprop="name">{% if b.translate is defined and b.translate == true %}{{- b.text | trans(b.translationParameters) -}}{% else %}{{- b.text -}}{% endif %}</span>
  27.                                 {% if b.url and not loop.last %}
  28.                             </a>
  29.                             {% endif %}
  30.                             <meta itemprop="position" content="{{ loop.index }}"/>
  31.                             {% if separator is defined and separator is not null and not loop.last %}
  32.                                 <span class='{{ separatorClass }}'>{{ separator }}</span>
  33.                             {% endif %}
  34.                         </li>
  35.                     {% endfor %}
  36.                 </ol>
  37.         {%- endspaceless -%}
  38.     {% endif %}
  39. </div>