forked from ZwiiCMS-Team/ZwiiCMS
Lity in progess
This commit is contained in:
parent
9d97c0a75f
commit
ab95e70846
@ -2076,8 +2076,16 @@ class core extends common {
|
|||||||
'disable' => $this->getData(['page', $this->getUrl(0), 'disable']),
|
'disable' => $this->getData(['page', $this->getUrl(0), 'disable']),
|
||||||
'contentRight' => $this->getData(['page',$this->getData(['page',$this->getUrl(0),'barRight']),'content']),
|
'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), '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
|
// Importe le module
|
||||||
else {
|
else {
|
||||||
// Id du module, et valeurs en sortie de la page si il s'agit d'un module de page
|
// 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']),
|
'iconUrl' => $this->getData(['page', $this->getUrl(0), 'iconUrl']),
|
||||||
'disable' => $this->getData(['page', $this->getUrl(0), 'disable']),
|
'disable' => $this->getData(['page', $this->getUrl(0), 'disable']),
|
||||||
'contentRight' => $this->getData(['page',$this->getData(['page',$this->getUrl(0),'barRight']),'content']),
|
'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']);
|
$pageContent = $this->getData(['page', $this->getUrl(0), 'content']);
|
||||||
//echo $this->output['display'];
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$moduleId = $this->getUrl(0);
|
$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
|
// Données en sortie applicables même lorsqu'une notice est présente
|
||||||
// Affichage
|
// 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']) {
|
if($output['display']) {
|
||||||
$this->addOutput([
|
$this->addOutput([
|
||||||
'display' => $output['display']
|
'display' => $output['display']
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
// Contenu brut
|
// Contenu brut
|
||||||
if($output['content']) {
|
if($output['content']) {
|
||||||
$this->addOutput([
|
$this->addOutput([
|
||||||
@ -2343,20 +2356,7 @@ class core extends common {
|
|||||||
$this->addOutput([
|
$this->addOutput([
|
||||||
'metaDescription' => $this->getData(['locale', 'metaDescription'])
|
'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']) {
|
switch($this->output['display']) {
|
||||||
// Layout brut
|
// Layout brut
|
||||||
case self::DISPLAY_RAW:
|
case self::DISPLAY_RAW:
|
||||||
@ -2390,7 +2390,6 @@ class core extends common {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
class layout extends common {
|
class layout extends common {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user