themes/webapicTheme/templates/partials/block-breadcrumbs.html.twig line 1

Open in your IDE?
  1. {# Fil d'ariane #}
  2. {% if wo_breadcrumbs()|length %}
  3.     {%- apply spaceless -%}
  4.         <div class="ui breadcrumb">
  5.             {% if is_mobile() and not is_device('iPad')  %}
  6.                 {# {{ dump(breadcrumbs) }}
  7.                 aa {{ breadcrumbs|length }}bb #}
  8.                  {% for b in breadcrumbs %}
  9.                     {% if loop.index == breadcrumbs|length - 1 %}
  10.                         <a class="section" href="{{ b.url }}" {% if linkRel is defined and linkRel|length %} rel="{{ linkRel }}"{% endif %}>
  11.                             {% if app.request.get('_route') == 'app_product_variant_show' %}
  12.                                 <img src="{{ asset('webapic-theme/images/mobile-breacrumb-arrowleft-blue.png') }}" class="ui image" />                              
  13.                             {% else %}
  14.                                 <img src="{{ asset('webapic-theme/images/mobile-breacrumb-arrowleft.png') }}" class="ui image" />
  15.                             {% endif %}
  16.                             {% if b.translate is defined and b.translate == true %}{{- b.text | trans(b.translationParameters, translation_domain, locale) -}}{% else %}{{- b.text -}}{% endif %}
  17.                         </a>
  18.                     {% endif %}
  19.                     
  20.                 {% endfor %}
  21.             {% else %}
  22.                 {% for b in breadcrumbs %}
  23.                     {% if b.url and not loop.last %}
  24.                     <a class="section" href="{{ b.url }}" {% if linkRel is defined and linkRel|length %} rel="{{ linkRel }}"{% endif %}>
  25.                         {% if b.translate is defined and b.translate == true %}{{- b.text | trans(b.translationParameters, translation_domain, locale) -}}{% else %}{{- b.text -}}{% endif %}
  26.                     </a>
  27.                     {% else %}
  28.                     <div class="active section">
  29.                         {% if b.translate is defined and b.translate == true %}{{- b.text | trans(b.translationParameters, translation_domain, locale) -}}{% else %}{{- b.text -}}{% endif %}
  30.                     </div>
  31.                     {% endif %}
  32.                     {% if separator is not null and not loop.last %}
  33.                         <div class="divider">{{ separator|raw }}</div>
  34.                     {% endif %}
  35.                 {% endfor %}
  36.             {% endif %}
  37.            
  38.            
  39.         </div>
  40.     {% endapply %}
  41. {% endif %}