From: Vincent Vanwaelscappel Date: Thu, 11 Jul 2019 16:14:19 +0000 (+0200) Subject: #2782 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=4534159ce98f7024419e74624aee0b7890186357;p=pmi.git #2782 --- diff --git a/.env.production b/.env.production index 6792278..3ed8c90 100644 --- a/.env.production +++ b/.env.production @@ -46,3 +46,4 @@ BACKPACK_LICENSE=YwdOWjeEczPAwy06GzkBJggW FEATURE_QUOTE=false FEATURE_NEWS=false FEATURE_SEARCH=false +FEATURE_I18N=false diff --git a/.env.staging b/.env.staging index 3417465..254719a 100644 --- a/.env.staging +++ b/.env.staging @@ -45,3 +45,4 @@ BACKPACK_LICENSE=YwdOWjeEczPAwy06GzkBJggW FEATURE_QUOTE=false FEATURE_NEWS=false FEATURE_SEARCH=false +FEATURE_I18N=false diff --git a/config/features.php b/config/features.php index 9f7c543..8fe00be 100644 --- a/config/features.php +++ b/config/features.php @@ -3,4 +3,5 @@ return [ 'search' => env('FEATURE_SEARCH', true), 'quote' => env('FEATURE_QUOTE', true), 'news' => env('FEATURE_NEWS', true), + 'i18n' => env('FEATURE_I18N', true), ]; diff --git a/resources/views/pages/product-detail.blade.php b/resources/views/pages/product-detail.blade.php index 4499bfd..b8447bb 100644 --- a/resources/views/pages/product-detail.blade.php +++ b/resources/views/pages/product-detail.blade.php @@ -43,10 +43,13 @@

- {{__('Ajouter à ma sélection')}} - ? + @if(config('features.quote')) + {{__('Ajouter à ma sélection')}} + + ? + @endif diff --git a/resources/views/partials/cart.blade.php b/resources/views/partials/cart.blade.php index 164e5eb..cc5fea9 100644 --- a/resources/views/partials/cart.blade.php +++ b/resources/views/partials/cart.blade.php @@ -1,2 +1,5 @@ -My Selection - +@if(config('features.quote')) + My Selection + +@endif + diff --git a/resources/views/partials/header.blade.php b/resources/views/partials/header.blade.php index 5e51539..e5aa7e3 100644 --- a/resources/views/partials/header.blade.php +++ b/resources/views/partials/header.blade.php @@ -40,11 +40,13 @@ - - - - +@if(config('features.search')) + + + + +@endif