gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-anastasis-www] branch master updated: Integrating the language sw


From: gnunet
Subject: [taler-anastasis-www] branch master updated: Integrating the language switcher to the navbar of anastasis.lu, activating Italian
Date: Sun, 27 Mar 2022 20:47:15 +0200

This is an automated email from the git hooks/post-receive script.

skuegel pushed a commit to branch master
in repository anastasis-www.

The following commit(s) were added to refs/heads/master by this push:
     new 376d6ee  Integrating the language switcher to the navbar of 
anastasis.lu, activating Italian
376d6ee is described below

commit 376d6eec1c1469dc24c2bd555c7dbd8c8d35e918
Author: Stefan Kügel <skuegel@web.de>
AuthorDate: Sun Mar 27 20:46:21 2022 +0200

    Integrating the language switcher to the navbar of anastasis.lu, activating 
Italian
    
    Signed-off-by: Stefan Kügel <skuegel@web.de>
---
 common/header.j2.inc     |  5 +--
 common/navigation.j2.inc | 92 ++++++++++++++++--------------------------------
 2 files changed, 33 insertions(+), 64 deletions(-)

diff --git a/common/header.j2.inc b/common/header.j2.inc
index c1b05ba..ddbea97 100644
--- a/common/header.j2.inc
+++ b/common/header.j2.inc
@@ -4,6 +4,7 @@
         JavaScript code in this page.
 
         Copyright (C) 2014, 2015, 2016 GNUnet e.V.
+        Copyright (C) 2021-2022 Anastasis Sarl
 
         The JavaScript code in this page is free software: you can
         redistribute it and/or modify it under the terms of the GNU
@@ -26,9 +27,9 @@
 
     <link rel="alternate" hreflang="en" href="{{ self_localized('en') }}" />
     <link rel="alternate" hreflang="de" href="{{ self_localized('de') }}" />
+    <link rel="alternate" hreflang="it" href="{{ self_localized('it') }}" />
     <!-- <link rel="alternate" hreflang="fr" href="{{ self_localized('fr') }}" 
/>
     <link rel="alternate" hreflang="es" href="{{ self_localized('es') }}" />
-    <link rel="alternate" hreflang="it" href="{{ self_localized('it') }}" />
     -->
     <meta http-equiv="content-type" content="text/html; charset=UTF-8">
     <meta charset="utf-8">
@@ -42,7 +43,7 @@
     <link href="{{ url_static('css/fonts.css') }}" rel="stylesheet">
        <link href="{{ url_static('css/doc.css') }}" rel="stylesheet">
        <link href="{{ url_static('css/font-awesome.css') }}" rel="stylesheet">
-       <link href="{{ url_static('css/polyglot-language-switcher.css') }}" 
type="text/css" rel="stylesheet">
+    <!-- <link href="{{ url_static('css/polyglot-language-switcher.css') }}" 
type="text/css" rel="stylesheet"> -->
        <link href="{{ url_static('css/owl.carousel.css') }}" rel="stylesheet">
     <link href="{{ url_static('css/owl.theme.default.css') }}" 
rel="stylesheet">
 
diff --git a/common/navigation.j2.inc b/common/navigation.j2.inc
index fc8b836..855de85 100644
--- a/common/navigation.j2.inc
+++ b/common/navigation.j2.inc
@@ -3,7 +3,12 @@
                <div class="innheaderSec">
                        <nav class="navbar navbar-expand-md navbar-light 
bg-light nav_top">
                                <a class="navbar-brand" href="{{ 
url_localized('index.html') }}"><img src="{{ url_static('images/logo.png') }}" 
alt="Anastasis"></a>
-                                 <button class="navbar-toggler" type="button" 
data-toggle="collapse" data-target="#navbarSupportedContent" 
aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle 
navigation">
+                                 <button class="navbar-toggler" 
+                  type="button" data-toggle="collapse" 
+                  data-target="#navbarSupportedContent" 
+                  aria-controls="navbarSupportedContent" 
+                  aria-expanded="false" 
+                  aria-label="Toggle navigation">
                                    <span class="icon-bar"></span>
                                        <span class="icon-bar"></span>
                                        <span class="icon-bar"></span>
