forked from ZwiiCMS-Team/ZwiiCMS
[9.2.10] Ajustement des marges horizontales
This commit is contained in:
parent
4523fa5837
commit
0240b342c7
@ -1153,14 +1153,15 @@ 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: 10px;padding: 10px;}';
|
$css .= 'footer{padding:0 10px;}';
|
||||||
} else {
|
} else {
|
||||||
$css .= 'footer{margin:0;padding:0}';
|
$css .= 'footer{padding:0}';
|
||||||
}
|
}
|
||||||
$css .= 'footer span{color:' . $this->getData(['theme', 'footer', 'textColor']) . ';font-family:"' . str_replace('+', ' ', $this->getData(['theme', 'footer', 'font'])) . '",sans-serif;font-weight:' . $this->getData(['theme', 'footer', 'fontWeight']) . ';font-size:' . $this->getData(['theme', 'footer', 'fontSize']) . ';text-transform:' . $this->getData(['theme', 'footer', 'textTransform']) . '}';
|
$css .= 'footer span{color:' . $this->getData(['theme', 'footer', 'textColor']) . ';font-family:"' . str_replace('+', ' ', $this->getData(['theme', 'footer', 'font'])) . '",sans-serif;font-weight:' . $this->getData(['theme', 'footer', 'fontWeight']) . ';font-size:' . $this->getData(['theme', 'footer', 'fontSize']) . ';text-transform:' . $this->getData(['theme', 'footer', 'textTransform']) . '}';
|
||||||
$css .= 'footer{background-color:' . $colors['normal'] . ';color:' . $this->getData(['theme', 'footer', 'textColor']) . '}';
|
$css .= 'footer{background-color:' . $colors['normal'] . ';color:' . $this->getData(['theme', 'footer', 'textColor']) . '}';
|
||||||
$css .= 'footer a{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 #footersite > div {margin:' . $this->getData(['theme', 'footer', 'height']) . ' 0}';
|
||||||
|
$css .= 'footer #footerbody > div {margin:' . $this->getData(['theme', 'footer', 'height']) . ' 0}';
|
||||||
$css .= '#footerSocials{text-align:' . $this->getData(['theme', 'footer', 'socialsAlign']) . '}';
|
$css .= '#footerSocials{text-align:' . $this->getData(['theme', 'footer', 'socialsAlign']) . '}';
|
||||||
$css .= '#footerText{text-align:' . $this->getData(['theme', 'footer', 'textAlign']) . '}';
|
$css .= '#footerText{text-align:' . $this->getData(['theme', 'footer', 'textAlign']) . '}';
|
||||||
$css .= '#footerCopyright{text-align:' . $this->getData(['theme', 'footer', 'copyrightAlign']) . '}';
|
$css .= '#footerCopyright{text-align:' . $this->getData(['theme', 'footer', 'copyrightAlign']) . '}';
|
||||||
|
@ -92,10 +92,10 @@ class theme extends common {
|
|||||||
'bold' => 'Gras'
|
'bold' => 'Gras'
|
||||||
];
|
];
|
||||||
public static $footerHeights = [
|
public static $footerHeights = [
|
||||||
'5px' => 'Très petites',
|
'5px' => 'Très petites (5px)',
|
||||||
'10px' => 'Petites',
|
'10px' => 'Petites (10px)',
|
||||||
'15px' => 'Moyennes',
|
'15px' => 'Moyennes (15px)',
|
||||||
'20px' => 'Grandes'
|
'20px' => 'Grandes (20px)'
|
||||||
];
|
];
|
||||||
public static $footerPositions = [
|
public static $footerPositions = [
|
||||||
'hide' => 'Caché',
|
'hide' => 'Caché',
|
||||||
|
@ -27,6 +27,7 @@ $("input, select").on("change", function() {
|
|||||||
// Hauteur du pied de page
|
// Hauteur du pied de page
|
||||||
//css += "#footersiteLeft, #footersiteCenter, #footersiteRight, #footerbodyLeft, #footerbodyCenter, #footerbodyRight {margin:" + $("#themeFooterHeight").val() + " 0}";
|
//css += "#footersiteLeft, #footersiteCenter, #footersiteRight, #footerbodyLeft, #footerbodyCenter, #footerbodyRight {margin:" + $("#themeFooterHeight").val() + " 0}";
|
||||||
css += "footer #footersite > div{margin:" + $("#themeFooterHeight").val() + " 0}";
|
css += "footer #footersite > div{margin:" + $("#themeFooterHeight").val() + " 0}";
|
||||||
|
css += "footer #footerbody > div{margin:" + $("#themeFooterHeight").val() + " 0}";
|
||||||
// Alignement du contenu
|
// Alignement du contenu
|
||||||
css += "#footerSocials{text-align:" + $("#themeFooterSocialsAlign").val() + "}";
|
css += "#footerSocials{text-align:" + $("#themeFooterSocialsAlign").val() + "}";
|
||||||
css += "#footerText{text-align:" + $("#themeFooterTextAlign").val() + "}";
|
css += "#footerText{text-align:" + $("#themeFooterTextAlign").val() + "}";
|
||||||
@ -35,10 +36,10 @@ $("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: 10px;padding: 10px;}';
|
css += 'footer{padding: 0 10px;}';
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
css += 'footer{margin:0;padding:0}';
|
css += 'footer{padding:0}';
|
||||||
}
|
}
|
||||||
// Ajout du css au DOM
|
// Ajout du css au DOM
|
||||||
$("#themePreview").remove();
|
$("#themePreview").remove();
|
||||||
|
@ -190,7 +190,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="col6">
|
<div class="col6">
|
||||||
<div id="themeFooterPositionOptions">
|
<div id="themeFooterPositionOptions">
|
||||||
<?php echo template::checkbox('themeFooterMargin', true, 'Alignement sur les marges', [
|
<?php echo template::checkbox('themeFooterMargin', true, 'Alignement sur une marge horizontale', [
|
||||||
'checked' => $this->getData(['theme', 'footer', 'margin'])
|
'checked' => $this->getData(['theme', 'footer', 'margin'])
|
||||||
]); ?>
|
]); ?>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user