Skip to content

Commit

Permalink
Update header.twig
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkIncognito85 authored Nov 6, 2021
1 parent b350da9 commit 7b4d073
Showing 1 changed file with 35 additions and 2 deletions.
37 changes: 35 additions & 2 deletions Theme/Argon/includes/header.twig
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<nav class="sidenav navbar navbar-vertical fixed-left navbar-expand-xs navbar-light bg-white" id="sidenav-main">
<nav class="sidenav navbar navbar-vertical fixed-left navbar-expand-xs navbar-light bg-white" id="sidenav-main" data-target="#sidenav-main">
<div class="scrollbar-inner">
<!-- Brand -->
<div class="sidenav-header align-items-center">
Expand Down Expand Up @@ -27,6 +27,17 @@
<!-- Search form -->
<!-- Navbar links -->
<ul class="navbar-nav align-items-center ml-md-auto ">

<li class="nav-item d-xl-none">
<!-- Sidenav toggler -->
<div class="pr-3 sidenav-toggler sidenav-toggler-dark" data-action="sidenav-pin" data-target="#sidenav-main">
<div class="sidenav-toggler-inner">
<i class="sidenav-toggler-line"></i>
<i class="sidenav-toggler-line"></i>
<i class="sidenav-toggler-line"></i>
</div>
</div>
</li>
</ul>
<ul class="navbar-nav align-items-center ml-auto ml-md-0 ">

Expand Down Expand Up @@ -98,6 +109,28 @@
</div>
</li>
{% endif %}

<li class="nav-item dropdown">
<a class="nav-link count-indicator dropdown-toggle" id="messageDropdown" href="#"
data-toggle="dropdown" aria-expanded="false">
<i class="fas fa-language"></i>
</a>
<div class="dropdown-menu dropdown-menu-right navbar-dropdown preview-list"
aria-labelledby="messageDropdown">
{% for k, locale in config('app.locales') %}

<a class="dropdown-item preview-item {{ k == _locale ? 'active' : '' }}"
href="{{ path('account.locale', {locale: k}) }}">
<div class="preview-item-content">
<p class="preview-subject ellipsis mb-1">
{{ locale }}

</p>
</div>
</a>
{% endfor %}
</div>
</li>
</ul>
</div>
</div>
Expand Down Expand Up @@ -136,4 +169,4 @@
</div>

<div class="container-fluid mt--6">
{% endif %}
{% endif %}

0 comments on commit 7b4d073

Please sign in to comment.