Correction aperçu theme menu hors site

This commit is contained in:
fredtempez 2019-01-16 17:05:50 +01:00
parent 3c140b0f3b
commit 30ec222de5
2 changed files with 3 additions and 5 deletions

View File

@ -33,11 +33,9 @@
<?php if($this->getData(['theme', 'header', 'position']) === 'body'): ?> <?php if($this->getData(['theme', 'header', 'position']) === 'body'): ?>
<!-- Bannière dans le fond du site --> <!-- Bannière dans le fond du site -->
<!-- menu image -->
<?php <?php
if ($this->getData(['theme','header','linkHome'])){ if ($this->getData(['theme','header','linkHome'])){
echo "<a href='" . helper::baseUrl(false) . "'>" ;} ?> echo "<a href='" . helper::baseUrl(false) . "'>" ;} ?>
<!-- menu image -->
<header> <header>
<?php if( <?php if(
@ -54,11 +52,9 @@
<?php endif; ?> <?php endif; ?>
</header> </header>
<!-- menu image -->
<?php <?php
if ($this->getData(['theme','header','linkHome'])){echo "</a>";} if ($this->getData(['theme','header','linkHome'])){echo "</a>";}
?> ?>
<!-- menu image -->
<?php endif; ?> <?php endif; ?>
<?php if($this->getData(['theme', 'menu', 'position']) === 'body-second'): ?> <?php if($this->getData(['theme', 'menu', 'position']) === 'body-second'): ?>

View File

@ -70,6 +70,8 @@ $("input, select").on("change", function() {
break; break;
case 'body-top': case 'body-top':
$("nav").show().insertAfter("#bar"); $("nav").show().insertAfter("#bar");
$("#menu").removeClass('container');
$("#menu").addClass('container-large');
break; break;
case 'body-second': case 'body-second':
if(<?php echo json_encode($this->getData(['theme', 'header', 'position']) === 'body'); ?>) { if(<?php echo json_encode($this->getData(['theme', 'header', 'position']) === 'body'); ?>) {