forked from ZwiiCMS-Team/ZwiiCMS
Merge branch 'master' into dev10
This commit is contained in:
commit
e5a128bdb5
@ -22,8 +22,9 @@
|
|||||||
- Chargement paresseux des images.
|
- Chargement paresseux des images.
|
||||||
|
|
||||||
## version 9.2.24
|
## version 9.2.24
|
||||||
- Correction :
|
- Corrections :
|
||||||
- Mauvaise configuration de SimpleLightBox
|
- Mauvaise configuration de SimpleLightBox
|
||||||
|
- Thème : marges du menu en position en-dehors du site
|
||||||
|
|
||||||
## version 9.2.23
|
## version 9.2.23
|
||||||
- Nouveautés :
|
- Nouveautés :
|
||||||
|
@ -1262,6 +1262,11 @@ class core extends common {
|
|||||||
} else {
|
} else {
|
||||||
$css .= 'nav{margin:0}';
|
$css .= 'nav{margin:0}';
|
||||||
}
|
}
|
||||||
|
if(
|
||||||
|
$this->getData(['theme', 'menu', 'position']) === 'top'
|
||||||
|
) {
|
||||||
|
$css .= 'nav{padding:0 10px;}';
|
||||||
|
}
|
||||||
|
|
||||||
$css .= '#toggle span,#menu a{padding:' . $this->getData(['theme', 'menu', 'height']) .';font-family:"' . str_replace('+', ' ', $this->getData(['theme', 'menu', 'font'])) . '",sans-serif;font-weight:' . $this->getData(['theme', 'menu', 'fontWeight']) . ';font-size:' . $this->getData(['theme', 'menu', 'fontSize']) . ';text-transform:' . $this->getData(['theme', 'menu', 'textTransform']) . '}';
|
$css .= '#toggle span,#menu a{padding:' . $this->getData(['theme', 'menu', 'height']) .';font-family:"' . str_replace('+', ' ', $this->getData(['theme', 'menu', 'font'])) . '",sans-serif;font-weight:' . $this->getData(['theme', 'menu', 'fontWeight']) . ';font-size:' . $this->getData(['theme', 'menu', 'fontSize']) . ';text-transform:' . $this->getData(['theme', 'menu', 'textTransform']) . '}';
|
||||||
// Pied de page
|
// Pied de page
|
||||||
|
@ -59,7 +59,7 @@ $("input, select").on("change", function() {
|
|||||||
if($("#themeMenuMargin").is(":checked")) {
|
if($("#themeMenuMargin").is(":checked")) {
|
||||||
if(
|
if(
|
||||||
<?php echo json_encode($this->getData(['theme', 'menu', 'position']) === 'site-first'); ?>
|
<?php echo json_encode($this->getData(['theme', 'menu', 'position']) === 'site-first'); ?>
|
||||||
|| <?php echo json_encode($this->getData(['theme', 'header', 'position']) === 'body'); ?>
|
|| <?php echo json_encode($this->getData(['theme', 'menu', 'position']) === 'site-second'); ?>
|
||||||
) {
|
) {
|
||||||
css += 'nav{padding: 10px 10px 0 10px}';
|
css += 'nav{padding: 10px 10px 0 10px}';
|
||||||
}
|
}
|
||||||
@ -70,6 +70,12 @@ $("input, select").on("change", function() {
|
|||||||
else {
|
else {
|
||||||
css += 'nav{margin:0;}';
|
css += 'nav{margin:0;}';
|
||||||
}
|
}
|
||||||
|
if(
|
||||||
|
<?php echo json_encode($this->getData(['theme', 'menu', 'position']) === 'top'); ?>
|
||||||
|
) {
|
||||||
|
css += 'nav{padding:0 10px;}';
|
||||||
|
}
|
||||||
|
|
||||||
// Ajout du css au DOM
|
// Ajout du css au DOM
|
||||||
$("#themePreview").remove();
|
$("#themePreview").remove();
|
||||||
$("<style>")
|
$("<style>")
|
||||||
|
Loading…
Reference in New Issue
Block a user