]> _ Git - pmi.git/commitdiff
#2782
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 11 Jul 2019 16:14:19 +0000 (18:14 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 11 Jul 2019 16:14:19 +0000 (18:14 +0200)
.env.production
.env.staging
config/features.php
resources/views/pages/product-detail.blade.php
resources/views/partials/cart.blade.php
resources/views/partials/header.blade.php

index 67922785e3e5d21b5f43f932ac27025a4e02331a..3ed8c90d61699ddb806e0e9b926b2b32126f571a 100644 (file)
@@ -46,3 +46,4 @@ BACKPACK_LICENSE=YwdOWjeEczPAwy06GzkBJggW
 FEATURE_QUOTE=false
 FEATURE_NEWS=false
 FEATURE_SEARCH=false
+FEATURE_I18N=false
index 3417465798901c7ed39ae051dd1940462b70ea9e..254719a98a1dd7a97ee685ab2b93a30b95fc8565 100644 (file)
@@ -45,3 +45,4 @@ BACKPACK_LICENSE=YwdOWjeEczPAwy06GzkBJggW
 FEATURE_QUOTE=false
 FEATURE_NEWS=false
 FEATURE_SEARCH=false
+FEATURE_I18N=false
index 9f7c5431d2df20d0ab70bf1fed8bb6ac32e6b9f3..8fe00be18e46e1d3adfa50daa9bf1710f1fa7a54 100644 (file)
@@ -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),
 ];
index 4499bfda569ff72a063951e765789ea50831e0f2..b8447bbf9fef10e12c6592f0b017f30511c3d24a 100644 (file)
                     </a>
                 </p>
 
-                <link-button href="#" class="align-middle">{{__('Ajouter à ma sélection')}}</link-button>
 
-                <span
-                    class="font-display text-lg inline-block align-middle rounded-full border-grey-dark border-2 h-8 w-8 text-center ml-6">?</span>
+                @if(config('features.quote'))
+                    <link-button href="#" class="align-middle">{{__('Ajouter à ma sélection')}}</link-button>
+
+                    <span
+                        class="font-display text-lg inline-block align-middle rounded-full border-grey-dark border-2 h-8 w-8 text-center ml-6">?</span>
+                @endif
 
             </text-block>
 
index 164e5eb7e9ba19a85094f822f7604fcadb4bd562..cc5fea936d65dcbeb7c7faf325b93bc78be15f2c 100644 (file)
@@ -1,2 +1,5 @@
-<span class="cart-header-title">My Selection</span>
-<span class="cart-header-icon" v-html="cartItemCount"></span>
+@if(config('features.quote'))
+    <span class="cart-header-title">My Selection</span>
+    <span class="cart-header-icon" v-html="cartItemCount"></span>
+@endif
+
index 5e5153954d4a897c69571b2e4660f43c7ea94153..e5aa7e3d77eadad5e72dc9455cb169d1b3186ef4 100644 (file)
 
 </header>
 
-<search placeholder="{{ __('Rechercher ...') }}">
-    <template v-slot:link>
-        @svg('search')
-    </template>
-    <template v-slot:button>
-        @svg('search', 'fill-current text-navy w-6 h-6 hover:text-blue')
-    </template>
-</search>
+@if(config('features.search'))
+    <search placeholder="{{ __('Rechercher ...') }}">
+        <template v-slot:link>
+            @svg('search')
+        </template>
+        <template v-slot:button>
+            @svg('search', 'fill-current text-navy w-6 h-6 hover:text-blue')
+        </template>
+    </search>
+@endif