From 2ed23f4cd2fe166fe584ac2ab40f736a40d82d2b Mon Sep 17 00:00:00 2001 From: fredtempez Date: Wed, 20 Mar 2019 15:01:31 +0100 Subject: [PATCH 1/3] [9.0.08] responsive header delete contain option --- core/module/theme/theme.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/module/theme/theme.php b/core/module/theme/theme.php index 94738aa2..c1d59b43 100755 --- a/core/module/theme/theme.php +++ b/core/module/theme/theme.php @@ -200,8 +200,8 @@ class theme extends common { ]; public static $headerWide = [ 'auto auto' => 'Automatique', - 'contain' => 'Responsive (contain)', - 'cover' => 'Responsive (cover)', + //'contain' => 'Responsive (contain)', + 'cover' => 'Responsive', '100% 100%' => 'Image étirée', ]; From 45914d3f7cf4dce32f1afc0682a6a73d8fa50c33 Mon Sep 17 00:00:00 2001 From: fredtempez Date: Wed, 20 Mar 2019 18:25:17 +0100 Subject: [PATCH 2/3] =?UTF-8?q?[9.0.08]=20Th=C3=A8mes=20:=20libell=C3=A9s?= =?UTF-8?q?=20et=20aide?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/module/theme/theme.php | 44 ++++++++++++------------ core/module/theme/view/body/body.php | 1 + core/module/theme/view/footer/footer.php | 1 + core/module/theme/view/header/header.php | 6 ++-- core/module/theme/view/menu/menu.php | 37 ++++++++++---------- core/module/theme/view/site/site.php | 8 ++++- 6 files changed, 54 insertions(+), 43 deletions(-) diff --git a/core/module/theme/theme.php b/core/module/theme/theme.php index c1d59b43..eeb59a6c 100755 --- a/core/module/theme/theme.php +++ b/core/module/theme/theme.php @@ -90,19 +90,19 @@ class theme extends common { 'body' => 'En dessous du site' ]; public static $footerFontSizes = [ - '.8em' => 'Très petite', - '.9em' => 'Petite', - '1em' => 'Normale', - '1.1em' => 'Moyenne', - '1.2em' => 'Grande', - '1.3em' => 'Très grande' + '.5em' => 'Microscopique (50%)', + '.6em' => 'Minuscule (60%)', + '.7em' => 'Infime (70%)', + '.8em' => 'Très petite (80%)', + '.9em' => 'Petite (90%)', + '1em' => 'Normale (100%)', ]; public static $headerFontSizes = [ - '1.6em' => 'Très petite', - '1.8em' => 'Petite', - '2em' => 'Moyenne', - '2.2em' => 'Grande', - '2.4vmax' => 'Très grande' + '1.6em' => 'Très petite (160%)', + '1.8em' => 'Petite (180%)', + '2em' => 'Moyenne (200%)', + '2.2em' => 'Grande (220%)', + '2.4vmax' => 'Très grande (240%)' ]; public static $headerHeights = [ '100px' => 'Très petite (100 pixels)', @@ -128,12 +128,12 @@ class theme extends common { 'bottom right' => 'En bas à droite' ]; public static $menuFontSizes = [ - '.8em' => 'Très petite', - '.9em' => 'Petite', - '1em' => 'Normale', - '1.1em' => 'Moyenne', - '1.2em' => 'Grande', - '1.3em' => 'Très grande' + '.8em' => 'Très petite (80%)', + '.9em' => 'Petite (90%)', + '1em' => 'Normale (100%)', + '1.1em' => 'Moyenne (110%)', + '1.2em' => 'Grande (120%)', + '1.3em' => 'Très grande (130%)' ]; public static $menuHeights = [ '5px 10px' => 'Très petite', @@ -178,11 +178,11 @@ class theme extends common { '1px 1px 50px' => 'Très importante' ]; public static $siteFontSizes = [ - '12px' => '12', - '13px' => '13', - '14px' => '14', - '15px' => '15', - '16px' => '16' + '12px' => '12 pixels', + '13px' => '13 pixels', + '14px' => '14 pixels', + '15px' => '15 pixels', + '16px' => '16 pixels' ]; public static $sizes = [ 'auto' => 'Automatique', diff --git a/core/module/theme/view/body/body.php b/core/module/theme/view/body/body.php index 375d99cc..5126965e 100755 --- a/core/module/theme/view/body/body.php +++ b/core/module/theme/view/body/body.php @@ -18,6 +18,7 @@

Couleur

'colorPicker', + 'help' => 'Le curseur horizontal règle le niveau de transparence', 'label' => 'Fond', 'value' => $this->getData(['theme', 'body', 'backgroundColor']) ]); ?> diff --git a/core/module/theme/view/footer/footer.php b/core/module/theme/view/footer/footer.php index 1128d190..a2779360 100755 --- a/core/module/theme/view/footer/footer.php +++ b/core/module/theme/view/footer/footer.php @@ -79,6 +79,7 @@
'Taille', + 'help' => 'Proportionnelle à celle définie dans le site', 'selected' => $this->getData(['theme', 'footer', 'fontSize']) ]); ?>
diff --git a/core/module/theme/view/header/header.php b/core/module/theme/view/header/header.php index 18aa600d..2b393f9a 100755 --- a/core/module/theme/view/header/header.php +++ b/core/module/theme/view/header/header.php @@ -20,6 +20,7 @@
'colorPicker', + 'help' => 'Le curseur horizontal règle le niveau de transparence', 'label' => 'Fond', 'value' => $this->getData(['theme', 'header', 'backgroundColor']) ]); ?> @@ -27,6 +28,7 @@
'colorPicker', + 'help' => 'Le curseur horizontal règle le niveau de transparence', 'label' => 'Texte', 'value' => $this->getData(['theme', 'header', 'textColor']) ]); ?> @@ -96,6 +98,7 @@
'Taille', + 'help' => 'Proportionnelle à celle définie dans le site', 'selected' => $this->getData(['theme', 'header', 'fontSize']) ]); ?>
@@ -104,8 +107,7 @@ 'label' => 'Police', 'selected' => $this->getData(['theme', 'header', 'font']) ]); ?> -
- +
diff --git a/core/module/theme/view/menu/menu.php b/core/module/theme/view/menu/menu.php index 46566b94..6bdea033 100755 --- a/core/module/theme/view/menu/menu.php +++ b/core/module/theme/view/menu/menu.php @@ -20,6 +20,7 @@
'colorPicker', + 'help' => 'Le curseur horizontal règle le niveau de transparence', 'label' => 'Fond', 'value' => $this->getData(['theme', 'menu', 'backgroundColor']) ]); ?> @@ -27,6 +28,7 @@
'colorPicker', + 'help' => 'Le curseur horizontal règle le niveau de transparence', 'label' => 'Texte', 'value' => $this->getData(['theme', 'menu', 'textColor']) ]); ?> @@ -35,37 +37,47 @@
+
+

