]> _ Git - pmi.git/commitdiff
wip #3094 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 31 Dec 2019 12:19:24 +0000 (13:19 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 31 Dec 2019 12:19:24 +0000 (13:19 +0100)
.env.production
resources/views/partials/footer-language-switcher.blade.php

index 697fbdb6a4ce84170ff20fe2fd221b096c7c5fea..5836747497e78729641de0b85973466dd5e5179a 100644 (file)
@@ -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
index adce260c940806ef379c0816e1ba89e0b9cc99ff..0560df3becaa261a10448cbc81982b9ccb04479d 100644 (file)
@@ -9,7 +9,13 @@
         <div class="footer-locales-list-wrapper">
             <ul class="footer-locales-list">
                 @foreach($locales['others'] as $code=>$locale)
-                    <li><a href="{{CubistMenu::getCurrentPage()->getTranslatedPage($code)->getURL()}}"
+                    @php
+                        $alternate=CubistMenu::getCurrentPage()->getTranslatedPage($code,false);
+                        if(null===$alternate){
+
+                        }
+                    @endphp
+                    <li><a href="{{$alternate->getURL()}}"
                            target="_self"><img src="{{ asset('images/locale-'.$locale['flag'].'.svg') }}"
                                                alt="{{$locale['name']}}"
                                                class="footer-locales-flag">{{ucfirst($locale['name'])}}</a></li>