From 40a770a1f6478c38a8aa8ed38cd57938b3994d81 Mon Sep 17 00:00:00 2001 From: fredtempez Date: Sat, 27 Mar 2021 14:25:58 +0100 Subject: [PATCH] =?UTF-8?q?Page=20lity=20dans=20le=20pied=20de=20page=20-?= =?UTF-8?q?=20=C3=A0=20voir=20page=20avec=20module=20g=C3=A9n=C3=A9r=C3=A9?= =?UTF-8?q?e=20compl=C3=A8te=20dans=20lity?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGES.md | 3 ++- core/core.php | 15 +++++++++++---- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 553fd7dd..b4897cf4 100755 --- a/CHANGES.md +++ b/CHANGES.md @@ -9,7 +9,8 @@ - Traduction selon la langue navigateur - Configuration du site : - Activation et désactivation de la déconnexion automatique empêchant plusieurs sessions avec le même compte. - + - Pages : option d'affichage dans une fenêtre superposée (Lity). + ## version 10.5.01 - Modifications : - Rechargement du fichier de style common.css et du jeu d'icônes du système après une mise à jour. diff --git a/core/core.php b/core/core.php index d75f2813..7dba8c8f 100755 --- a/core/core.php +++ b/core/core.php @@ -2074,7 +2074,7 @@ 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']) === true + 'display' => $this->getData(['page', $this->getUrl(0), 'lity']) === true && $this->getUser('password') !== $this->getInput('ZWII_USER_PASSWORD') ? self::DISPLAY_LAYOUT_LITY : $this->output['display'] @@ -2097,7 +2097,11 @@ 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), 'lity']) === true + && $this->getUser('password') !== $this->getInput('ZWII_USER_PASSWORD') + ? self::DISPLAY_LAYOUT_LITY + : $this->output['display'] ]); $pageContent = $this->getData(['page', $this->getUrl(0), 'content']); } @@ -2528,16 +2532,19 @@ class layout extends common { $items .= ''; // Affichage du module de recherche $items .= 'getData(['page',$this->getData(['locale','searchPageId']), 'lity']) && $this->getUser('password') !== $this->getInput('ZWII_USER_PASSWORD') ? ' rel="data-lity" ' : ""; $items .= $this->getData(['theme','footer','displaySearch']) === false ? ' class="displayNone" >' : '>'; if ($this->getData(['locale','searchPageId']) !== 'none') { - $items .= ' | Recherche'; + $items .= ' | Recherche'; } $items .= ''; // Affichage des mentions légales $items .= 'getData(['theme','footer','displayLegal']) === false ? ' class="displayNone" >' : '>'; + // Affichage lity + $targetLity = $this->getData(['page',$this->getData(['locale','legalPageId']), 'lity']) && $this->getUser('password') !== $this->getInput('ZWII_USER_PASSWORD') ? ' rel="data-lity" ' : ""; if ($this->getData(['locale','legalPageId']) !== 'none') { - $items .= ' | Mentions légales'; + $items .= ' | Mentions légales'; } $items .= ''; // Affichage du lien de connexion