templates/bundles/KeenBundle/breadcrumb.html.twig line 1

Open in your IDE?
  1. {% if baseTheme is defined and baseTheme == 'keen' %}
  2.     <div class="d-flex align-items-baseline flex-wrap mr-5">
  3.         {% if items|length > 0 %}
  4.             <h5 class="text-dark font-weight-bold my-1 mr-5">
  5.                 {% if items|length == 1 or not skipFirstBreadcrumb is defined or not skipFirstBreadcrumb %}
  6.                     {{ items|last.name|trans }}
  7.                 {% else %}
  8.                     {{ items[items|length - 2].name|trans }}
  9.                 {% endif %}
  10.             </h5>
  11.             <ul class="breadcrumb breadcrumb-transparent breadcrumb-dot font-weight-bold p-0 my-2 font-size-sm">
  12.                 {% for item in items %}
  13.                     {% if not loop.last and (not skipFirstBreadcrumb is defined or not skipFirstBreadcrumb or loop.index0 != items|length - 2) %}
  14.                         <li class="breadcrumb-item">
  15.                             <a href="{{ item.route ? path(item.route, item.params ?? []) : (item.url ?? request_uri) }}"
  16.                                class="text-muted" aria-label="{{ item.name|trans }}">{{ item.name|trans }}</a>
  17.                         </li>
  18.                     {% endif %}
  19.                 {% endfor %}
  20.             </ul>
  21.         {% endif %}
  22.     </div>
  23. {% else %}
  24.     {% if items|length > 0 %}
  25.         <div class="mobile-scroll-x">
  26.             <div class="d-flex mx-n2 flex-lg-wrap flex-nowrap mb-2">
  27.             {% for item in items %}
  28.                 {% if loop.last %}
  29.                     <span class="text-uppercase ff-serif fw-medium text-nowrap">
  30.                         {{ item.name|trans }}
  31.                     </span>
  32.                 {% else %}
  33.                     <a href="{{ item.route ? path(item.route, item.params ?? []) : (item.url ?? request_uri) }}"
  34.                        class="text-uppercase ff-serif fw-bold me-2 text-nowrap"
  35.                        aria-label="{{ item.name|trans }}">
  36.                         {{ item.name|trans }}
  37.                     </a>
  38.                     <span class="me-2">></span>
  39.                 {% endif %}
  40.             {% endfor %}
  41.             </div>
  42.         </div>
  43.     {% endif %}
  44. {% endif %}