Mode pleine config module : amélioration du code

This commit is contained in:
fredtempez 2019-02-14 13:57:30 +01:00
parent 32be33dc10
commit b2c97b7f58
1 changed files with 4 additions and 5 deletions

View File

@ -152,12 +152,11 @@
$content = 'col' . $blocks[1];
$blockright = 'col' . $blocks[2];
}
// Page pleine pour la configuration des modules et l'édition des pages
if (sizeof($blocks) === 1 ||
($this->getData(['page', $this->getUrl(2), 'moduleId']) == '' &&
$this->getUrl(1) == 'config' || // Configuration d'un module en page pleibe
$this->getUrl(1) == 'data' || // données de formulaire en page pleine
$this->getUrl(1) == 'comment' // données des commentaires en page pleine
)) {
$this->getUrl(1) === '' ||
$this->getData(['page', $this->getUrl(2), 'moduleId']) == ''
) {
?><?php $layout->showContent();?><?php
} else {
?>