forked from ZwiiCMS-Team/ZwiiCMS
Bugs et corrections et simplification jquery
This commit is contained in:
parent
054c7ec945
commit
14975789c4
@ -70,7 +70,7 @@
|
||||
<?php
|
||||
$headerClass = $this->getData(['theme', 'header', 'position']) === 'hide' ? 'displayNone' : '';
|
||||
$headerClass .= $this->getData(['theme', 'header', 'tinyHidden']) ? ' bannerDisplay ' : '';
|
||||
$headerClass .= $this->getData(['theme', 'header', 'width']) === 'none' ? '' : 'container';
|
||||
$headerClass .= $this->getData(['theme', 'header', 'wide']) === 'none' ? '' : 'container';
|
||||
?>
|
||||
<header <?php echo empty($headerClass) ? '' : 'class="' . $headerClass . '"';?>>
|
||||
<?php echo ($this->getData(['theme','header','linkHomePage']) && $this->getData(['theme','header','feature']) === 'wallpaper' ) ? '<a href="' . helper::baseUrl(false) . '">' : ''; ?>
|
||||
|
@ -216,28 +216,20 @@ $("#themeHeaderPosition").on("change", function() {
|
||||
if($(this).val() === 'site') {
|
||||
$("#themeHeaderContainerWrapper").slideUp();
|
||||
$("#themeHeaderPositionOptions").slideDown();
|
||||
$("#themeHeaderWideWrapper").slideUp();
|
||||
}
|
||||
else {
|
||||
if($(this).val() === 'hide') {
|
||||
$("#themeHeaderContainerWrapper").slideUp();
|
||||
}
|
||||
else if ($(this).val() === 'hide') {
|
||||
$("#themeHeaderContainerWrapper").slideUp();
|
||||
$("#themeHeaderWideWrapper").slideUp();
|
||||
$("#themeHeaderPositionOptions").slideUp(function() {
|
||||
$("#themeHeaderMargin").prop("checked", false).trigger("change");
|
||||
});
|
||||
} else {
|
||||
$("#themeHeaderWideWrapper").slideDown();
|
||||
}
|
||||
}).trigger("change");
|
||||
|
||||
// Affiche / Cache les options de la bannière cliquable si pas masquée
|
||||
$("#themeHeaderPosition").on("change", function() {
|
||||
if($(this).val() === 'hide') {
|
||||
$("#themeHeaderShow").slideUp(function() {
|
||||
$("#themeHeaderlinkHome").prop("checked", false).trigger("change");
|
||||
});
|
||||
}
|
||||
else {
|
||||
$("#themeHeaderShow").slideDown();
|
||||
}
|
||||
}).trigger("change");
|
||||
|
||||
|
||||
// Affiche / Cache l'option bannière masquée en écran réduit
|
||||
$("#themeHeaderPosition").on("change", function() {
|
||||
|
@ -26,6 +26,12 @@
|
||||
<div class="block">
|
||||
<h4>Paramètres</h4>
|
||||
<div class="row">
|
||||
<div class="col4">
|
||||
<?php echo template::select('themeHeaderPosition', $module::$headerPositions, [
|
||||
'label' => 'Position',
|
||||
'selected' => $this->getData(['theme', 'header', 'position'])
|
||||
]); ?>
|
||||
</div>
|
||||
<div class="col4">
|
||||
<?php echo template::select('themeHeaderFeature', $module::$headerFeatures, [
|
||||
'label' => 'Nature de contenu',
|
||||
@ -40,14 +46,14 @@
|
||||
'help' => 'La hauteur maximale est de 600 pixels, même si les dimensions de l\'image sélectionnée sont supérieures. <br />Lorsque l\'adaptation est positionnée sur Responsive, la hauteur diminue proportionnellement à la largeur.'
|
||||
]); ?>
|
||||
</div>
|
||||
<div class="col4">
|
||||
<?php echo template::select('themeHeaderPosition', $module::$headerPositions, [
|
||||
'label' => 'Position',
|
||||
'selected' => $this->getData(['theme', 'header', 'position'])
|
||||
]); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col4">
|
||||
<?php echo template::select('themeHeaderWide', $module::$containerWides, [
|
||||
'label' => 'Largeur',
|
||||
'selected' => $this->getData(['theme', 'header', 'wide'])
|
||||
]); ?>
|
||||
</div>
|
||||
<div class="col4">
|
||||
<div id="themeHeaderSmallDisplay" class="displayNone">
|
||||
<?php echo template::checkbox('themeHeaderTinyHidden', true, 'Masquer la bannière en écran réduit', [
|
||||
@ -62,12 +68,6 @@
|
||||
]); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col4">
|
||||
<?php echo template::select('themeHeaderWide', $module::$containerWides, [
|
||||
'label' => 'Largeur',
|
||||
'selected' => $this->getData(['theme', 'header', 'width'])
|
||||
]); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user