file breadcrumb.html.twig

Theme override to display a breadcrumb trail.

Available variables:

  • breadcrumb: Breadcrumb trail items.

File

templates/navigation/breadcrumb.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Theme override to display a breadcrumb trail.
  5. *
  6. * Available variables:
  7. * - breadcrumb: Breadcrumb trail items.
  8. *
  9. * @see uikit_preprocess_breadcrumb()
  10. *
  11. * @ingroup uikit_themeable
  12. */
  13. #}
  14. {% if breadcrumb and display_breadcrumbs %}
  15. <nav role="navigation" aria-labelledby="system-breadcrumb">
  16. <h2 id="system-breadcrumb" class="visually-hidden">{{ 'Breadcrumb'|t }}</h2>
  17. <ol class="uk-breadcrumb">
  18. {% for item in breadcrumb %}
  19. {% if item.url %}
  20. <li><a href="{{ item.url }}">{{ item.text }}</a></li>
  21. {% else %}
  22. {% if not item.active %}
  23. <li><span>{{ item.text }}</span></li>
  24. {% else %}
  25. <li class="uk-active"><span>{{ item.text }}</span></li>
  26. {% endif %}
  27. {% endif %}
  28. {% endfor %}
  29. </ol>
  30. </nav>
  31. {% endif %}

Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.

Log in