Suppression animation navstyle
This commit is contained in:
parent
94dc961c4d
commit
5d95abdcf0
|
@ -129,21 +129,6 @@ $("input, select").on("change", function() {
|
||||||
$("#menu").addClass("container");
|
$("#menu").addClass("container");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Largeur du menu étendue à la page pour top sinon limitée au site
|
|
||||||
if ($("#themeMenuPosition").val() === 'top') {
|
|
||||||
$("nav").removeAttr('style');
|
|
||||||
} else {
|
|
||||||
var menuWidth = document.body.clientWidth + 20;
|
|
||||||
if( <?php echo json_encode($this->getData(['theme', 'header', 'position']) === 'body'); ?> && <?php echo json_encode($this->getData(['theme', 'header', 'wide']) === 'container'); ?>){
|
|
||||||
menuWidth = "<?php echo $this->getData(['theme', 'site', 'width']); ?>";
|
|
||||||
$("nav").css("width", menuWidth);
|
|
||||||
$("nav").css("display", "block");
|
|
||||||
$("nav").css("margin", "auto");
|
|
||||||
} else {
|
|
||||||
$("nav").css("width", menuWidth);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Visibilité du select 'disposition'
|
// Visibilité du select 'disposition'
|
||||||
if( <?php echo json_encode($this->getData(['theme', 'site', 'width']) !== '100%'); ?> && ( $("#themeMenuPosition").val() === 'top' || ( <?php echo json_encode($this->getData(['theme', 'header', 'wide']) === 'none'); ?>
|
if( <?php echo json_encode($this->getData(['theme', 'site', 'width']) !== '100%'); ?> && ( $("#themeMenuPosition").val() === 'top' || ( <?php echo json_encode($this->getData(['theme', 'header', 'wide']) === 'none'); ?>
|
||||||
&& ( $("#themeMenuPosition").val() === 'body-first' || $("#themeMenuPosition").val() === 'body-second')) ) ) {
|
&& ( $("#themeMenuPosition").val() === 'body-first' || $("#themeMenuPosition").val() === 'body-second')) ) ) {
|
||||||
|
|
Loading…
Reference in New Issue