From 37e6932e3970b67e301459887a9919b7415827a6 Mon Sep 17 00:00:00 2001 From: RealStickman Date: Sat, 19 Nov 2022 19:41:30 +0100 Subject: [PATCH] Remove language-selector. Add langswitcher --- .../templates/partials/langswitcher.html.twig | 33 +++++++++++++ .../partials/language-selector.html.twig | 49 ------------------- .../templates/partials/sidebar.html.twig | 2 +- 3 files changed, 34 insertions(+), 50 deletions(-) create mode 100644 themes/custom-learn2-dark/templates/partials/langswitcher.html.twig delete mode 100644 themes/custom-learn2-dark/templates/partials/language-selector.html.twig diff --git a/themes/custom-learn2-dark/templates/partials/langswitcher.html.twig b/themes/custom-learn2-dark/templates/partials/langswitcher.html.twig new file mode 100644 index 0000000..3b44b1f --- /dev/null +++ b/themes/custom-learn2-dark/templates/partials/langswitcher.html.twig @@ -0,0 +1,33 @@ + diff --git a/themes/custom-learn2-dark/templates/partials/language-selector.html.twig b/themes/custom-learn2-dark/templates/partials/language-selector.html.twig deleted file mode 100644 index 7e19f0e..0000000 --- a/themes/custom-learn2-dark/templates/partials/language-selector.html.twig +++ /dev/null @@ -1,49 +0,0 @@ -
- - - -
diff --git a/themes/custom-learn2-dark/templates/partials/sidebar.html.twig b/themes/custom-learn2-dark/templates/partials/sidebar.html.twig index 21cfdf8..b055e45 100644 --- a/themes/custom-learn2-dark/templates/partials/sidebar.html.twig +++ b/themes/custom-learn2-dark/templates/partials/sidebar.html.twig @@ -61,7 +61,7 @@ {{ 'THEME_LEARN2_CLEAR_HISTORY'|t }}
- {% include 'partials/language-selector.html.twig' %} + {% include 'partials/langswitcher.html.twig' %}