From 96514f092af93e4961c2e33f892f01b062a86f25 Mon Sep 17 00:00:00 2001 From: fredtempez Date: Tue, 4 May 2021 09:41:13 +0200 Subject: [PATCH] =?UTF-8?q?Lity=20option=20supprim=C3=A9e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core.php | 58 +++++--------------------- core/module/page/page.php | 6 +-- core/module/page/view/edit/edit.js.php | 15 ------- core/module/page/view/edit/edit.php | 11 +---- 4 files changed, 15 insertions(+), 75 deletions(-) diff --git a/core/core.php b/core/core.php index 6ca1ab00..e901a60c 100755 --- a/core/core.php +++ b/core/core.php @@ -21,7 +21,6 @@ class common { const DISPLAY_LAYOUT_BLANK = 3; const DISPLAY_LAYOUT_MAIN = 4; const DISPLAY_LAYOUT_LIGHT = 5; - const DISPLAY_LAYOUT_LITY = 6; const GROUP_BANNED = -1; const GROUP_VISITOR = 0; const GROUP_MEMBER = 1; @@ -2107,14 +2106,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']) ? 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 @@ -2210,20 +2202,11 @@ class core extends common { } } // Données en sortie applicables même lorsqu'une notice est présente - // Affichage changer lity en main si connexion - 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'] - ]); - } + // Affichage + if($output['display']) { + $this->addOutput([ + 'display' => $output['display'] + ]); } // Contenu brut if($output['content']) { @@ -2423,10 +2406,6 @@ class core extends common { case self::DISPLAY_LAYOUT_MAIN: require 'core/layout/main.php'; break; - // Layout Lity - case self::DISPLAY_LAYOUT_LITY: - require 'core/layout/lity.php'; - break; } } } @@ -2578,19 +2557,16 @@ 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 @@ -2713,9 +2689,6 @@ class layout extends common { // Propriétés de l'item $active = ($parentPageId === $currentPageId OR in_array($currentPageId, $childrenPageIds)) ? 'active ' : ''; $targetBlank = $this->getData(['page', $parentPageId, 'targetBlank']) ? ' target="_blank"' : ''; - $targetLity = $this->getData(['page', $parentPageId, 'lity']) - && $this->getUser('password') !== $this->getInput('ZWII_USER_PASSWORD') - ? ' rel="data-lity" ' : ''; // Mise en page de l'item $itemsLeft .= '
  • '; @@ -2729,7 +2702,7 @@ class layout extends common { ){ $itemsLeft .= ''; } else { - $itemsLeft .= ''; + $itemsLeft .= ''; } switch ($this->getData(['page', $parentPageId, 'typeMenu'])) { @@ -2777,9 +2750,6 @@ class layout extends common { // Propriétés de l'item $active = ($childKey === $currentPageId) ? 'active ' : ''; $targetBlank = $this->getData(['page', $childKey, 'targetBlank']) ? ' target="_blank"' : ''; - $targetLity = $this->getData(['page', $childKey, 'lity']) - && $this->getUser('password') !== $this->getInput('ZWII_USER_PASSWORD') - ? ' rel="data-lity" ' : ''; // Mise en page du sous-item $itemsLeft .= '
  • '; if ( ( $this->getData(['page',$childKey,'disable']) === true @@ -2792,7 +2762,7 @@ class layout extends common { ){ $itemsLeft .= ''; } else { - $itemsLeft .= ''; + $itemsLeft .= ''; } switch ($this->getData(['page', $childKey, 'typeMenu'])) { @@ -2896,9 +2866,6 @@ class layout extends common { // Propriétés de l'item $active = ($parentPageId === $currentPageId OR in_array($currentPageId, $childrenPageIds)) ? ' class="active"' : ''; $targetBlank = $this->getData(['page', $parentPageId, 'targetBlank']) ? ' target="_blank" ' : ''; - $targetLity = $this->getData(['page', $parentPageId, 'lity']) - && $this->getUser('password') !== $this->getInput('ZWII_USER_PASSWORD') - ? ' rel="data-lity" ' : ''; // Mise en page de l'item; // Ne pas afficher le parent d'une sous-page quand l'option est sélectionnée. if ($onlyChildren === false) { @@ -2907,7 +2874,7 @@ class layout extends common { AND $this->getUser('password') !== $this->getInput('ZWII_USER_PASSWORD') ) { $items .= ''; } else { - $items .= ''; + $items .= ''; } $items .= $this->getData(['page', $parentPageId, 'title']); $items .= ''; @@ -2922,9 +2889,6 @@ class layout extends common { // Propriétés de l'item $active = ($childKey === $currentPageId) ? ' class="active"' : ''; $targetBlank = $this->getData(['page', $childKey, 'targetBlank']) ? ' target="_blank"' : ''; - $targetLity = $this->getData(['page', $childKey, 'lity']) - && $this->getUser('password') !== $this->getInput('ZWII_USER_PASSWORD') - ? ' rel="data-lity" ' : ''; // Mise en page du sous-item $itemsChildren .= '