Contenu

+ $this->getData(['theme', 'menu', 'loginLink']), + 'help' => 'Visible seulement sur cette page et lorsque vous n\'êtes pas connecté (non recommandé).' + ]); ?> +
+
+
+

Mise en forme du texte

-
+
'Caractères', 'selected' => $this->getData(['theme', 'menu', 'textTransform']) ]); ?>
-
+
'Style', 'selected' => $this->getData(['theme', 'menu', 'fontWeight']) ]); ?>
-
-
-
+
'Police', 'selected' => $this->getData(['theme', 'menu', 'font']) ]); ?>
-
+
'Taille', + 'help' => 'Proportionnelle à celle définie dans le site', 'selected' => $this->getData(['theme', 'menu', 'fontSize']) ]); ?>
-
+
+
@@ -114,15 +126,4 @@
-
-
-
-

Contenu

- $this->getData(['theme', 'menu', 'loginLink']), - 'help' => 'Visible seulement sur cette page et lorsque vous n\'êtes pas connecté.' - ]); ?> -
-
-
\ No newline at end of file diff --git a/core/module/theme/view/site/site.php b/core/module/theme/view/site/site.php index cf3fcf93..477694ab 100755 --- a/core/module/theme/view/site/site.php +++ b/core/module/theme/view/site/site.php @@ -20,6 +20,7 @@
'colorPicker', + 'help' => 'Le curseur horizontal règle le niveau de transparence', 'label' => 'Fond', 'value' => $this->getData(['theme', 'site', 'backgroundColor']) ]); ?> @@ -27,6 +28,7 @@
'colorPicker', + 'help' => 'Le curseur horizontal règle le niveau de transparence', 'label' => 'Texte', 'value' => $this->getData(['theme', 'text', 'textColor']) ]); ?> @@ -34,6 +36,7 @@
'colorPicker', + 'help' => 'Le curseur horizontal règle le niveau de transparence', 'label' => 'Titres', 'value' => $this->getData(['theme', 'title', 'textColor']) ]); ?> @@ -43,6 +46,7 @@
'colorPicker', + 'help' => 'Le curseur horizontal règle le niveau de transparence', 'label' => 'Boutons', 'value' => $this->getData(['theme', 'button', 'backgroundColor']) ]); ?> @@ -50,6 +54,7 @@
'colorPicker', + 'help' => 'Le curseur horizontal règle le niveau de transparence', 'label' => 'Liens', 'value' => $this->getData(['theme', 'link', 'textColor']) ]); ?> @@ -92,7 +97,8 @@
'Taille', + 'label' => 'Taille du site', + 'help' => 'Correspond au libellé de taille \'Normale\' du menu, de la bannière et du pied de page', 'selected' => $this->getData(['theme', 'text', 'fontSize']) ]); ?>
From 8dcfb23b5abfcc75bb554d98fa15698392ca9afa Mon Sep 17 00:00:00 2001 From: fredtempez Date: Wed, 20 Mar 2019 20:05:03 +0100 Subject: [PATCH 3/3] [9.0.08] theme : order in form field, new option, new help --- core/core.php | 4 +- core/module/theme/theme.php | 8 +- core/module/theme/view/footer/footer.js.php | 3 +- core/module/theme/view/footer/footer.php | 29 +++---- core/module/theme/view/header/header.php | 28 +++--- core/module/theme/view/menu/menu.php | 35 ++++---- core/module/theme/view/site/site.php | 94 ++++++++++----------- core/vendor/tinymce/link_list.json | 2 +- 8 files changed, 101 insertions(+), 102 deletions(-) diff --git a/core/core.php b/core/core.php index dff94b13..636db5f2 100644 --- a/core/core.php +++ b/core/core.php @@ -2117,7 +2117,7 @@ class layout extends common { */ public function showCopyright() { $items = '
'; - $items .= 'Motorisé par Zwii'; + $items .= 'Motorisé par Zwii'; $items .= ' | Plan du site'; if( ( @@ -2146,7 +2146,7 @@ class layout extends common { */ public function showFooterText() { if($footerText = $this->getData(['theme', 'footer', 'text']) OR $this->getUrl(0) === 'theme') { - echo '
' . nl2br($footerText) . '
'; + echo '
' . nl2br($footerText) . '
'; } } diff --git a/core/module/theme/theme.php b/core/module/theme/theme.php index eeb59a6c..c7696df5 100755 --- a/core/module/theme/theme.php +++ b/core/module/theme/theme.php @@ -74,7 +74,7 @@ class theme extends common { 'right' => 'Bloc Droite' ]; public static $fontWeights = [ - 'normal' => 'Normal', + 'normal' => 'Standard', 'bold' => 'Gras' ]; public static $footerHeights = [ @@ -189,8 +189,10 @@ class theme extends common { 'cover' => 'Largeur adaptée au fond' ]; public static $textTransforms = [ - 'none' => 'Normaux', - 'uppercase' => 'Majuscules' + 'none' => 'Standard', + 'lowercase' => 'Minuscules', + 'uppercase' => 'Majuscules', + 'capitalize' => 'Majuscule à chaque mot' ]; public static $widths = [ '750px' => 'Petite (750 pixels)', diff --git a/core/module/theme/view/footer/footer.js.php b/core/module/theme/view/footer/footer.js.php index 93dfefec..8f13fe2b 100755 --- a/core/module/theme/view/footer/footer.js.php +++ b/core/module/theme/view/footer/footer.js.php @@ -47,7 +47,7 @@ $("input, select").on("change", function() { .attr("type", "text/css") .attr("id", "themePreview") .text(css) - .appendTo("head"); + .appendTo("footer"); // Position du pied de page switch($("#themeFooterPosition").val()) { case 'hide': @@ -95,7 +95,6 @@ $("#themeFooterForm").on("change",function() { $("#footerSocials").show().appendTo("#footersiteCenter"); break; case 'right': - console.log("right"); $("#footerSocials").show().appendTo("#footerbodyRight"); $("#footerSocials").show().appendTo("#footersiteRight"); break; diff --git a/core/module/theme/view/footer/footer.php b/core/module/theme/view/footer/footer.php index a2779360..c4726904 100755 --- a/core/module/theme/view/footer/footer.php +++ b/core/module/theme/view/footer/footer.php @@ -64,16 +64,10 @@

Mise en forme du texte

-
- 'Caractères', - 'selected' => $this->getData(['theme', 'footer', 'textTransform']) - ]); ?> -
-
- 'Style', - 'selected' => $this->getData(['theme', 'footer', 'fontWeight']) +
+ 'Police', + 'selected' => $this->getData(['theme', 'footer', 'font']) ]); ?>
@@ -84,12 +78,17 @@ ]); ?>
- 'Police', - 'selected' => $this->getData(['theme', 'footer', 'font']) + 'Style', + 'selected' => $this->getData(['theme', 'footer', 'fontWeight']) ]); ?> -
- +
+
+ 'Casse', + 'selected' => $this->getData(['theme', 'footer', 'textTransform']) + ]); ?> +
diff --git a/core/module/theme/view/header/header.php b/core/module/theme/view/header/header.php index 2b393f9a..3ea3f5db 100755 --- a/core/module/theme/view/header/header.php +++ b/core/module/theme/view/header/header.php @@ -83,16 +83,10 @@

