Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / themes / bartik / templates / block--system-menu-block.html.twig
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 }}">{% trans %} Show &mdash; {{ configuration.label }}{% endtrans %}</a>
18     <a class="menu-toggle menu-toggle--hide" href="#{{ hide_anchor }}">{% trans %} Hide &mdash; {{ configuration.label }}{% endtrans %}</a>
19     {{ content }}
20   </div>
21 {% endblock %}