From 11efbccf4d12ee88af66b51ad3094d9c2786479c Mon Sep 17 00:00:00 2001 From: Ned Zimmerman Date: Wed, 1 Apr 2020 10:50:08 -0600 Subject: [PATCH 1/2] feat: only show language switcher if enabled via localization settings --- resources/views/partials/language-switcher.blade.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/resources/views/partials/language-switcher.blade.php b/resources/views/partials/language-switcher.blade.php index 615c6c3..a392b70 100644 --- a/resources/views/partials/language-switcher.blade.php +++ b/resources/views/partials/language-switcher.blade.php @@ -1,13 +1,15 @@ -@if(function_exists('pll_the_languages')) +@if(function_exists('pll_the_languages') && get_field('enabled_languages', 'option'))