@@ -13,71 +18,34 @@
                                     <li class="actv"><a href="{{ 
url_localized('index.html') }}">{% trans %}Home{% endtrans %}</a></li>
                                     <li><a href="{{ 
url_localized('docs_news.html') }}">{% trans %}Documentation/News{% endtrans 
%}</a></li>
                                     <li><a href="{{ 
url_localized('about.html') }}">{% trans %}About{% endtrans %}</a></li>
+                                                                    <li><a 
href="{{ url_localized('about.html') }}"></a></li>
                                </ul>
-                                 </div>
-                 <div class="collapse navbar-collapse justify-content-end" 
id="navbarSupportedContent">
-               <ul class="navbar-nav menu_sec">
-
-
+            <div class="nav-item dropdown">
+      <button class="btn btn-light dropdown-toggle"
+              type="button"
+              id="dropdownMenu1"
+              data-toggle="dropdown"
+              aria-haspopup="true"
+              aria-expanded="true">
+              <img src="{{ url_static('images/languageicon.svg') }}"
+                    height="30"
+                    alt="[{{lang}}]" />
+                    {{ lang_full }} [{{ lang }}]
+      </button>
+      <ul class="dropdown-menu" aria-labelledby="dropdownMenu1">
       {% if lang != 'en' %}
-        <li><a href="{{ self_localized('en') }}">English [en]</a></li>
+        <li><a class="dropdown-item" href="{{ self_localized('en') }}">English 
[en]</a></li>
+      {% endif %}
+        {% if lang != 'de' %}
+        <li><a class="dropdown-item" href="{{ self_localized('de') }}">Deutsch 
[de]</a></li>
       {% endif %}
-      {% if lang != 'de' %}
-        <li><a href="{{ self_localized('de') }}">Deutsch [de]</a></li>
+      {% if lang != 'it' %}
+        <li><a class="dropdown-item" href="{{ self_localized('it') 
}}">Italiano [it]</a></li>
       {% endif %}
-                                </ul>
-                            </ul>
-                        </li>
-                 </div>
-                                 
+      </ul>
+            </div>
+                                 </div>
                        </nav>
-<!-- Deprecated JavaScript language switcher 
-                       <div id="polyglotLanguageSwitcher">
-                               <form action="#">
-                                       <select id="polyglot-language-options">
-                                               <option id="en" value="en" 
selected><i class="fa fa-globe" aria-hidden="true"></i>Eng</option>
-                                               <option id="fr" 
value="fr">Fra</option>
-                                               <option id="de" 
value="de">Deu</option>
-                                               <option id="it" 
value="it">Ita</option>
-                                               <option id="es" 
value="es">Esp</option>
-                                       </select>
-                               </form>
-                       </div>
--->
                </div>
        </div>
-</header> 
-
-
-<!-- <script>
-
-/* When the user clicks on the button,
-toggle between hiding and showing the dropdown content */
-function dropDown() {
-  document.getElementById("myDropdown").classList.toggle("show");
-}
-
-// Close the dropdown menu if the user clicks outside of it
-window.onclick = function(event) {
-  if (!event.target.matches('.dropbtn')) {
-    var dropdowns = document.getElementsByClassName("dropdown-content");
-    var i;
-    for (i = 0; i < dropdowns.length; i++) {
-      var openDropdown = dropdowns[i];
-      if (openDropdown.classList.contains('show')) {
-        openDropdown.classList.remove('show');
-      }
-    }
-  }
-} 
-
-function burgerChange() {
-  var x = document.getElementById("navigation");
-  if (x.className === "topnav") {
-    x.className += " responsive";
-  } else {
-    x.className = "topnav";
-  }
-}
-</script>
--->
+</header>

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]