[9.2.01] Marges du pied de page

This commit is contained in:
fredtempez 2019-07-15 11:54:04 +02:00
parent 928a77ec7c
commit 4538c3dec5
6 changed files with 29 additions and 14 deletions

View File

@ -1,5 +1,12 @@
# Changelog # Changelog
## Version 9.2.1
- Corrections :
- Thème : prise en compte du fichier custom.css
- Edition de page : libellés
- Marges du pied de page placé hors du site
## Version 9.2.0 ## Version 9.2.0
- Nouveautés : - Nouveautés :
- Module de recherche dans le pied de page - Module de recherche dans le pied de page

View File

@ -1100,7 +1100,7 @@ class core extends common {
// Pied de page // Pied de page
$colors = helper::colorVariants($this->getData(['theme', 'footer', 'backgroundColor'])); $colors = helper::colorVariants($this->getData(['theme', 'footer', 'backgroundColor']));
if($this->getData(['theme', 'footer', 'margin'])) { if($this->getData(['theme', 'footer', 'margin'])) {
$css .= 'footer{margin:0 10px 10px;padding: 1px 10px;}'; $css .= 'footer{margin:0 10px 10px;padding: 0px 10px;}';
} else { } else {
$css .= 'footer{margin:0;padding:0}'; $css .= 'footer{margin:0;padding:0}';
} }

View File

@ -568,16 +568,21 @@ section:after {
body > footer { body > footer {
margin: 0 -10px; margin: 0 -10px;
} }
/*
footer { footer {
padding: 1px 20px; padding: 1px 20px;
} }
*/
#footersiteRight, #footersiteLeft, #footersiteCenter { #footerbody, #footersite {
vertical-align: middle; margin: 0;
} }
#footersite { #footersiteRight, #footersiteLeft, #footersiteCenter,
margin: 0; #footerbodyRight, #footerbodyLeft, #footerbodyCenter {
vertical-align: middle;
padding: 0;
} }
#footerLoginLink, #footerLoginLink,
@ -590,8 +595,6 @@ footer {
font-size: inherit; font-size: inherit;
} }
/* Conserve le pied de page sur une ligne */ /* Conserve le pied de page sur une ligne */
@media (max-width: 768px) { @media (max-width: 768px) {
body > footer { body > footer {

View File

@ -219,8 +219,10 @@
<?php <?php
if ($position === 'site'): ?> if ($position === 'site'): ?>
<div class="container"> <div class="container">
<div class="row" id="footersite">
<?php else: ?> <?php else: ?>
<div class="container-large"> <div class="container-large">
<div class="row" id="footerbody">
<?php endif?> <?php endif?>
<!-- Mise en page --> <!-- Mise en page -->
<?php switch($this->getData(['theme', 'footer', 'template'])) { <?php switch($this->getData(['theme', 'footer', 'template'])) {
@ -245,7 +247,6 @@
$class['right'] = "col12"; $class['right'] = "col12";
break; break;
}?> }?>
<div class="row" id="footersite">
<div class="<?php echo $class['left'];?>" id="footer<?php echo $position;?>Left"> <div class="<?php echo $class['left'];?>" id="footer<?php echo $position;?>Left">
<?php if($this->getData(['theme', 'footer', 'textPosition']) === 'left') { $layout->showFooterText(); } <?php if($this->getData(['theme', 'footer', 'textPosition']) === 'left') { $layout->showFooterText(); }
if($this->getData(['theme', 'footer', 'socialsPosition']) === 'left') { $layout->showSocials(); } if($this->getData(['theme', 'footer', 'socialsPosition']) === 'left') { $layout->showSocials(); }

View File

@ -92,10 +92,10 @@ class theme extends common {
'bold' => 'Gras' 'bold' => 'Gras'
]; ];
public static $footerHeights = [ public static $footerHeights = [
'0' => 'Très petites', '0px' => 'Nulles',
'10px' => 'Petites', '5px' => 'Petites',
'20px' => 'Grandes', '10px' => 'Moyennes',
'30px' => 'Très grandes' '20px' => 'Grandes'
]; ];
public static $footerPositions = [ public static $footerPositions = [
'hide' => 'Caché', 'hide' => 'Caché',

View File

@ -37,7 +37,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() + "}"; 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 // Marge
if($("#themeFooterMargin").is(":checked")) { if($("#themeFooterMargin").is(":checked")) {
css += 'footer{margin:0 10px 10px;padding: 1px 10px;}'; css += 'footer{margin:0 10px 10px;padding: 0px 10px;}';
} }
else { else {
css += 'footer{margin:0;padding:0}'; css += 'footer{margin:0;padding:0}';
@ -76,6 +76,10 @@ $("input, select").on("change", function() {
// Bloc texte personnalisé // Bloc texte personnalisé
$(".themeFooterContent").on("change",function() { $(".themeFooterContent").on("change",function() {
var position = $("#themeFooterPosition").val(); var position = $("#themeFooterPosition").val();
//console.log("text : "+ $("#themeFooterTextPosition").val());
//console.log("socials : " + $("#themeFooterSocialsPosition").val());
//console.log("copyright: " + $("#themeFooterCopyrightPosition").val());
switch($("#themeFooterTextPosition").val()) { switch($("#themeFooterTextPosition").val()) {
case "hide": case "hide":
$("#footerText").hide(); $("#footerText").hide();
@ -143,7 +147,7 @@ $("#themeFooterTemplate").on("change",function() {
$("#footerCopyright").hide(); $("#footerCopyright").hide();
$("#footerText").hide(); $("#footerText").hide();
$("#footerSocials").hide(); $("#footerSocials").hide();
// Dimension des blocks // Dimension des blocs
switch($("#themeFooterTemplate").val()) { switch($("#themeFooterTemplate").val()) {
case "1": case "1":
$("#footer" + position + "Left").css("display","none"); $("#footer" + position + "Left").css("display","none");