Une ligen remise + commentaire main.php

This commit is contained in:
Fred Tempez 2021-10-25 17:59:46 +02:00
parent 9aeb4e1881
commit 37b5e09c1c
2 changed files with 24 additions and 9 deletions

View File

@ -1392,7 +1392,6 @@ class common {
// Fermeture du contenaire // Fermeture du contenaire
echo '</div></div>'; echo '</div></div>';
echo '</footer>'; echo '</footer>';
echo $this->getData(['theme', 'footer', 'position']) === 'site'? '</div>' : '';
} }
/** /**

View File

@ -25,12 +25,16 @@
}?> }?>
</head> </head>
<body> <body>
<!-- Barre d'administration -->
<?php if($this->getUser('group') > self::GROUP_MEMBER): ?> <?php if($this->getUser('group') > self::GROUP_MEMBER): ?>
<?php $this->showBar(); ?> <?php $this->showBar(); ?>
<?php endif;?> <?php endif;?>
<!-- Notifications -->
<?php $this->showNotification(); ?> <?php $this->showNotification(); ?>
<?php if($this->getData(['theme', 'menu', 'position']) === 'body-first' || $this->getData(['theme', 'menu', 'position']) === 'top' ): ?>
<!-- Menu dans le fond du site avant la bannière --> <!-- Menu dans le fond du site avant la bannière -->
<?php if($this->getData(['theme', 'menu', 'position']) === 'body-first' || $this->getData(['theme', 'menu', 'position']) === 'top' ): ?>
<!-- Détermine si le menu est fixe en haut de page lorsque l'utilisateur n'est pas connecté --> <!-- Détermine si le menu est fixe en haut de page lorsque l'utilisateur n'est pas connecté -->
<?php <?php
if ( $this->getData(['theme', 'menu', 'position']) === 'top' if ( $this->getData(['theme', 'menu', 'position']) === 'top'
@ -51,8 +55,9 @@
</div> <!--fin menu --> </div> <!--fin menu -->
</nav> </nav>
<?php endif; ?> <?php endif; ?>
<?php if($this->getData(['theme', 'header', 'position']) === 'body'): ?>
<!-- Bannière dans le fond du site --> <!-- Bannière dans le fond du site -->
<?php if($this->getData(['theme', 'header', 'position']) === 'body'): ?>
<header <?php if($this->getData(['theme', 'header', 'tinyHidden']) === true): ?>class="bannerDisplay"<?php endif;?>> <header <?php if($this->getData(['theme', 'header', 'tinyHidden']) === true): ?>class="bannerDisplay"<?php endif;?>>
<?php ?> <?php ?>
<?php echo $this->getData(['theme','header','linkHomePage']) ? '<a href="' . helper::baseUrl(false) . '">' : ''; ?> <?php echo $this->getData(['theme','header','linkHomePage']) ? '<a href="' . helper::baseUrl(false) . '">' : ''; ?>
@ -71,8 +76,9 @@
</header> </header>
<?php endif; ?> <?php endif; ?>
<!-- Menu dans le fond du site après la bannière -->
<?php if($this->getData(['theme', 'menu', 'position']) === 'body-second'): ?> <?php if($this->getData(['theme', 'menu', 'position']) === 'body-second'): ?>
<!-- Menu dans le fond du site après la bannière -->
<nav> <nav>
<div id="toggle"> <div id="toggle">
<?php echo $this->getData(['theme','menu','burgerTitle']) ? '<div class="notranslate" id="burgerText">' . $this->getData(['locale', 'title']) . '</div>' : ''; ?> <?php echo $this->getData(['theme','menu','burgerTitle']) ? '<div class="notranslate" id="burgerText">' . $this->getData(['locale', 'title']) . '</div>' : ''; ?>
@ -80,6 +86,7 @@
<div id="menu" class="container"><?php $this->showMenu(); ?></div> <div id="menu" class="container"><?php $this->showMenu(); ?></div>
</nav> </nav>
<?php endif; ?> <?php endif; ?>
<!-- Site --> <!-- Site -->
<div id="site" class="container"> <div id="site" class="container">
<?php if($this->getData(['theme', 'menu', 'position']) === 'site-first'): ?> <?php if($this->getData(['theme', 'menu', 'position']) === 'site-first'): ?>
@ -136,12 +143,21 @@
<div id="menu" class="container"><?php $this->showMenu(); ?></div> <div id="menu" class="container"><?php $this->showMenu(); ?></div>
</nav> </nav>
<?php endif; ?> <?php endif; ?>
<!-- Corps de page --> <!-- Corps de page -->
<?php $this->showSection();?> <?php $this->showSection();?>
<!-- footer --> <!-- footer -->
<?php $this->showFooter();?> <?php $this->showFooter();?>
<!-- Lien remonter en haut -->
<div id="backToTop"><?php echo template::ico('up'); ?></div> <!-- Fin du site -->
<?php $this->showScript();?> <?php echo $this->getData(['theme', 'footer', 'position']) === 'site'? '</div>' : '';?>
<!-- Lien remonter en haut -->
<div id="backToTop"><?php echo template::ico('up'); ?></div>
<!-- Les scripts -->
<?php $this->showScript();?>
</body> </body>
</html> </html>