Test multi colonne

This commit is contained in:
fredtempez 2019-01-11 22:24:46 +01:00
parent 0bb53c0780
commit 16324fae41
1 changed files with 11 additions and 6 deletions

View File

@ -115,14 +115,19 @@
</div> </div>
</nav> </nav>
<?php endif; ?> <?php endif; ?>
<!-- corps --> <?php
<?php if ( $this->getData(['page',$this->getUrl(0)]) === NULL OR // Multi colonne uniquement pour les pages du site hors config, theme etc..
$this->getData(['module',$this->getUrl(0)]) === NULL OR if (
$this->getUrl(0) === 'page' OR $this->getUrl(0) === 'user' OR
$this->getUrl(1) === 'config' $this->getUrl(0) === 'theme' OR
) { ?> <!-- Multi colonne uniquement pour les pages du site hors config, theme etc.--> $this->getUrl(0) === 'config' OR
$this->getUrl(0) === 'page' OR
$this->getUrl(1) === 'config' OR
$this->getUrl(1) === 'edit'
) { ?>
<section><?php $layout->showContent(); ?></section> <section><?php $layout->showContent(); ?></section>
<?php } else { <?php } else {
// multi-colonnes
$blocks = explode('-',$this->getData(['theme','site','blocks'])); $blocks = explode('-',$this->getData(['theme','site','blocks']));
$blockleft=$blockright=""; $blockleft=$blockright="";
switch (sizeof($blocks)) { switch (sizeof($blocks)) {