diff --git a/theme.config.php b/theme.config.php index fb0d133..0f25ddd 100644 --- a/theme.config.php +++ b/theme.config.php @@ -2,7 +2,7 @@ return [ // * GGW version - 'version' => '2.2.4', + 'version' => '2.2.7', // * Theme name 'name' => 'ramadan-2024', // * Picture BO validation sizes diff --git a/views/pages/teaser.blade.php b/views/pages/teaser.blade.php index c2d10f7..96ac8bd 100644 --- a/views/pages/teaser.blade.php +++ b/views/pages/teaser.blade.php @@ -4,110 +4,88 @@ @section('main-class', 'teaser-page') @section('content') - {{-- 1st row lots --}} -
-
-

- {{ Str::of( - __('Du :start_date au :end_date', [ - 'start_date' => $settingsGlobal->start_date->isoFormat('DD MMMM'), - 'end_date' => $settingsGlobal->end_date->isoFormat('DD MMMM'), - ]), - )->upper() }} -

-

- Halal
- &En Famille -

-
-
-
-
-
-

- {{ __('Jouez et tentez de gagner') }} -

+
+
+
+

+ {{ Str::of( + __('Du :start_date au :end_date', [ + 'start_date' => $settingsGlobal->start_date->isoFormat('DD MMMM'), + 'end_date' => $settingsGlobal->end_date->isoFormat('DD MMMM'), + ]), + )->upper() }} +

+

+ Halal
+ &En Famille +

+
+
+
+
+
+

+ {{ __('Jouez et tentez de gagner') }} +

+
-
- @if (collect($prizesGlobal)->count()) -
- @if (Arr::has($prizesGlobal, 0)) -
- {{ Arr::get($prizesGlobal, 0)->picture_alt }} -
-
-

- {{ Arr::get($prizesGlobal, 0)->quantity }} - @if (intval(Arr::get($prizesGlobal, 0)->quantity) > 1) - {{ Str::plural(Arr::get($prizesGlobal, 0)->label) }} - @else - {{ Arr::get($prizesGlobal, 0)->label }} - @endif -

-

{{ __('Et des milliers de bon d’achat') }}

-
- @endif - {{-- @if (Arr::has($prizesGlobal, 1)) -
-
-
- {{ Arr::get($prizesGlobal, 1)->quantity }} -
-

- @if (intval(Arr::get($prizesGlobal, 1)->quantity) > 1) - {{ Str::plural(Arr::get($prizesGlobal, 1)->label) }} + @if (collect($prizesGlobal)->count()) +
+ @if (Arr::has($prizesGlobal, 0)) +
+ {{ Arr::get($prizesGlobal, 0)->picture_alt }} +
+
+

+ {{ Arr::get($prizesGlobal, 0)->quantity }} + @if (intval(Arr::get($prizesGlobal, 0)->quantity) > 1) + {{ Str::plural(Arr::get($prizesGlobal, 0)->label) }} @else - {{ Arr::get($prizesGlobal, 1)->label }} + {{ Arr::get($prizesGlobal, 0)->label }} @endif

- {{ Arr::get($prizesGlobal, 1)->picture_alt }} -
- {!! clean(nl2br(__("Ou des milliers\n de bons\n de réduction"))) !!} - {{ __('Réduction de 1 euro') }} -
-
- @endif --}} -

+ @endif +
+ @endif +
+ {{ __('Grand jeu 100% gagnant') }} +
+
+
+
+ @php + $counterParts = explode( + '#', + $settingsGlobal->start_date->diffForHumans([ + 'syntax' => \Carbon\CarbonInterface::DIFF_ABSOLUTE, + 'parts' => 3, + 'join' => '#', + ]), + ); + @endphp + @if (collect($counterParts)->count()) +

+ {{ __('Votre jeu sera ouvert dans :time', ['time' => '']) }} + + @foreach ($counterParts as $counterPart) + + + + {{ Str::of($counterPart)->before(' ')->padLeft(2, '0') }} + + + {{ Str::of($counterPart)->after(' ')->padBoth(8, "\u{00A0}") }} + + @endforeach + +

@endif
- {{ __('Grand jeu 100% gagnant') }} -
-
- @php - $counterParts = explode( - '#', - $settingsGlobal->start_date->diffForHumans([ - 'syntax' => \Carbon\CarbonInterface::DIFF_ABSOLUTE, - 'parts' => 3, - 'join' => '#', - ]), - ); - @endphp - @if (collect($counterParts)->count()) -

- {{ __('Votre jeu sera ouvert dans :time', ['time' => '']) }} - - @foreach ($counterParts as $counterPart) - - - - {{ Str::of($counterPart)->before(' ')->padLeft(2, '0') }} - - - {{ Str::of($counterPart)->after(' ')->padBoth(8, "\u{00A0}") }} - - @endforeach - -

- @endif
@endsection