Added langswitcher to mobile menu

This commit is contained in:
pmoreno.rodriguez 2024-01-08 15:57:23 +01:00
parent 65aedb5594
commit e950d4d4e9

View file

@ -9,7 +9,7 @@
<section id="menu"> <section id="menu">
<div style="padding: 1.5em;"><a class="close" href="#menu" title="Menu"></a></div> <div style="padding: 1.5em;"><a class="close" href="#menu" title="Menu"></a></div>
{% if config.plugins.simplesearch.enabled %} {% if config.plugins.simplesearch.enabled and icon_search %}
<!-- Search --> <!-- Search -->
<section> <section>
{% include 'partials/simplesearch_searchbox_sidebar.html.twig' %} {% include 'partials/simplesearch_searchbox_sidebar.html.twig' %}
@ -21,7 +21,7 @@
</div> </div>
{% if config.plugins.archives.enabled and archives_data is not empty %} {% if config.plugins.archives.enabled and archives_data is not empty %}
<!-- Archives --> <!-- Archives -->
<div> <div class="sidebar-content">
<header> <header>
<h3>{{ 'FUTURE.SIDEBAR.ARCHIVES.HEADLINE'|t }}</h3> <h3>{{ 'FUTURE.SIDEBAR.ARCHIVES.HEADLINE'|t }}</h3>
</header> </header>
@ -30,7 +30,7 @@
{% endif %} {% endif %}
{% if config.plugins.relatedpages.enabled and related_pages|length > 0 %} {% if config.plugins.relatedpages.enabled and related_pages|length > 0 %}
<!-- Related posts --> <!-- Related posts -->
<div> <div class="sidebar-content">
<header> <header>
<h3>{{ 'FUTURE.SIDEBAR.RELATED_POSTS.HEADLINE'|t }}</h3> <h3>{{ 'FUTURE.SIDEBAR.RELATED_POSTS.HEADLINE'|t }}</h3>
</header> </header>
@ -41,7 +41,7 @@
{% set taxlist = children_only is defined ? taxonomylist.getChildPagesTags() : taxonomylist.get() %} {% set taxlist = children_only is defined ? taxonomylist.getChildPagesTags() : taxonomylist.get() %}
{% if taxlist %} {% if taxlist %}
<!-- Taxonomy list --> <!-- Taxonomy list -->
<div> <div class="sidebar-content">
<header> <header>
<h3>{{ 'FUTURE.SIDEBAR.TAGS.HEADLINE'|t }}</h3> <h3>{{ 'FUTURE.SIDEBAR.TAGS.HEADLINE'|t }}</h3>
</header> </header>
@ -51,16 +51,29 @@
{% endif %} {% endif %}
{% if config.plugins.feed.enabled %} {% if config.plugins.feed.enabled %}
<!-- Syndicate --> <!-- Syndicate -->
<div class="sidebar-content syndicate"> <div class="sidebar-content">
<h4>{{ 'FUTURE.SIDEBAR.SYNDICATE.HEADLINE'|t }}</h4> <header>
<ul class="actions"> <h3>{{ 'FUTURE.SIDEBAR.SYNDICATE.HEADLINE'|t }}</h3>
</header>
<ul class="actions start">
<li><a href="{{ feed_url }}.atom"><i class="fa fa-rss-square"></i> Atom 1.0</a></li> <li><a href="{{ feed_url }}.atom"><i class="fa fa-rss-square"></i> Atom 1.0</a></li>
<li><a href="{{ feed_url }}.rss"><i class="fa fa-rss-square"></i> RSS</a></li> <li><a href="{{ feed_url }}.rss"><i class="fa fa-rss-square"></i> RSS</a></li>
{% if config.plugins.feed.enable_json_feed %}<li><a href="{{ feed_url }}.json"><i class="fa fa-rss-square"></i> JSON</a></li>{% endif %} {% if config.plugins.feed.enable_json_feed %}<li><a href="{{ feed_url }}.json"><i class="fa fa-rss-square"></i> JSON</a></li>{% endif %}
</ul> </ul>
</div> </div>
{% endif %} {% endif %}
{% if config.plugins.login.enabled %} {% if icon_lang and config.plugins.langswitcher.enabled and system.languages.supported is not null %}
<!-- Langswitcher -->
<div class="sidebar-content lang start">
<header>
<h3>{{ 'FUTURE.SIDEBAR.LANGSWITCHER.HEADLINE'|t }}</h3>
</header>
<ul class="actions start">
{% include 'partials/langswitcher.html.twig' %}
</ul>
</div>
{% endif %}
{% if config.plugins.login.enabled and icon_login%}
<!-- Login button --> <!-- Login button -->
<div> <div>
<ul class="actions stacked"> <ul class="actions stacked">