templates/_elements/page-header.html.twig line 1

Open in your IDE?
  1. {% set breadcrumb = breadcrumb|default(false) %}
  2. {% set back = back|default(false) %}
  3. {# set return = return|default(true) #}
  4. <div id="nav-header" class="nav-header">
  5. {% if breadcrumb %}
  6. <div class="nav-header__breadcrumb">
  7. <nav aria-label="breadcrumb">
  8. <ol class="breadcrumb">
  9. {% for item in breadcrumb %}
  10. {% if loop.last %}
  11. <li class="breadcrumb-item active" aria-current="page">{{ item.label }}</li>
  12. {% elseif item.path is defined %}
  13. <li class="breadcrumb-item"><a href="{{ path(item.path) }}" class="swup-link">{{ item.label }}</a></li>
  14. {% else %}
  15. <li class="breadcrumb-item"><a href="{{ item.url }}" class="swup-link">{{ item.label }}</a></li>
  16. {% endif %}
  17. {% endfor %}
  18. </ol>
  19. </nav>
  20. </div>
  21. {% endif %}
  22. {% if back %}
  23. <div class="nav-header__back">
  24. <div>
  25. {% for item in back %}
  26. {% if item.path is defined %}
  27. <a href="{{ path(item.path) }}" class="btn btn-primary swup-link">RETOUR</a>
  28. {% else %}
  29. <a href="/" class="btn btn-primary swup-link">RETOUR</a>
  30. {% endif %}
  31. {% endfor %}
  32. </div>
  33. </div>
  34. {% endif %}
  35. </div>