Mise en forme du texte

-
- 'Caractères', - 'selected' => $this->getData(['theme', 'header', 'textTransform']) - ]); ?> -
-
- 'Style', - 'selected' => $this->getData(['theme', 'header', 'fontWeight']) +
+ 'Police', + 'selected' => $this->getData(['theme', 'header', 'font']) ]); ?>
@@ -103,11 +97,17 @@ ]); ?>
- 'Police', - 'selected' => $this->getData(['theme', 'header', 'font']) + 'Style', + 'selected' => $this->getData(['theme', 'header', 'fontWeight']) ]); ?> -
+
+
+ 'Casse', + 'selected' => $this->getData(['theme', 'header', 'textTransform']) + ]); ?> +
diff --git a/core/module/theme/view/menu/menu.php b/core/module/theme/view/menu/menu.php index 6bdea033..2184b297 100755 --- a/core/module/theme/view/menu/menu.php +++ b/core/module/theme/view/menu/menu.php @@ -50,32 +50,31 @@

Mise en forme du texte

+
+ 'Police', + 'selected' => $this->getData(['theme', 'menu', 'font']) + ]); ?> +
- 'Caractères', - 'selected' => $this->getData(['theme', 'menu', 'textTransform']) - ]); ?> + 'Taille', + 'help' => 'Proportionnelle à celle définie dans le site', + 'selected' => $this->getData(['theme', 'menu', 'fontSize']) + ]); ?>
'Style', 'selected' => $this->getData(['theme', 'menu', 'fontWeight']) ]); ?> -
+
- 'Police', - 'selected' => $this->getData(['theme', 'menu', 'font']) - ]); ?> -
-
- 'Taille', - 'help' => 'Proportionnelle à celle définie dans le site', - 'selected' => $this->getData(['theme', 'menu', 'fontSize']) - ]); ?> -
-
+ 'Casse', + 'selected' => $this->getData(['theme', 'menu', 'textTransform']) + ]); ?> +
diff --git a/core/module/theme/view/site/site.php b/core/module/theme/view/site/site.php index 477694ab..083199c4 100755 --- a/core/module/theme/view/site/site.php +++ b/core/module/theme/view/site/site.php @@ -63,6 +63,53 @@
+
+
+
+

