From: Vincent Vanwaelscappel Date: Fri, 12 Sep 2025 16:27:05 +0000 (+0200) Subject: wait #7736 @1.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=a1780b01731c5112262c2424813c39ae1a1a1e10;p=psq.git wait #7736 @1.5 --- diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php index f8bfcab..099c741 100644 --- a/app/Console/Kernel.php +++ b/app/Console/Kernel.php @@ -27,6 +27,7 @@ class Kernel extends ConsoleKernel { $schedule->job(new CheckForTrialExpirationDates)->dailyAt('13:00'); $schedule->command('psq:fluidbook:archives')->dailyAt('04:00'); + $schedule->command('psq:fluidbook:updatedemo')->cron('0 4 1,15 * *'); } /** diff --git a/app/Http/Controllers/FluidbookController.php b/app/Http/Controllers/FluidbookController.php index 99f259f..c6bb342 100644 --- a/app/Http/Controllers/FluidbookController.php +++ b/app/Http/Controllers/FluidbookController.php @@ -2,6 +2,7 @@ namespace App\Http\Controllers; +use A17\Twill\Repositories\SettingRepository; use App\AccessLog; use App\PdfFile; use Cubist\Util\Files\Files; @@ -20,7 +21,9 @@ class FluidbookController extends Controller */ public function view(PdfFile $file, string $path = '') { - $this->authorize('view', $file); + if (app(SettingRepository::class)->byKey('fluidbook_demo_ref') != $file->slug) { + $this->authorize('view', $file); + } // Add trailing slash if needed $request = request(); if ($request->getPathInfo() === '/view/' . $file->slug) { diff --git a/resources/views/components/cover.blade.php b/resources/views/components/cover.blade.php index bf43284..7313876 100644 --- a/resources/views/components/cover.blade.php +++ b/resources/views/components/cover.blade.php @@ -1,12 +1,14 @@
- +
- +
diff --git a/resources/views/home/index.blade.php b/resources/views/home/index.blade.php index 1857fb1..00a9db5 100644 --- a/resources/views/home/index.blade.php +++ b/resources/views/home/index.blade.php @@ -26,7 +26,9 @@ {{ __('If you did not receive the email') }},
@csrf - . + + .
@endif @@ -39,14 +41,16 @@

{!! $settings->byKey('main_title') !!}

{{ ucfirst($last_pdf->first()->created_at->translatedFormat('l d F Y')) }}

- {{-- /view/{{ $last_pdf->first()['slug'] }} --}} - Lire le quotidien + Lire le + quotidien
- + {{--@foreach($last_pdf->first()->headlines ?? [] as $headline) @@ -66,8 +70,9 @@ {!! $settings->byKey('text_discover_home') !!} -
- +
+
@@ -84,7 +89,7 @@
@foreach($last_pdf as $key => $pdf)
- +
@endforeach @@ -105,7 +110,7 @@

{{ $settings->byKey('title_quotidien_home') }}

- {{-- /view/{{ $last_pdf->first()['slug'] }} --}} - Feuilleter un quotidien + Feuilleter un quotidien
- +