Lity in progess

This commit is contained in:
fredtempez 2021-04-02 15:01:19 +02:00
parent 9d97c0a75f
commit ab95e70846
1 changed files with 3200 additions and 3201 deletions

View File

@ -2076,8 +2076,16 @@ class core extends common {
'disable' => $this->getData(['page', $this->getUrl(0), 'disable']),
'contentRight' => $this->getData(['page',$this->getData(['page',$this->getUrl(0),'barRight']),'content']),
'contentLeft' => $this->getData(['page',$this->getData(['page',$this->getUrl(0),'barLeft']),'content']),
'display' => $this->getData(['page', $this->getUrl(0), 'lity']) ? self:: DISPLAY_LAYOUT_LITY : $this->output['display']
]);
// Mode connecté, désactiver lity
if ( $this->getData(['page', $this->getUrl(0), 'lity']) === true && $this->getUser('password') === $this->getInput('ZWII_USER_PASSWORD') ) {
$this->addOutput([
'display' => self::DISPLAY_LAYOUT_MAIN
]);
}
}
// Importe le module
else {
// Id du module, et valeurs en sortie de la page si il s'agit d'un module de page
@ -2095,10 +2103,10 @@ class core extends common {
'iconUrl' => $this->getData(['page', $this->getUrl(0), 'iconUrl']),
'disable' => $this->getData(['page', $this->getUrl(0), 'disable']),
'contentRight' => $this->getData(['page',$this->getData(['page',$this->getUrl(0),'barRight']),'content']),
'contentLeft' => $this->getData(['page',$this->getData(['page',$this->getUrl(0),'barLeft']),'content'])
'contentLeft' => $this->getData(['page',$this->getData(['page',$this->getUrl(0),'barLeft']),'content']),
'display' => $this->getData(['page', $this->getUrl(0), 'display']),
]);
$pageContent = $this->getData(['page', $this->getUrl(0), 'content']);
//echo $this->output['display'];
}
else {
$moduleId = $this->getUrl(0);
@ -2173,11 +2181,16 @@ class core extends common {
}
// Données en sortie applicables même lorsqu'une notice est présente
// Affichage
if ( $this->getData(['page', $this->getUrl(0), 'lity']) === true
&& $this->getUser('password') !== $this->getInput('ZWII_USER_PASSWORD') ) {
$this->addOutput(['display' => self:: DISPLAY_LAYOUT_LITY]);
} else {
if($output['display']) {
$this->addOutput([
'display' => $output['display']
]);
}
}
// Contenu brut
if($output['content']) {
$this->addOutput([
@ -2343,20 +2356,7 @@ class core extends common {
$this->addOutput([
'metaDescription' => $this->getData(['locale', 'metaDescription'])
]);
}
// Layout Lity lorsque l'option est active.
if ( $this->getData(['page', $this->getUrl(0), 'lity']) === true ) {
// Mode connecté pas de menu en mode connecté
if ( $this->getUser('password') === $this->getInput('ZWII_USER_PASSWORD') ) {
$this->addOutput([
'display' => self::DISPLAY_LAYOUT_MAIN
]);
} else {
$this->addOutput([
'display' => self::DISPLAY_LAYOUT_LITY
]);
}
}
};
switch($this->output['display']) {
// Layout brut
case self::DISPLAY_RAW:
@ -2390,7 +2390,6 @@ class core extends common {
break;
}
}
}
class layout extends common {