[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
## 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
- Nouveautés :
- Module de recherche dans le pied de page

View File

@ -1100,7 +1100,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: 1px 10px;}';
$css .= 'footer{margin:0 10px 10px;padding: 0px 10px;}';
} else {
$css .= 'footer{margin:0;padding:0}';
}

View File

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

View File

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

View File

@ -92,10 +92,10 @@ class theme extends common {
'bold' => 'Gras'
];
public static $footerHeights = [
'0' => 'Très petites',
'10px' => 'Petites',
'20px' => 'Grandes',
'30px' => 'Très grandes'
'0px' => 'Nulles',
'5px' => 'Petites',
'10px' => 'Moyennes',
'20px' => 'Grandes'
];
public static $footerPositions = [
'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() + "}";
// Marge
if($("#themeFooterMargin").is(":checked")) {
css += 'footer{margin:0 10px 10px;padding: 1px 10px;}';
css += 'footer{margin:0 10px 10px;padding: 0px 10px;}';
}
else {
css += 'footer{margin:0;padding:0}';
@ -76,6 +76,10 @@ $("input, select").on("change", function() {
// Bloc texte personnalisé
$(".themeFooterContent").on("change",function() {
var position = $("#themeFooterPosition").val();
//console.log("text : "+ $("#themeFooterTextPosition").val());
//console.log("socials : " + $("#themeFooterSocialsPosition").val());
//console.log("copyright: " + $("#themeFooterCopyrightPosition").val());
switch($("#themeFooterTextPosition").val()) {
case "hide":
$("#footerText").hide();
@ -143,7 +147,7 @@ $("#themeFooterTemplate").on("change",function() {
$("#footerCopyright").hide();
$("#footerText").hide();
$("#footerSocials").hide();
// Dimension des blocks
// Dimension des blocs
switch($("#themeFooterTemplate").val()) {
case "1":
$("#footer" + position + "Left").css("display","none");