aboutsummaryrefslogtreecommitdiff
path: root/src/model/Blocks.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/model/Blocks.php')
-rw-r--r--src/model/Blocks.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/model/Blocks.php b/src/model/Blocks.php
index 21e3c18..786ec74 100644
--- a/src/model/Blocks.php
+++ b/src/model/Blocks.php
@@ -5,7 +5,13 @@ class Blocks{
5 static public array $blocks = ['post_block' => 'Articles libres', 'news_block' => 'Actualités', 5 static public array $blocks = ['post_block' => 'Articles libres', 'news_block' => 'Actualités',
6 //'galery' => 'Galerie', 6 //'galery' => 'Galerie',
7 'calendar' => 'Calendrier', 'form' => 'Formulaire']; 7 'calendar' => 'Calendrier', 'form' => 'Formulaire'];
8
8 static public array $presentations = ['fullwidth' => 'Pleine largeur', 'grid' => 'Grille', 'mosaic' => 'Mosaïque' 9 static public array $presentations = ['fullwidth' => 'Pleine largeur', 'grid' => 'Grille', 'mosaic' => 'Mosaïque'
9 //, 'carousel' => 'Carrousel' 10 //, 'carousel' => 'Carrousel'
10 ]; 11 ];
12
13 static public function hasPresentation(string $block): bool
14 {
15 return in_array($block, ['post_block', 'news_block']) ? true : false;
16 }
11} \ No newline at end of file 17} \ No newline at end of file