[9.2.10] Changes + gestion des marges dans le footer

This commit is contained in:
Fred Tempez 2019-11-12 13:24:37 +01:00
parent 36ccffe074
commit 4523fa5837
5 changed files with 20 additions and 14 deletions

View File

@ -7,6 +7,7 @@
- Modifications :
- Thème, bannière : nouvelle option de hauteur calculée à partir de la dimension de l'image sélectionnée.
- Thème, bannière : informations sur l'image sélectionnée (largeur et hauteur).
- Thème, pied de page : réactivation de l'aperçu.
- Corrections :
- Thème, bannière : problème empêchant la bannière d'être cliquable lorsque la hauteur "responsive" de la bannière était sélectionnée.
- Mise à jour :
@ -15,7 +16,7 @@
## version 9.2.09
- Corrections :
- Module Formulaire, erreur lors de l'envoi d'un premier formulaire
- Thème Footer , désactivation de l'aperçu du texte personnalisé
- Thème Pied de page , désactivation de l'aperçu du texte personnalisé
## Version 9.2.08
- Correction :

View File

@ -1153,7 +1153,7 @@ class core extends common {
// Pied de page
$colors = helper::colorVariants($this->getData(['theme', 'footer', 'backgroundColor']));
if($this->getData(['theme', 'footer', 'margin'])) {
$css .= 'footer{margin:0 10px 10px;padding: 0px 10px;}';
$css .= 'footer{margin: 10px;padding: 10px;}';
} else {
$css .= 'footer{margin:0;padding:0}';
}
@ -1161,12 +1161,6 @@ class core extends common {
$css .= 'footer{background-color:' . $colors['normal'] . ';color:' . $this->getData(['theme', 'footer', 'textColor']) . '}';
$css .= 'footer a{color:' . $this->getData(['theme', 'footer', 'textColor']) . '}';
$css .= 'footer #footersite > div {margin:' . $this->getData(['theme', 'footer', 'height']) . ' 0}';
$css .= 'footer #footerbody > div {margin:' . $this->getData(['theme', 'footer', 'height']) . ' 0}';
$css .= "footer #footersite > div {padding:0}";
$css .= "footer #footerbody > div {padding:0}";
$css .= '#footerFontText > p {margin-top: 0; margin-bottom: 0;}';
//$css .= '#footersiteLeft, #footersiteCenter, #footersiteRight {padding:' . $this->getData(['theme', 'footer', 'height']) . ' 0}';
//$css .= '#footerbodyLeft, #footerbodyCenter, #footerbodyRight {padding:' . $this->getData(['theme', 'footer', 'height']) . ' 0}';
$css .= '#footerSocials{text-align:' . $this->getData(['theme', 'footer', 'socialsAlign']) . '}';
$css .= '#footerText{text-align:' . $this->getData(['theme', 'footer', 'textAlign']) . '}';
$css .= '#footerCopyright{text-align:' . $this->getData(['theme', 'footer', 'copyrightAlign']) . '}';

View File

@ -589,6 +589,20 @@ footer {
padding: 0;
}
footer #footerbody > div {
margin: 0
}
footer #footersite > div {
padding:0
}
footer #footerbody > div {
padding:0
}
#footerFontText > p {
margin-top: 0;
margin-bottom: 0;
}
#footerLoginLink,
#footerDisplayCopyright,
#footerDisplayVersion,

View File

@ -26,10 +26,7 @@ $("input, select").on("change", function() {
css += "footer a{color:" + textColor + "}";
// Hauteur du pied de page
//css += "#footersiteLeft, #footersiteCenter, #footersiteRight, #footerbodyLeft, #footerbodyCenter, #footerbodyRight {margin:" + $("#themeFooterHeight").val() + " 0}";
css += "footer #footersite > div{padding:0}";
css += "footer #footersite > div{margin:" + $("#themeFooterHeight").val() + " 0}";
css += "footer #footerbody > div{margin:" + $("#themeFooterHeight").val() + " 0}";
css += "footer #footerbody > div{padding:0}";
// Alignement du contenu
css += "#footerSocials{text-align:" + $("#themeFooterSocialsAlign").val() + "}";
css += "#footerText{text-align:" + $("#themeFooterTextAlign").val() + "}";
@ -38,7 +35,7 @@ $("input, select").on("change", function() {
css += "footer span{color:" + $("#themeFooterTextColor").val() + ";font-family:'" + footerFont.replace(/\+/g, " ") + "',sans-serif;font-weight:" + $("#themeFooterFontWeight").val() + ";font-size:" + $("#themeFooterFontSize").val() + ";text-transform:" + $("#themeFooterTextTransform").val() + "}";
// Marge
if($("#themeFooterMargin").is(":checked")) {
css += 'footer{margin:0 10px 10px;padding: 0px 10px;}';
css += 'footer{margin: 10px;padding: 10px;}';
}
else {
css += 'footer{margin:0;padding:0}';

View File

@ -190,7 +190,7 @@
</div>
<div class="col6">
<div id="themeFooterPositionOptions">
<?php echo template::checkbox('themeFooterMargin', true, 'Appliquer une marge à gauche et à droite', [
<?php echo template::checkbox('themeFooterMargin', true, 'Alignement sur les marges', [
'checked' => $this->getData(['theme', 'footer', 'margin'])
]); ?>
</div>