From c0348480fa599eec009e7252ff30cd7fb01c56e0 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Tue, 16 Jul 2019 19:16:09 +0200 Subject: [PATCH] wip #2882 @0:10 --- .env.production | 3 ++ .env.staging | 3 ++ config/features.php | 3 ++ resources/views/pages/home.blade.php | 42 ++++++++++++++++------------ 4 files changed, 33 insertions(+), 18 deletions(-) diff --git a/.env.production b/.env.production index 2c23c5b..7d37653 100644 --- a/.env.production +++ b/.env.production @@ -47,3 +47,6 @@ FEATURE_QUOTE=false FEATURE_NEWS=false FEATURE_SEARCH=false FEATURE_I18N=false +FEATURE_TEAM=false +FEATURE_CLIENTS=false +FEATURE_PARTNERS=false diff --git a/.env.staging b/.env.staging index 04aff2b..f79a4b5 100644 --- a/.env.staging +++ b/.env.staging @@ -46,3 +46,6 @@ FEATURE_QUOTE=false FEATURE_NEWS=false FEATURE_SEARCH=false FEATURE_I18N=false +FEATURE_TEAM=false +FEATURE_CLIENTS=false +FEATURE_PARTNERS=false diff --git a/config/features.php b/config/features.php index 8fe00be..397f405 100644 --- a/config/features.php +++ b/config/features.php @@ -4,4 +4,7 @@ return [ 'quote' => env('FEATURE_QUOTE', true), 'news' => env('FEATURE_NEWS', true), 'i18n' => env('FEATURE_I18N', true), + 'team' => env('FEATURE_TEAM', true), + 'partners' => env('FEATURE_PARTNERS', true), + 'clients' => env('FEATURE_CLIENTS', true), ]; diff --git a/resources/views/pages/home.blade.php b/resources/views/pages/home.blade.php index dd7b5cd..03e4431 100644 --- a/resources/views/pages/home.blade.php +++ b/resources/views/pages/home.blade.php @@ -16,7 +16,9 @@

- Wheel Force Transducers (WFT) are used for measuring all wheel forces and moments. Field and laboratory test of passenger cars, light duty trucks, heavy duty trucks, vans, SUVs, class 8 trucks, heavy duty construction and farm equipment. + Wheel Force Transducers (WFT) are used for measuring all wheel forces and moments. Field and + laboratory test of passenger cars, light duty trucks, heavy duty trucks, vans, SUVs, class 8 + trucks, heavy duty construction and farm equipment.

@@ -28,7 +30,7 @@ - + @@ -42,7 +44,7 @@ - + @@ -96,12 +98,13 @@ {{-- Solutions / Applications --}} - + @foreach ($page->get('solutions', []) as $solution) - + {{ $solution['title'] }} @endforeach @@ -117,14 +120,15 @@ {{-- News --}} - + @foreach ($news as $newsItem)

{{--Todo: handle missing images + get correct image size--}} - {{ $newsItem->title }} + {{ $newsItem->title }}

{{ $newsItem->title }}

{{ $newsItem['chapo'] }}

@@ -137,17 +141,19 @@ @endif - {{-- Our Clients --}} - - - + @if(config('features.clients')) + {{-- Our Clients --}} + + + - - @for ($i = 1; $i <= 8; $i++) -
- @endfor -
-
-
+ + @for ($i = 1; $i <= 8; $i++) +
+ @endfor +
+
+
+ @endif @endsection -- 2.39.5