You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
757 B
24 lines
757 B
{% |
|
set classes = [ |
|
'block', |
|
'block-menu', |
|
'navigation', |
|
'main-menu__container', |
|
'menu--' ~ derivative_plugin_id|clean_class, |
|
] |
|
%} |
|
{% set heading_id = attributes.id ~ '-menu'|clean_id %} |
|
<nav role="navigation" aria-labelledby="{{ heading_id }}"{{ attributes.addClass(classes)|without('role', 'aria-labelledby') }}> |
|
{# Label. If not displayed, we still provide it for screen readers. #} |
|
{% if not configuration.label_display %} |
|
{% set title_attributes = title_attributes.addClass('visually-hidden') %} |
|
{% endif %} |
|
{{ title_prefix }} |
|
<h2{{ title_attributes.setAttribute('id', heading_id) }}>{{ configuration.label }}</h2> |
|
{{ title_suffix }} |
|
|
|
{# Menu. #} |
|
{% block content %} |
|
{{ content }} |
|
{% endblock %} |
|
</nav>
|
|
|