From 3dcc60b6837dd27bd4dc2aaad214d5fbf4ce96df Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Tue, 10 Jan 2023 12:24:56 +0100 Subject: [PATCH] . --- app/Http/Controllers/FrontController.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/Http/Controllers/FrontController.php b/app/Http/Controllers/FrontController.php index 8aff76d..291f0f1 100644 --- a/app/Http/Controllers/FrontController.php +++ b/app/Http/Controllers/FrontController.php @@ -12,6 +12,7 @@ use Notion\Blocks\BlockInterface; use Notion\Blocks\Paragraph; use Notion\Common\RichText; use Notion\Notion; +use Notion\Pages\Properties\Checkbox; use Notion\Pages\Properties\RichTextProperty; use Notion\Pages\Properties\Title; @@ -195,6 +196,11 @@ class FrontController extends Controller { $notesProperty = $song->getProprety('Notes générales'); /** @var \Notion\Pages\Properties\Files $filesProperty */ $filesProperty = $song->getProprety('Files & media'); + /** @var Checkbox $hideProperty */ + $hideProperty = $song->getProprety('Cacher dans l\'app'); + if ($hideProperty->checked) { + continue; + } $s['id'] = $song->id; $s['order'] = (int)$orderProperty->number; -- 2.39.5