Skip to content

Commit

Permalink
Added langswitcher to mobile menu
Browse files Browse the repository at this point in the history
  • Loading branch information
pmoreno.rodriguez committed Jan 8, 2024
1 parent 65aedb5 commit e950d4d
Showing 1 changed file with 21 additions and 8 deletions.
29 changes: 21 additions & 8 deletions templates/partials/sidebar_right.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<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 and icon_search %}
<!-- Search -->
<section>
{% include 'partials/simplesearch_searchbox_sidebar.html.twig' %}
Expand All @@ -21,7 +21,7 @@
</div>
{% if config.plugins.archives.enabled and archives_data is not empty %}
<!-- Archives -->
<div>
<div class="sidebar-content">
<header>
<h3>{{ 'FUTURE.SIDEBAR.ARCHIVES.HEADLINE'|t }}</h3>
</header>
Expand All @@ -30,7 +30,7 @@
{% endif %}
{% if config.plugins.relatedpages.enabled and related_pages|length > 0 %}
<!-- Related posts -->
<div>
<div class="sidebar-content">
<header>
<h3>{{ 'FUTURE.SIDEBAR.RELATED_POSTS.HEADLINE'|t }}</h3>
</header>
Expand All @@ -41,7 +41,7 @@
{% set taxlist = children_only is defined ? taxonomylist.getChildPagesTags() : taxonomylist.get() %}
{% if taxlist %}
<!-- Taxonomy list -->
<div>
<div class="sidebar-content">
<header>
<h3>{{ 'FUTURE.SIDEBAR.TAGS.HEADLINE'|t }}</h3>
</header>
Expand All @@ -51,16 +51,29 @@
{% endif %}
{% if config.plugins.feed.enabled %}
<!-- Syndicate -->
<div class="sidebar-content syndicate">
<h4>{{ 'FUTURE.SIDEBAR.SYNDICATE.HEADLINE'|t }}</h4>
<ul class="actions">
<div class="sidebar-content">
<header>
<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 }}.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 %}
</ul>
</div>
{% 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 -->
<div>
<ul class="actions stacked">
Expand Down

0 comments on commit e950d4d

Please sign in to comment.