From b3cdc71b8dcb10681a35079fb1aa2dd4627138fd Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Wed, 12 Aug 2020 17:39:43 +0200 Subject: [PATCH] =?UTF-8?q?Param=C3=A8trage=20du=20champ=20INPUT?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/class/template.class.php | 3 +-- core/layout/common.css | 8 ++++---- core/module/theme/view/body/body.php | 23 ++++++++++++++--------- core/module/theme/view/header/header.php | 13 +++++++------ 4 files changed, 26 insertions(+), 21 deletions(-) diff --git a/core/class/template.class.php b/core/class/template.class.php index 7f59f265..82554bf5 100755 --- a/core/class/template.class.php +++ b/core/class/template.class.php @@ -244,7 +244,7 @@ class template { 'value' => $attributes['value'] ]); // Champ d'upload - $html .= '
'; + $html .= '
- +

Image

- getData(['theme', 'body', 'image'])) ? $this->getData(['theme', 'body', 'image']) : ""; - echo template::file('themeBodyImage', [ - 'label' => 'Fond', - 'type' => 1, - 'value' => $imageFile - ]); ?> +
+
+ getData(['theme', 'body', 'image'])) ? $this->getData(['theme', 'body', 'image']) : ""; + echo template::file('themeBodyImage', [ + 'help' => 'Sélectionner une image', + 'label' => 'Fond', + 'type' => 1, + 'value' => $imageFile + ]); ?> +
+
diff --git a/core/module/theme/view/header/header.php b/core/module/theme/view/header/header.php index 8d3b41cf..34b54e91 100755 --- a/core/module/theme/view/header/header.php +++ b/core/module/theme/view/header/header.php @@ -20,7 +20,7 @@
'colorPicker', - 'help' => 'Le curseur horizontal règle le niveau de transparence.', + 'help' => 'Le curseur horizontal règle le niveau de transparence.', 'label' => 'Fond', 'value' => $this->getData(['theme', 'header', 'backgroundColor']) ]); ?> @@ -30,7 +30,7 @@
'colorPicker', - 'help' => 'Le curseur horizontal règle le niveau de transparence.', + 'help' => 'Le curseur horizontal règle le niveau de transparence.', 'label' => 'Texte', 'value' => $this->getData(['theme', 'header', 'textColor']) ]); ?> @@ -47,6 +47,7 @@ $imageFile = file_exists(self::FILE_DIR.'source/'.$this->getData(['theme', 'header', 'image'])) ? $this->getData(['theme', 'header', 'image']) : ""; echo template::file('themeHeaderImage', [ + 'help' => 'Sélectionner une image aux dimensions recommandées ci-dessous :', 'label' => 'Fond', 'type' => 1, 'value' => $imageFile @@ -77,15 +78,15 @@
$this->getData(['theme', 'header', 'linkHomePage']) - ]); ?> -
+ ]); ?> +
Dimensions de l'image : largeur - hauteur - ratio -
+
@@ -110,7 +111,7 @@ Cover pour une image plus grande que la bannière, Contain pour une image plus petite. Les modes Auto et Etiré ne provoquent pas de modification de la hauteur de la bannière.' ]); ?> -
+
'Hauteur maximale',