Browse Source

[9.0.01] hauteur du footer hors site

pull/5/head
fredtempez 3 years ago
parent
commit
99fa0b0b91
  1. 1
      core/core.php
  2. 8
      core/module/theme/theme.php
  3. 4
      core/module/theme/view/footer/footer.js.php

1
core/core.php

@ -1266,6 +1266,7 @@ 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 .container > div{margin:' . $this->getData(['theme', 'footer', 'height']) . ' 0}';
$css .= 'footer .container-large > div{margin:' . $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']) . '}';

8
core/module/theme/theme.php

@ -79,10 +79,10 @@ class theme extends common {
];
public static $footerHeights = [
'0px' => 'Très petite',
'5px' => 'Petite',
'10px' => 'Moyenne',
'15px' => 'Grande',
'20px' => 'Très grande'
'10px' => 'Petite',
'20px' => 'Moyenne',
'35px' => 'Grande',
'40px' => 'Très grande'
];
public static $footerPositions = [
'hide' => 'Cachée',

4
core/module/theme/view/footer/footer.js.php

@ -22,9 +22,9 @@ $("input, select").on("change", function() {
css += "footer a{color:" + textColor + "}";
// Hauteur du pied de page
css += "footer .container > div{margin:" + $("#themeFooterHeight").val() + " 0}";
css += "footer .container > div{padding:0}";
//css += "footer .container > div{padding:0}";
css += "footer .container-large > div{margin:" + $("#themeFooterHeight").val() + " 0}";
css += "footer .container-large > div{padding:0}";
//css += "footer .container-large > div{padding:0}";
// Alignement du contenu
css += "#footerSocials{text-align:" + $("#themeFooterSocialsAlign").val() + "}";
css += "#footerText{text-align:" + $("#themeFooterTextAlign").val() + "}";

Loading…
Cancel
Save