Added crossmark to close side menu

This commit is contained in:
pmoreno.rodriguez 2023-07-13 19:35:32 +02:00
parent 6a75b7a302
commit 331b78b5c8

View file

@ -1,4 +1,5 @@
<section id="menu"> <section id="menu">
<div style="padding: 1.5em;"><a class="close" href="#menu" title="Menu"></a></div>
{% if config.plugins.simplesearch.enabled %} {% if config.plugins.simplesearch.enabled %}
<!-- Search --> <!-- Search -->
<section> <section>
@ -6,36 +7,36 @@
</section> </section>
{% endif %} {% endif %}
<!-- Links --> <!-- Links -->
<section id="sidebarmenu"> <div id="sidebarmenu">
{% include 'partials/sidebar_navigation.html.twig' %} {% include 'partials/sidebar_navigation.html.twig' %}
</section> </div>
{% if config.plugins.archives.enabled and archives_data is not empty %} {% if config.plugins.archives.enabled and archives_data is not empty %}
<!-- Actions --> <!-- Actions -->
<section> <div>
<header> <header>
<h3>{{ 'FUTURE.SIDEBAR.ARCHIVES.HEADLINE'|t }}</h3> <h3>{{ 'FUTURE.SIDEBAR.ARCHIVES.HEADLINE'|t }}</h3>
</header> </header>
{% include 'partials/archives.html.twig' %} {% include 'partials/archives.html.twig' %}
</section> </div>
{% endif %} {% endif %}
{% if config.plugins.relatedpages.enabled and related_pages|length > 0 %} {% if config.plugins.relatedpages.enabled and related_pages|length > 0 %}
<section> <div>
<header> <header>
<h3>{{ 'FUTURE.SIDEBAR.RELATED_POSTS.HEADLINE'|t }}</h3> <h3>{{ 'FUTURE.SIDEBAR.RELATED_POSTS.HEADLINE'|t }}</h3>
</header> </header>
{% include 'partials/relatedpages.html.twig' %} {% include 'partials/relatedpages.html.twig' %}
</section> </div>
{% endif %} {% endif %}
{% if config.plugins.taxonomylist.enabled %} {% if config.plugins.taxonomylist.enabled %}
<section> <div>
<header> <header>
<h3>{{ 'FUTURE.SIDEBAR.TAGS.HEADLINE'|t }}</h3> <h3>{{ 'FUTURE.SIDEBAR.TAGS.HEADLINE'|t }}</h3>
</header> </header>
{% include 'partials/taxonomylist.html.twig' with {'base_url':new_base_url, 'taxonomy':'tag'} %} {% include 'partials/taxonomylist.html.twig' with {'base_url':new_base_url, 'taxonomy':'tag'} %}
</section> </div>
{% endif %} {% endif %}
{% if config.plugins.login.enabled %} {% if config.plugins.login.enabled %}
<section> <div>
<ul class="actions stacked"> <ul class="actions stacked">
{% if not grav.user.authenticated %} {% if not grav.user.authenticated %}
<li><a href="{{ base_url_absolute }}{{config.plugins.login.route}}" class="button large fit">{{ 'PLUGIN_LOGIN.BTN_LOGIN'|t }}</a></li> <li><a href="{{ base_url_absolute }}{{config.plugins.login.route}}" class="button large fit">{{ 'PLUGIN_LOGIN.BTN_LOGIN'|t }}</a></li>
@ -44,6 +45,6 @@
<li><a class="button large fit" href="{{ url(uri.addNonce((uri.path)|trim('/') ~ '/task' ~ config.system.param_sep ~ 'login.logout', 'logout-form', 'logout-nonce'))|e }}">{{ 'PLUGIN_LOGIN.BTN_LOGOUT'|t }}</a></li> <li><a class="button large fit" href="{{ url(uri.addNonce((uri.path)|trim('/') ~ '/task' ~ config.system.param_sep ~ 'login.logout', 'logout-form', 'logout-nonce'))|e }}">{{ 'PLUGIN_LOGIN.BTN_LOGOUT'|t }}</a></li>
{% endif %} {% endif %}
</ul> </ul>
</section> </div>
{% endif %} {% endif %}
</section> </section>