grav-theme-future2021/templates/partials/sidebar_right.html.twig
2023-02-20 21:34:19 +01:00

49 lines
No EOL
1.7 KiB
Twig

<section id="menu">
{% if config.plugins.simplesearch.enabled %}
<!-- Search -->
<section>
{% include 'partials/simplesearch_searchbox_sidebar.html.twig' %}
</section>
{% endif %}
<!-- Links -->
<section id="sidebarmenu">
{% include 'partials/sidebar_navigation.html.twig' %}
</section>
{% if config.plugins.archives.enabled %}
<!-- Actions -->
<section>
<header>
<h3>{{ 'FUTURE.SIDEBAR.ARCHIVES.HEADLINE'|t }}</h3>
</header>
{% include 'partials/archives.html.twig' %}
</section>
{% endif %}
{% if config.plugins.relatedpages.enabled %}
<section>
<header>
<h3>{{ 'FUTURE.SIDEBAR.RELATED_POSTS.HEADLINE'|t }}</h3>
</header>
{% include 'partials/relatedpages.html.twig' %}
</section>
{% endif %}
{% if config.plugins.taxonomylist.enabled %}
<section>
<header>
<h3>{{ 'FUTURE.SIDEBAR.TAGS.HEADLINE'|t }}</h3>
</header>
{% include 'partials/taxonomylist.html.twig' with {'base_url':new_base_url, 'taxonomy':'tag'} %}
</section>
{% endif %}
{% if config.plugins.login.enabled %}
<section>
<ul class="actions stacked">
{% 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>
{% else %}
<li>Logged as: <strong>{{ grav.user.fullname ?: grav.user.username }}</strong></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 %}
</ul>
</section>
{% endif %}
</section>