From: Vincent Vanwaelscappel Date: Tue, 10 Jan 2023 11:24:56 +0000 (+0100) Subject: . X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=3dcc60b6837dd27bd4dc2aaad214d5fbf4ce96df;p=songbook.git . --- 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;