|
|
|
@ -129,21 +129,6 @@ $("input, select").on("change", function() {
|
|
|
|
|
$("#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'
|
|
|
|
|
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')) ) ) {
|
|
|
|
|