From e93cd6c352a8e4fbb4e1174bdb15484adbe4c0f7 Mon Sep 17 00:00:00 2001 From: polo Date: Fri, 26 Sep 2025 12:04:02 +0200 Subject: suppression table Presentation --- src/model/Blocks.php | 37 +++---------------------------------- 1 file changed, 3 insertions(+), 34 deletions(-) (limited to 'src/model/Blocks.php') diff --git a/src/model/Blocks.php b/src/model/Blocks.php index a6fab45..53268db 100644 --- a/src/model/Blocks.php +++ b/src/model/Blocks.php @@ -1,38 +1,7 @@ self::$types[$i], 'name' => self::$names[$i]]; - } - return $blocks; - } - - static public function getNameFromType(string $type): string - { - for($i=0; $i < count(self::$types); $i++){ - if(self::$types[$i] === $type){ - return self::$names[$i]; - } - } - return 'server side error'; - } + 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']; } \ No newline at end of file -- cgit v1.2.3