templates/_page/_guest/_breadcrumb.html.twig line 1

Open in your IDE?
  1. <!-- ======= Breadcrumbs Section ======= -->
  2. <section class="breadcrumbs">
  3.     <div class="container">
  4.         <div class="d-flex justify-content-between align-items-center">
  5.             {% if header_title is defined and header_title != "" %} <h2>{{ header_title }}</h2> {% endif %}
  6.             {% if breadcrumb is defined %}
  7.                 <ol class="">
  8.                     <li><a href="{{ path('home') }}" class="me-2"><i class="bi bi-house"></i></a></li>
  9.                     {% for name in breadcrumb %}
  10.                         {% for key, value in name %}
  11.                             {% if key != 'params' %}
  12.                                 <li class="breadcrumb-item {% if key == "none" %} active "
  13.                                     aria-current="page {% endif %}">
  14.                                     {% if key!= 'none' and key!= 'params' %}
  15.                                         {% if name.params is defined %}
  16.                                             <a href="{{ path(key , name.params) }}"> {{ value }}</a>
  17.                                         {% else %}
  18.                                             <a href="{{ path(key) }}"> {{ value }}</a>
  19.                                         {% endif %}
  20.                                     {% else %}
  21.                                         {% if name[key] is not iterable %}
  22.                                             {{ name[key] }}
  23.                                         {% endif %}
  24.                                     {% endif %}
  25.                                 </li>
  26.                             {% endif %}
  27.                         {% endfor %}
  28.                     {% endfor %}
  29.                 </ol>
  30.             {% endif %}
  31.         </div>
  32.     </div>
  33. </section><!-- End Breadcrumbs Section -->