forked from a64f7bb4-7358-4778-9fbe-3b882c34cc1d/v1
37 lines
1.2 KiB
Twig
37 lines
1.2 KiB
Twig
|
|
{%
|
|
set classes = [
|
|
'block',
|
|
'block-' ~ configuration.provider|clean_class,
|
|
'category-menu',
|
|
]
|
|
%}
|
|
{% set heading_id = attributes.id|clean_id %}
|
|
<nav aria-labelledby="{{ heading_id }}"{{ attributes|without('role', 'aria-labelledby').addClass(classes) }} {% if block_style %}style="{{ block_style }}"{% endif %}>
|
|
<div class="container-wrap clearfix mega-menu">
|
|
{# 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 }}
|
|
{% if label %}
|
|
<div class="block-title-wrap clearfix">
|
|
<div class="block-title-content">
|
|
{% if block_title_style == 'block-title-2' %}
|
|
{% if block_subtitle %}<h5 class="block-subtitle">{{ block_subtitle }}</h5>{% endif %}
|
|
<h2{{ title_attributes.addClass('block-title') }}>{{ label }}</h2>
|
|
{% else %}
|
|
<h2{{ title_attributes.addClass('block-title') }}>{{ label }}</h2>
|
|
{% if block_subtitle %}<h5 class="block-subtitle">{{ block_subtitle }}</h5>{% endif %}
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
{{ title_suffix }}
|
|
|
|
{# Menu. #}
|
|
{% block content %}
|
|
{{ content }}
|
|
{% endblock %}
|
|
</div>
|
|
</nav> |