2015-03-07 23:40:33 +00:00
|
|
|
{% extends "@classy/block/block--system-menu-block.html.twig" %}
|
Issue #1869476 by rteijeiro, LewisNyman, lauriii, Wim Leers, mdrummond, swentel, hosef, cbiggins, larowlan, sun, EclipseGc, Gábor Hojtsy: Convert global menus (primary links, secondary links) into blocks.
2014-09-29 01:25:41 +00:00
|
|
|
{#
|
|
|
|
/**
|
|
|
|
* @file
|
|
|
|
* Bartik's theme implementation for a menu block.
|
|
|
|
*
|
|
|
|
* @ingroup themeable
|
|
|
|
*/
|
|
|
|
#}
|
|
|
|
{% set show_anchor = "show-" ~ attributes.id|clean_id %}
|
|
|
|
{% set hide_anchor = "hide-" ~ attributes.id|clean_id %}
|
|
|
|
{% block content %}
|
2015-06-24 02:26:46 +00:00
|
|
|
<div{{ content_attributes.addClass('content') }}>
|
Issue #1869476 by rteijeiro, LewisNyman, lauriii, Wim Leers, mdrummond, swentel, hosef, cbiggins, larowlan, sun, EclipseGc, Gábor Hojtsy: Convert global menus (primary links, secondary links) into blocks.
2014-09-29 01:25:41 +00:00
|
|
|
{# When rendering a menu without label, render a menu toggle. #}
|
|
|
|
<div class="menu-toggle-target menu-toggle-target-show" id="{{ show_anchor }}"></div>
|
|
|
|
<div class="menu-toggle-target" id="{{ hide_anchor }}"></div>
|
2015-11-25 22:43:48 +00:00
|
|
|
<a class="menu-toggle" href="#{{ show_anchor }}">{% trans %} Show — {{ configuration.label }}{% endtrans %}</a>
|
|
|
|
<a class="menu-toggle menu-toggle--hide" href="#{{ hide_anchor }}">{% trans %} Hide — {{ configuration.label }}{% endtrans %}</a>
|
2014-12-29 21:52:00 +00:00
|
|
|
{{ content }}
|
2015-06-24 02:26:46 +00:00
|
|
|
</div>
|
Issue #1869476 by rteijeiro, LewisNyman, lauriii, Wim Leers, mdrummond, swentel, hosef, cbiggins, larowlan, sun, EclipseGc, Gábor Hojtsy: Convert global menus (primary links, secondary links) into blocks.
2014-09-29 01:25:41 +00:00
|
|
|
{% endblock %}
|