From 4af42b88aeb38f4366f47ee59565b13f6fe5bd39 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Wed, 11 Dec 2019 19:12:57 +0100 Subject: [PATCH] wip #3262 @0.25 --- .env.staging | 2 +- .../images/{locale-de.svg => locale-DE.svg} | 0 .../images/{locale-fr.svg => locale-FR.svg} | 0 .../images/{locale-en.svg => locale-GB.svg} | 0 .../footer-language-switcher.blade.php | 20 +++++++++++++++++++ resources/views/partials/footer.blade.php | 17 +--------------- 6 files changed, 22 insertions(+), 17 deletions(-) rename public/images/{locale-de.svg => locale-DE.svg} (100%) rename public/images/{locale-fr.svg => locale-FR.svg} (100%) rename public/images/{locale-en.svg => locale-GB.svg} (100%) create mode 100644 resources/views/partials/footer-language-switcher.blade.php diff --git a/.env.staging b/.env.staging index 304200f..acc4b02 100644 --- a/.env.staging +++ b/.env.staging @@ -57,7 +57,7 @@ ELASTICSEARCH_PASS= FEATURE_QUOTE=true FEATURE_NEWS=true FEATURE_SEARCH=true -FEATURE_I18N=false +FEATURE_I18N=true FEATURE_TEAM=true FEATURE_CLIENTS=true FEATURE_PARTNERS=true diff --git a/public/images/locale-de.svg b/public/images/locale-DE.svg similarity index 100% rename from public/images/locale-de.svg rename to public/images/locale-DE.svg diff --git a/public/images/locale-fr.svg b/public/images/locale-FR.svg similarity index 100% rename from public/images/locale-fr.svg rename to public/images/locale-FR.svg diff --git a/public/images/locale-en.svg b/public/images/locale-GB.svg similarity index 100% rename from public/images/locale-en.svg rename to public/images/locale-GB.svg diff --git a/resources/views/partials/footer-language-switcher.blade.php b/resources/views/partials/footer-language-switcher.blade.php new file mode 100644 index 0000000..6ad56bb --- /dev/null +++ b/resources/views/partials/footer-language-switcher.blade.php @@ -0,0 +1,20 @@ +@if (config('features.i18n') && count($locales['others'])>0) + {{-- Language Switcher --}} + +@endif diff --git a/resources/views/partials/footer.blade.php b/resources/views/partials/footer.blade.php index 13be370..73301f0 100644 --- a/resources/views/partials/footer.blade.php +++ b/resources/views/partials/footer.blade.php @@ -51,22 +51,7 @@ {{-- Sub-footer --}}
- @if (config('features.i18n')) - {{-- Language Switcher --}} - - @endif + @include('partials.footer-language-switcher') {{-- Footer Nav Links --}} {!! CubistMenu::get('#footer')->asUl(['class' => 'footer-nav'])!!} -- 2.39.5