From c7e2c5a2e66f9dd8dda0b3351d2c0bc9016a8711 Mon Sep 17 00:00:00 2001 From: Deltacms Date: Sat, 16 Dec 2023 08:21:02 +0100 Subject: [PATCH] editeur css color picker --- CHANGES.md | 1 + core/module/theme/lang/en/lex_theme.php | 1 + core/module/theme/lang/es/lex_theme.php | 1 + core/module/theme/lang/fr/lex_theme.php | 1 + core/module/theme/theme.php | 3 ++- core/module/theme/view/advanced/advanced.php | 9 +++++++++ 6 files changed, 15 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index 2f4c8f2..84a7af7 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -4,6 +4,7 @@ - Modifications : - Mise à jour des icônes, - Gabarits de page : Color box, une boîte colorée, sans marge en petit écran, couleurs paramétrables dans l'éditeur CSS, + - Thème / Editeur CSS : ajout d'une pipette à couleurs, - Album Photo en version 4.5 : mise à jour des fichiers d'aide et du tri des galeries, prise en compte du nouveau jeu d'icônes - Form 5.0 : Saisie et mise en forme des messages avec Tinymce, - Corrections : diff --git a/core/module/theme/lang/en/lex_theme.php b/core/module/theme/lang/en/lex_theme.php index 43d9e94..50a0508 100644 --- a/core/module/theme/lang/en/lex_theme.php +++ b/core/module/theme/lang/en/lex_theme.php @@ -40,6 +40,7 @@ $text['core_theme_view']['advanced'][1] = 'Help'; $text['core_theme_view']['advanced'][2] = 'Reset'; $text['core_theme_view']['advanced'][3] = 'Save'; $text['core_theme_view']['advanced'][4] = "Are you sure you want to reset the advanced customization to its original state ?"; +$text['core_theme_view']['advanced'][5] = "Finding a color"; $text['core_theme_view']['body'][0] = 'Back'; $text['core_theme_view']['body'][1] = 'Help'; $text['core_theme_view']['body'][2] = 'Save'; diff --git a/core/module/theme/lang/es/lex_theme.php b/core/module/theme/lang/es/lex_theme.php index cf849cf..9a310d2 100644 --- a/core/module/theme/lang/es/lex_theme.php +++ b/core/module/theme/lang/es/lex_theme.php @@ -40,6 +40,7 @@ $text['core_theme_view']['advanced'][1] = 'Ayuda'; $text['core_theme_view']['advanced'][2] = 'Reset'; $text['core_theme_view']['advanced'][3] = 'Guardar'; $text['core_theme_view']['advanced'][4] = "¿Está seguro de que desea restablecer la personalización avanzada a su estado original?"; +$text['core_theme_view']['advanced'][5] = "Encontrar un color"; $text['core_theme_view']['body'][0] = 'Atrás'; $text['core_theme_view']['body'][1] = 'Ayuda'; $text['core_theme_view']['body'][2] = 'Guardar'; diff --git a/core/module/theme/lang/fr/lex_theme.php b/core/module/theme/lang/fr/lex_theme.php index 3c1b15b..7e6a363 100644 --- a/core/module/theme/lang/fr/lex_theme.php +++ b/core/module/theme/lang/fr/lex_theme.php @@ -40,6 +40,7 @@ $text['core_theme_view']['advanced'][1] = 'Aide'; $text['core_theme_view']['advanced'][2] = 'Réinitialiser'; $text['core_theme_view']['advanced'][3] = 'Enregistrer'; $text['core_theme_view']['advanced'][4] = "Êtes-vous sûr de vouloir réinitialiser à son état d\'origine la personnalisation avancée ?"; +$text['core_theme_view']['advanced'][5] = "Recherche d'une couleur"; $text['core_theme_view']['body'][0] = 'Retour'; $text['core_theme_view']['body'][1] = 'Aide'; $text['core_theme_view']['body'][2] = 'Enregistrer'; diff --git a/core/module/theme/theme.php b/core/module/theme/theme.php index 974057e..bf8becd 100644 --- a/core/module/theme/theme.php +++ b/core/module/theme/theme.php @@ -146,7 +146,8 @@ class theme extends common { $this->addOutput([ 'title' => $text['core_theme']['advanced'][1], 'vendor' => [ - 'tinymce/plugins/codemirror/codemirror' + 'tinymce/plugins/codemirror/codemirror', + 'tinycolorpicker' ], 'view' => 'advanced' ]); diff --git a/core/module/theme/view/advanced/advanced.php b/core/module/theme/view/advanced/advanced.php index 13bcc41..84e504f 100644 --- a/core/module/theme/view/advanced/advanced.php +++ b/core/module/theme/view/advanced/advanced.php @@ -43,6 +43,15 @@ echo template::formOpen('themeAdvancedForm'); ?> ]); ?> +
+
+ 'colorPicker', + 'label' => $text['core_theme_view']['advanced'][5], + 'value' => 'rgba(245,245,245,1)' + ]); ?> +
+