Position de la section

This commit is contained in:
Fred 2019-01-18 10:15:22 +01:00 committed by GitHub
parent 00683c5a2f
commit 9cf423b8c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 15 additions and 13 deletions

View File

@ -106,14 +106,16 @@
AND $this->getUrl(0) === 'theme' AND $this->getUrl(0) === 'theme'
) )
): ?> ): ?>
<!-- Menu dans le site après la bannière --> <!-- Menu dans le site après la bannière -->
<nav <?php if($this->getData(['theme', 'menu', 'position']) === 'hide'): ?>class="displayNone"<?php endif; ?>> <nav <?php if($this->getData(['theme', 'menu', 'position']) === 'hide'): ?>class="displayNone"<?php endif; ?>>
<div id="toggle"><?php echo template::ico('menu'); ?></div> <div id="toggle"><?php echo template::ico('menu'); ?></div>
<div id="menu" class="container"> <div id="menu" class="container">
<?php $layout->showMenu(); ?> <?php $layout->showMenu(); ?>
</div> </div>
</nav> </nav>
<?php endif; ?> <?php endif; ?>
<!-- Corps de page -->
<section>
<?php <?php
// Gabarit : // Gabarit :
// Récupérer la config de la page courante // Récupérer la config de la page courante
@ -140,16 +142,16 @@
} }
if (sizeof($blocks) === 1 ) { if (sizeof($blocks) === 1 ) {
?><section><?php $layout->showContent();?></section><?php ?><?php $layout->showContent();?><?php
} else { } else {
?> ?>
<div class="row"> <div class="row">
<?php if ($blockleft !== "") :?> <div class="<?php echo $blockleft; ?>" id="contentleft"><?php echo $this->getData(['page','blockLeft','content']);?></div> <?php endif; ?> <?php if ($blockleft !== "") :?> <div class="<?php echo $blockleft; ?>" id="contentleft"><?php echo $this->getData(['page','blockLeft','content']);?></div> <?php endif; ?>
<div class="<?php echo $content; ?>" id="contentsite"><?php $layout->showContent(); ?></div> <div class="<?php echo $content; ?>" id="contentsite"><?php $layout->showContent(); ?></div>
<?php if ($blockright !== "") :?> <div class="<?php echo $blockright; ?>" id="contentright"><?php echo $this->getData(['page','blockRight','content']);?></div> <?php endif; ?> <?php if ($blockright !== "") :?> <div class="<?php echo $blockright; ?>" id="contentright"><?php echo $this->getData(['page','blockRight','content']);?></div> <?php endif; ?>
</div></section> </div>
<?php } ?> <?php } ?>
</section>
<!-- footer --> <!-- footer -->
<?php if( <?php if(
$this->getData(['theme', 'footer', 'position']) === 'site' $this->getData(['theme', 'footer', 'position']) === 'site'
@ -267,4 +269,4 @@
<?php $layout->showAnalytics(); ?> <?php $layout->showAnalytics(); ?>
<?php $layout->showScript(); ?> <?php $layout->showScript(); ?>
</body> </body>
</html> </html>