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