From 8ecaeaf4e7259f4b61062d7b33acc6a71f957c90 Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Fri, 14 Apr 2023 17:05:46 +0200 Subject: [PATCH] Them footer WIP --- core/module/install/ressource/i18n/en_EN.json | 4 +- core/module/install/ressource/i18n/es.json | 2 +- core/module/install/ressource/i18n/fr_FR.json | 2 +- core/module/theme/theme.php | 2 +- core/module/theme/view/footer/footer.js.php | 111 +++++++++++++++++- core/module/theme/view/footer/footer.php | 4 +- core/module/theme/view/site/site.js.php | 4 +- 7 files changed, 119 insertions(+), 10 deletions(-) diff --git a/core/module/install/ressource/i18n/en_EN.json b/core/module/install/ressource/i18n/en_EN.json index ba68743c..9a5862bd 100644 --- a/core/module/install/ressource/i18n/en_EN.json +++ b/core/module/install/ressource/i18n/en_EN.json @@ -63,7 +63,7 @@ "Arrière plan des champs": "Fields background", "Arrondi des angles": "Rounding of angles", "Au centre": "Center", - "Au dessus du site": "Above the site", + "Au-dessus du site": "Above the site", "Au début": "At first", "Au milieu au centre": "In the middle in the center", "Au milieu à droite": "In the middle right", @@ -161,7 +161,7 @@ "Couleur visible en l'absence d'une image.
Le curseur horizontal règle le niveau de transparence. La couleur du texte est automatique.": "Visible color in the absence of an image.
The horizontal cursor regulates the level of transparency. The color of the text is automatic.", "Couleurs": "Colors", "Créez un compte gratuit, recopier la clé , puis valider le formulaire avant de cliquer sur le bouton de génération": "Create a free account, copy the key, then validate the form before clicking the generation button", - "Dans le site": "In the site", + "Dans le site": "Into the site", "Dans quelle langue utiliserez-vous Zwii ?": "In which language will you use Zwii?", "Date": "Date", "Description": "Site description", diff --git a/core/module/install/ressource/i18n/es.json b/core/module/install/ressource/i18n/es.json index a4a0994c..de0dc7b5 100644 --- a/core/module/install/ressource/i18n/es.json +++ b/core/module/install/ressource/i18n/es.json @@ -63,7 +63,7 @@ "Arrière plan des champs": "Fondo de zona", "Arrondi des angles": "Redondeo de ángulos", "Au centre": "En el centro", - "Au dessus du site": "Por encima del sitio", + "Au-dessus du site": "Por encima del sitio", "Au début": "Al principio", "Au milieu au centre": "En el medio en el centro", "Au milieu à droite": "En el medio derecho", diff --git a/core/module/install/ressource/i18n/fr_FR.json b/core/module/install/ressource/i18n/fr_FR.json index 7b982dcc..180467b0 100644 --- a/core/module/install/ressource/i18n/fr_FR.json +++ b/core/module/install/ressource/i18n/fr_FR.json @@ -63,7 +63,7 @@ "Arrière plan des champs": "", "Arrondi des angles": "", "Au centre": "", - "Au dessus du site": "", + "Au-dessus du site": "", "Au début": "", "Au milieu au centre": "", "Au milieu à droite": "", diff --git a/core/module/theme/theme.php b/core/module/theme/theme.php index eef34e94..af0c60ac 100644 --- a/core/module/theme/theme.php +++ b/core/module/theme/theme.php @@ -113,7 +113,7 @@ class theme extends common '400px' => '400px', ]; public static $headerPositions = [ - 'body' => 'Au dessus du site', + 'body' => 'Au-dessus du site', 'site' => 'Dans le site', 'hide' => 'Cachée' ]; diff --git a/core/module/theme/view/footer/footer.js.php b/core/module/theme/view/footer/footer.js.php index 4d61347a..f2a49026 100644 --- a/core/module/theme/view/footer/footer.js.php +++ b/core/module/theme/view/footer/footer.js.php @@ -11,4 +11,113 @@ * @copyright Copyright (C) 2018-2023, Frédéric Tempez * @link http://zwiicms.fr/ */ -$("input, select").on("change",(function(){var footerFont=$("#themeFooterFont :selected").val(),footerFontText=$("#themeFooterFont :selected").text(),css="@import url('https://fonts.cdnfonts.com/css/"+footerFont+"');",colors=core.colorVariants($("#themeFooterBackgroundColor").val()),textColor=$("#themeFooterTextColor").val(),css="footer {background-color:"+colors.normal+";color:"+textColor+"}";switch(css+="footer a{color:"+textColor+"}",css+=".editorWysiwyg{background-color:"+colors.normal+" !important; color:"+textColor+" !important;}",css+="footer #footersite > div{margin:"+$("#themeFooterHeight").val()+" 0}",css+="footer #footerbody > div{margin:"+$("#themeFooterHeight").val()+" 0}",css+="#footerSocials{text-align:"+$("#themeFooterSocialsAlign").val()+"}",css+="#footerText > p {text-align:"+$("#themeFooterTextAlign").val()+"}",css+="#footerCopyright{text-align:"+$("#themeFooterCopyrightAlign").val()+"}",css+="footer span, #footerText > p {color:"+$("#themeFooterTextColor").val()+";font-family:'"+footerFontText+"',sans-serif;font-weight:"+$("#themeFooterFontWeight").val()+";font-size:"+$("#themeFooterFontSize").val()+";text-transform:"+$("#themeFooterTextTransform").val()+"}",$("#themeFooterMargin").is(":checked")?css+="footer{padding: 0 20px;}":css+="footer{padding:0}",$("#themePreview").remove(),$("