Mise en forme du texte

+
+
+ 'Police', + 'selected' => $this->getData(['theme', 'text', 'font']) + ]); ?> +
+
+ 'Taille', + 'help' => 'Hauteur de référence pour la bannière, le menu et le pied de page', + 'selected' => $this->getData(['theme', 'text', 'fontSize']) + ]); ?> +
+
+
+
+
+
+

Mise en forme des titres

+
+
+ 'Police', + 'selected' => $this->getData(['theme', 'title', 'font']) + ]); ?> +
+
+ 'Style', + 'selected' => $this->getData(['theme', 'title', 'fontWeight']) + ]); ?> +
+
+ 'Casse', + 'selected' => $this->getData(['theme', 'title', 'textTransform']) + ]); ?> +
+
+
+
+
@@ -90,51 +137,4 @@
-
-
-
-

Mise en forme du texte

-
-
- 'Taille du site', - 'help' => 'Correspond au libellé de taille \'Normale\' du menu, de la bannière et du pied de page', - 'selected' => $this->getData(['theme', 'text', 'fontSize']) - ]); ?> -
-
- 'Police', - 'selected' => $this->getData(['theme', 'text', 'font']) - ]); ?> -
-
-
-
-
-
-

Mise en forme des titres

-
-
- 'Caractères', - 'selected' => $this->getData(['theme', 'title', 'textTransform']) - ]); ?> -
-
- 'Style', - 'selected' => $this->getData(['theme', 'title', 'fontWeight']) - ]); ?> -
-
- 'Police', - 'selected' => $this->getData(['theme', 'title', 'font']) - ]); ?> -
-
-
-
-
\ No newline at end of file diff --git a/core/vendor/tinymce/link_list.json b/core/vendor/tinymce/link_list.json index 572c1e6a..d9305ccd 100644 --- a/core/vendor/tinymce/link_list.json +++ b/core/vendor/tinymce/link_list.json @@ -1 +1 @@ -[{"title":"Accueil","value":"?accueil","menu":[{"title":"Enfant","value":"?enfant"},{"title":"Mise en page","value":"?mise-en-page"}]},{"title":"Priv\u00e9e","value":"?privee"},{"title":"Blog","value":"?blog"},{"title":"Galeries","value":"?galeries"},{"title":"Site de Zwii","value":"?site-de-zwii"},{"title":"Contact","value":"?contact"}] \ No newline at end of file +[{"title":"blockLeft","value":"?blockLeft"},{"title":"blockRight","value":"?blockRight"},{"title":"Accueil","value":"?accueil","menu":[{"title":"Enfant","value":"?enfant"},{"title":"Mise en page","value":"?mise_en_page"}]},{"title":"Cach\u00e9e","value":"?cachee"},{"title":"Blog","value":"?blog"},{"title":"Galeries","value":"?galeries"},{"title":"Code","value":"?code"},{"title":"Contact","value":"?contact"}] \ No newline at end of file