noms de variables + bug overflow
This commit is contained in:
parent
d9c0bc4b9b
commit
12e21a3067
@ -2257,11 +2257,10 @@ class core extends common {
|
|||||||
}
|
}
|
||||||
if ($this->getData(['theme','header','feature']) === 'feature' ) {
|
if ($this->getData(['theme','header','feature']) === 'feature' ) {
|
||||||
// Hauteur de la taille du contenu perso
|
// Hauteur de la taille du contenu perso
|
||||||
if ($this->getData(['theme', 'header', 'height']) !== 'none') {
|
$css .= 'header #featureContent{height:' . $this->getData(['theme', 'header', 'height']) . '; }';
|
||||||
$css .= 'header{height:' . $this->getData(['theme', 'header', 'height']) . ';}';
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Menu
|
// Menu
|
||||||
$colors = helper::colorVariants($this->getData(['theme', 'menu', 'backgroundColor']));
|
$colors = helper::colorVariants($this->getData(['theme', 'menu', 'backgroundColor']));
|
||||||
$css .= 'nav,nav.navMain a{background-color:' . $colors['normal'] . '}';
|
$css .= 'nav,nav.navMain a{background-color:' . $colors['normal'] . '}';
|
||||||
|
@ -69,7 +69,7 @@ class theme extends common {
|
|||||||
'Ubuntu' => 'Ubuntu',
|
'Ubuntu' => 'Ubuntu',
|
||||||
'Vollkorn' => 'Vollkorn'
|
'Vollkorn' => 'Vollkorn'
|
||||||
];
|
];
|
||||||
public static $containerWidths = [
|
public static $containerWides = [
|
||||||
'container' => 'Limitée au site',
|
'container' => 'Limitée au site',
|
||||||
'none' => 'Etendue sur la page'
|
'none' => 'Etendue sur la page'
|
||||||
];
|
];
|
||||||
@ -125,7 +125,7 @@ class theme extends common {
|
|||||||
'2.4vmax' => 'Très grande (240%)'
|
'2.4vmax' => 'Très grande (240%)'
|
||||||
];
|
];
|
||||||
public static $headerHeights = [
|
public static $headerHeights = [
|
||||||
'none' => 'Libre', // texte dynamique cf header.js.php
|
'unset' => 'Libre', // texte dynamique cf header.js.php
|
||||||
'100px' => 'Très petite (100px) ',
|
'100px' => 'Très petite (100px) ',
|
||||||
'150px' => 'Petite (150px)',
|
'150px' => 'Petite (150px)',
|
||||||
'200px' => 'Moyenne (200px)',
|
'200px' => 'Moyenne (200px)',
|
||||||
@ -443,7 +443,7 @@ class theme extends common {
|
|||||||
'fontSize' => $this->getInput('themeHeaderFontSize'),
|
'fontSize' => $this->getInput('themeHeaderFontSize'),
|
||||||
'fontWeight' => $this->getInput('themeHeaderFontWeight'),
|
'fontWeight' => $this->getInput('themeHeaderFontWeight'),
|
||||||
'height' => $this->getInput('themeHeaderHeight'),
|
'height' => $this->getInput('themeHeaderHeight'),
|
||||||
'width' => $this->getInput('themeHeaderWidth'),
|
'wide' => $this->getInput('themeHeaderWide'),
|
||||||
'image' => $this->getInput('themeHeaderImage'),
|
'image' => $this->getInput('themeHeaderImage'),
|
||||||
'imagePosition' => $this->getInput('themeHeaderImagePosition'),
|
'imagePosition' => $this->getInput('themeHeaderImagePosition'),
|
||||||
'imageRepeat' => $this->getInput('themeHeaderImageRepeat'),
|
'imageRepeat' => $this->getInput('themeHeaderImageRepeat'),
|
||||||
@ -516,7 +516,7 @@ class theme extends common {
|
|||||||
'fontSize' => $this->getInput('themeMenuFontSize'),
|
'fontSize' => $this->getInput('themeMenuFontSize'),
|
||||||
'fontWeight' => $this->getInput('themeMenuFontWeight'),
|
'fontWeight' => $this->getInput('themeMenuFontWeight'),
|
||||||
'height' => $this->getInput('themeMenuHeight'),
|
'height' => $this->getInput('themeMenuHeight'),
|
||||||
'width' => $this->getInput('themeMenuWidth'),
|
'wide' => $this->getInput('themeMenuWide'),
|
||||||
'loginLink' => $this->getInput('themeMenuLoginLink', helper::FILTER_BOOLEAN),
|
'loginLink' => $this->getInput('themeMenuLoginLink', helper::FILTER_BOOLEAN),
|
||||||
'margin' => $this->getInput('themeMenuMargin', helper::FILTER_BOOLEAN),
|
'margin' => $this->getInput('themeMenuMargin', helper::FILTER_BOOLEAN),
|
||||||
'position' => $this->getInput('themeMenuPosition'),
|
'position' => $this->getInput('themeMenuPosition'),
|
||||||
|
@ -26,12 +26,8 @@ $("input, select").on("change", function() {
|
|||||||
|
|
||||||
// Contenu perso
|
// Contenu perso
|
||||||
if ($("#themeHeaderFeature").val() == "feature") {
|
if ($("#themeHeaderFeature").val() == "feature") {
|
||||||
var headerHeight = $("#themeHeaderHeight").val();
|
|
||||||
if (headerHeight === 'none') {
|
css = "header{height:" + $("#themeHeaderHeight").val() + "; overflow:hidden;background-position:top; background-repeat: no-repeat;;line-height:1.15;background-color:unset;;background-image:unset;text-align:unset}";
|
||||||
css = "header{height:unset; background-position:top; background-repeat: no-repeat;;line-height:1.15;background-color:unset;;background-image:unset;text-align:unset}";
|
|
||||||
} else {
|
|
||||||
css = "header{height:" + $("#themeHeaderHeight").val() + "; overflow:hidden;background-position:top; background-repeat: no-repeat;;line-height:1.15;background-color:unset;;background-image:unset;text-align:unset}";
|
|
||||||
}
|
|
||||||
|
|
||||||
$("#featureContent").appendTo("header").show();
|
$("#featureContent").appendTo("header").show();
|
||||||
$("#themeHeaderTitle").hide();
|
$("#themeHeaderTitle").hide();
|
||||||
@ -175,7 +171,7 @@ $("input, select").on("change", function() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Largeur du header
|
// Largeur du header
|
||||||
switch ($("#themeHeaderWidth").val()) {
|
switch ($("#themeHeaderWide").val()) {
|
||||||
case "container":
|
case "container":
|
||||||
$("header").addClass("container");
|
$("header").addClass("container");
|
||||||
break;
|
break;
|
||||||
|
@ -63,7 +63,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col4">
|
<div class="col4">
|
||||||
<?php echo template::select('themeHeaderWidth', $module::$containerWidths, [
|
<?php echo template::select('themeHeaderWide', $module::$containerWides, [
|
||||||
'label' => 'Largeur',
|
'label' => 'Largeur',
|
||||||
'selected' => $this->getData(['theme', 'header', 'width'])
|
'selected' => $this->getData(['theme', 'header', 'width'])
|
||||||
]); ?>
|
]); ?>
|
||||||
|
@ -123,7 +123,7 @@ $("input, select").on("change", function() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Largeur étendue
|
// Largeur étendue
|
||||||
if ($("#themeMenuWidth").val() === 'none') {
|
if ($("#themeMenuWide").val() === 'none') {
|
||||||
$("#menu").removeClass();
|
$("#menu").removeClass();
|
||||||
} else {
|
} else {
|
||||||
$("#menu").addClass("container");
|
$("#menu").addClass("container");
|
||||||
|
@ -41,7 +41,7 @@
|
|||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
<div class="col6">
|
<div class="col6">
|
||||||
<?php echo template::select('themeMenuWidth', $module::$containerWidths, [
|
<?php echo template::select('themeMenuWide', $module::$containerWides, [
|
||||||
'label' => 'Largeur',
|
'label' => 'Largeur',
|
||||||
'selected' => $this->getData(['theme', 'menu', 'width'])
|
'selected' => $this->getData(['theme', 'menu', 'width'])
|
||||||
]); ?>
|
]); ?>
|
||||||
|
Loading…
Reference in New Issue
Block a user