grav-theme-future2021/templates/partials/sidebar_right.html.twig
2023-02-15 11:07:27 +01:00

50 lines
No EOL
1.4 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>
{% if not grav.user.authenticated %}
<ul class="actions stacked">
<li><a href="{{ base_url_absolute }}/login" class="button large fit">{{ 'FUTURE.LOGIN'|t }}</a></li>
</ul>
{% else %}
{% include 'partials/login-status.html.twig' %}
{% endif %}
</section>
{% endif %}
</section>