From e15183acf11561e05f87562e9b9addae56378535 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Thu, 8 Jul 2021 19:21:12 +0200 Subject: [PATCH] wait #4584 @1 --- app/Models/FluidbookTheme.php | 310 +--------------------------------- 1 file changed, 8 insertions(+), 302 deletions(-) diff --git a/app/Models/FluidbookTheme.php b/app/Models/FluidbookTheme.php index c7b6d6377..a7e478712 100644 --- a/app/Models/FluidbookTheme.php +++ b/app/Models/FluidbookTheme.php @@ -104,20 +104,7 @@ class FluidbookTheme extends CubistMagicAbstractModel 'allows_alpha' => false, 'translatable' => false, ]); - $this->addField([ - 'name' => 'shadeOnArrows', - 'type' => 'Checkbox', - 'label' => __('Ombre portée sous les flèches'), - 'default' => true, - 'translatable' => false, - ]); - $this->addField([ - 'name' => 'arrowsTheme', - 'type' => 'Checkbox', - 'label' => __('Nouveau thème'), - 'default' => false, - 'translatable' => false, - ]); + $this->addField([ 'name' => 'section_menu', 'type' => 'FormSection', @@ -149,16 +136,6 @@ class FluidbookTheme extends CubistMagicAbstractModel $this->addField([ 'type' => 'FormSeparator', ]); - $this->addField([ - 'name' => 'subCrossCircle', - 'type' => 'Checkbox', - 'label' => __('Afficher un cercle sous la croix de fermeture'), - 'default' => true, - 'translatable' => false, - ]); - $this->addField([ - 'type' => 'FormSeparator', - ]); $this->addField([ 'name' => 'subSelectColor', 'type' => 'Color', @@ -197,73 +174,6 @@ class FluidbookTheme extends CubistMagicAbstractModel $this->addField([ 'type' => 'FormSeparator', ]); - $this->addField([ - 'name' => 'subStrokeWidth', - 'type' => 'Integer', - 'label' => __('Largeur du contour'), - 'default' => 0, - 'translatable' => false, - ]); - $this->addField([ - 'name' => 'subStrokeColor', - 'type' => 'Color', - 'label' => __('Couleur du contour'), - 'default' => '#ffffff', - 'allows_alpha' => false, - 'translatable' => false, - ]); - $this->addField([ - 'name' => 'subShade', - 'type' => 'Color', - 'label' => __('Ombre sous le sous-menu'), - 'default' => 'transparent', - 'allows_alpha' => true, - 'translatable' => false, - ]); - $this->addField([ - 'name' => 'subRound', - 'type' => 'Integer', - 'label' => __('Arrondi'), - 'default' => 10, - 'translatable' => false, - ]); - $this->addField([ - 'type' => 'FormSeparator', - ]); - $this->addField([ - 'name' => 'subButtonCustom', - 'type' => 'Checkbox', - 'label' => __('Personnalisation des boutons'), - 'default' => false, - 'translatable' => false, - ]); - $this->addField([ - 'name' => 'subButtonBackground', - 'type' => 'Color', - 'label' => __('Couleur de fond'), - 'default' => '#cccccc', - 'allows_alpha' => false, - 'translatable' => false, - ]); - $this->addField([ - 'name' => 'subButtonColor', - 'type' => 'Color', - 'label' => __('Couleur du texte'), - 'default' => '#000000', - 'allows_alpha' => false, - 'translatable' => false, - ]); - $this->addField([ - 'name' => 'subButtonDecoration', - 'type' => 'Color', - 'label' => __('Couleur des décorations'), - 'default' => '#797979', - 'allows_alpha' => false, - 'translatable' => false, - ]); - $this->addField([ - 'type' => 'FormSeparator', - ]); $this->addField([ 'name' => 'popupVideoOverlay', 'type' => 'Color', @@ -272,65 +182,7 @@ class FluidbookTheme extends CubistMagicAbstractModel 'allows_alpha' => true, 'translatable' => false, ]); - $this->addField([ - 'name' => 'section_search', - 'type' => 'FormSection', - 'label' => __('Moteur de recherche'), - ]); - $this->addField([ - 'name' => 'couleurS', - 'type' => 'Color', - 'label' => __('Couleur du texte'), - 'default' => '#000000', - 'allows_alpha' => false, - 'translatable' => false, - ]); - $this->addField([ - 'name' => 'searchFieldColor', - 'type' => 'Color', - 'label' => __('Couleur du champs de saisie'), - 'default' => '#ffffff', - 'allows_alpha' => false, - 'translatable' => false, - ]); - $this->addField([ - 'name' => 'searchShadeAlpha', - 'type' => 'Integer', - 'label' => __('Intensité de l\'ombre dans le champ de saisie'), - 'min' => 0, - 'max' => 100, - 'default' => 0, - 'translatable' => false, - ]); - $this->addField([ - 'name' => 'searchFieldWidth', - 'type' => 'Integer', - 'label' => __('Largeur du champ de recherche'), - 'default' => 230, - 'translatable' => false, - ]); - $this->addField([ - 'type' => 'FormSeparator', - ]); - $this->addField([ - 'name' => 'highlightColor', - 'type' => 'Color', - 'label' => __('Couleur du surlignage des résultats'), - 'default' => '#00ff00', - 'allows_alpha' => false, - 'translatable' => false, - ]); - $this->addField([ - 'type' => 'FormSeparator', - ]); - $this->addField([ - 'name' => 'searchIndexNoResultColor', - 'type' => 'Color', - 'label' => __('Couleur de l\'overlay (aucun résultat)'), - 'default' => 'rgba(0,0,0,0.8)', - 'allows_alpha' => true, - 'translatable' => false, - ]); + $this->addField([ 'name' => 'section_icones', 'type' => 'FormSection', @@ -346,36 +198,7 @@ class FluidbookTheme extends CubistMagicAbstractModel 'default' => 15, 'translatable' => false, ]); - $this->addField([ - 'name' => 'iconShadeColor', - 'type' => 'Color', - 'label' => __('Couleur de l\'effet de rollover'), - 'default' => 'transparent', - 'allows_alpha' => true, - 'translatable' => false, - ]); - $this->addField([ - 'type' => 'FormSeparator', - ]); - $this->addField([ - 'name' => 'iconsHMargin', - 'type' => 'Integer', - 'label' => __('Espace entre les icônes'), - 'min' => 0, - 'max' => 50, - 'default' => 15, - 'translatable' => false, - ]); - $this->addField([ - 'type' => 'FormSeparator', - ]); - $this->addField([ - 'name' => 'colorizeIcons', - 'type' => 'Checkbox', - 'label' => __('Colorier les icônes'), - 'default' => false, - 'translatable' => false, - ]); + $this->addField([ 'name' => 'couleurI', 'type' => 'Color', @@ -384,21 +207,7 @@ class FluidbookTheme extends CubistMagicAbstractModel 'allows_alpha' => true, 'translatable' => false, ]); - $this->addField([ - 'type' => 'FormSeparator', - ]); - $this->addField([ - 'name' => 'fontKit', - 'type' => 'SelectFromArray', - 'options' => [ - 'auto' => 'Automatique', - 'vagrounded' => 'VAG Rounded', - 'gill' => 'Gill', - ], - 'label' => __('Police de caractères'), - 'default' => 'auto', - 'translatable' => false, - ]); + $this->addField([ 'name' => 'section_effects', @@ -432,48 +241,6 @@ class FluidbookTheme extends CubistMagicAbstractModel 'default' => true, 'translatable' => false, ]); - $this->addField([ - 'name' => 'pageEdgeOpacity', - 'type' => 'Integer', - 'label' => __('Opacité de la bordure'), - 'min' => 0, - 'max' => 100, - 'default' => 100, - 'translatable' => false, - ]); - $this->addField([ - 'name' => 'pageEdgeLeftOffset', - 'type' => 'Integer', - 'label' => __('Décalage de la bordure gauche (vers l\'intérieur)'), - 'min' => 0, - 'max' => 20, - 'default' => 0, - 'translatable' => false, - ]); - $this->addField([ - 'name' => 'pageEdgeRightOffset', - 'type' => 'Integer', - 'label' => __('Décalage de la bordure droite (vers l\'intérieur)'), - 'min' => 0, - 'max' => 20, - 'default' => 0, - 'translatable' => false, - ]); - $this->addField([ - 'name' => 'pageEdgeColor', - 'type' => 'Color', - 'label' => __('Couleur de la bordure (Version flash)'), - 'default' => '#dddddd', - 'allows_alpha' => false, - 'translatable' => false, - ]); - $this->addField([ - 'name' => 'pageEdgeThickness', - 'type' => 'Integer', - 'label' => __('Epaisseur de la bordure (Version flash)'), - 'default' => 100, - 'translatable' => false, - ]); $this->addField([ 'type' => 'FormSeparator', @@ -685,7 +452,7 @@ class FluidbookTheme extends CubistMagicAbstractModel $this->addField([ 'name' => 'section_menubar', 'type' => 'FormSection', - 'label' => __('Barre de menu'), + 'label' => __('Barre de menu horizontal'), ]); $this->addField([ 'name' => 'menuHeight', @@ -705,9 +472,7 @@ class FluidbookTheme extends CubistMagicAbstractModel 'allows_alpha' => true, 'translatable' => false, ]); - $this->addField([ - 'type' => 'FormSeparator', - ]); + $this->addField([ 'name' => 'menuImage', 'name_as_collection' => true, @@ -718,16 +483,7 @@ class FluidbookTheme extends CubistMagicAbstractModel $this->addField([ 'type' => 'FormSeparator', ]); - $this->addField([ - 'name' => 'shadeOnMenu', - 'type' => 'Checkbox', - 'label' => __('Ombre portée sous la barre du menu'), - 'default' => true, - 'translatable' => false, - ]); - $this->addField([ - 'type' => 'FormSeparator', - ]); + $this->addField([ 'name' => 'invertMenuPosition', 'type' => 'Checkbox', @@ -738,34 +494,12 @@ class FluidbookTheme extends CubistMagicAbstractModel $this->addField([ 'type' => 'FormSeparator', ]); - $this->addField([ - 'name' => 'topBar', - 'name_as_collection' => true, - 'type' => 'Images', - 'label' => __('Top Bar'), - 'translatable' => false, - ]); - $this->addField([ - 'name' => 'topBarAlign', - 'type' => 'SelectFromArray', - 'options' => [ - 4 => 'Centré', - 5 => 'Gauche', - 6 => 'Droite', - ], - 'label' => __('Alignement Horizontal de la Top Bar'), - 'default' => 5, - 'translatable' => false, - ]); - $this->addField([ - 'type' => 'FormSeparator', - ]); $this->addField([ 'name' => 'afterSearch', 'name_as_collection' => true, 'type' => 'Images', 'label' => __('Image supplémentaire'), - 'hint' => __('Image disposée à droite du champ de recherche'), + 'hint' => __('Image disposée à droite des icônes'), 'translatable' => false, ]); $this->addField([ @@ -798,22 +532,6 @@ class FluidbookTheme extends CubistMagicAbstractModel 'hint' => __('Image PNG de 256x256'), 'translatable' => false, ]); - $this->addField([ - 'name' => 'iosicon', - 'name_as_collection' => true, - 'type' => 'Images', - 'label' => __('Icone (pour application iOS)'), - 'hint' => __('Image PNG de 1024x1024'), - 'translatable' => false, - ]); - $this->addField([ - 'name' => 'androidicon', - 'name_as_collection' => true, - 'type' => 'Images', - 'label' => __('Icone (pour application Android)'), - 'hint' => __('Image PNG de 1024x1024'), - 'translatable' => false, - ]); $this->addField([ 'name' => 'section_loader', 'type' => 'FormSection', @@ -899,18 +617,6 @@ class FluidbookTheme extends CubistMagicAbstractModel 'allows_alpha' => true, 'translatable' => false, ]); - $this->addField([ - 'type' => 'FormSeparator', - ]); - $this->addField([ - 'name' => 'bookmarkColor', - 'type' => 'Color', - 'label' => __('Couleur des marques-pages'), - 'default' => '#ffffff', - 'allows_alpha' => false, - 'translatable' => false, - ]); - } public function addFile($fieldname, $path) -- 2.39.5