You are here

block--system-menu-block.html.twig in Zircon Profile 8

Bartik's theme implementation for a menu block.

File

core/themes/bartik/templates/block--system-menu-block.html.twig
View source
  1. {% extends "@classy/block/block--system-menu-block.html.twig" %}
  2. {#
  3. /**
  4. * @file
  5. * Bartik's theme implementation for a menu block.
  6. *
  7. * @ingroup themeable
  8. */
  9. #}
  10. {% set show_anchor = "show-" ~ attributes.id|clean_id %}
  11. {% set hide_anchor = "hide-" ~ attributes.id|clean_id %}
  12. {% block content %}
  13. <div{{ content_attributes.addClass('content') }}>
  14. {# When rendering a menu without label, render a menu toggle. #}
  15. <div class="menu-toggle-target menu-toggle-target-show" id="{{ show_anchor }}"></div>
  16. <div class="menu-toggle-target" id="{{ hide_anchor }}"></div>
  17. <a class="menu-toggle" href="#{{ show_anchor }}">{{ 'Menu'|t }}</a>
  18. <a class="menu-toggle menu-toggle--hide" href="#{{ hide_anchor }}">{{ 'Menu'|t }}</a>
  19. {{ content }}
  20. </div>
  21. {% endblock %}

Related topics