blob: 786ec741a91ad8ca4b0d8f4ba184d03150c4e288 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
<?php
// src/model/Blocks.php
class Blocks{
static public array $blocks = ['post_block' => 'Articles libres', 'news_block' => 'Actualités',
//'galery' => 'Galerie',
'calendar' => 'Calendrier', 'form' => 'Formulaire'];
static public array $presentations = ['fullwidth' => 'Pleine largeur', 'grid' => 'Grille', 'mosaic' => 'Mosaïque'
//, 'carousel' => 'Carrousel'
];
static public function hasPresentation(string $block): bool
{
return in_array($block, ['post_block', 'news_block']) ? true : false;
}
}
|