]> _ Git - songbook.git/commitdiff
.
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 10 Jan 2023 11:24:56 +0000 (12:24 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 10 Jan 2023 11:24:56 +0000 (12:24 +0100)
app/Http/Controllers/FrontController.php

index 8aff76d0e980b2209b54b269a56836fcbf70cdae..291f0f108f61062b3aba4ed1d6cd9de618394595 100644 (file)
@@ -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;