From 129a3b568be4e49c649628d58901c3fbf84ba332 Mon Sep 17 00:00:00 2001 From: fredtempez Date: Tue, 8 Feb 2022 11:44:37 +0100 Subject: [PATCH 1/2] =?UTF-8?q?id=20et=20class=20des=20=C3=A9l=C3=A9ments?= =?UTF-8?q?=20de=20menu?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGES.md | 3 ++- core/core.php | 8 ++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 53a3a97a..ad5cfc38 100755 --- a/CHANGES.md +++ b/CHANGES.md @@ -2,7 +2,7 @@ ## Version 11.3.00 -- Correction : +- Corrections : - Thème / site : problème d'aperçu du body ; police du thème admin non chargées. - Bugs avec les aperçus des sélecteurs de fontes. - Modification : @@ -10,6 +10,7 @@ - Changement de fournisseur, CdnFont remplace Google Font. - Les polices pourront désormais être téléchargées à partir du site et non du CDN. - Thème / Bannière : ergonomie de l'information sur l'image sélectionnée. + - Identifications des éléments du menu, les pages parents prennent comme id CSS leur id, les pages enfants également et pour classe Id de la page parente. ## Version 11.2.05 - Corrections : diff --git a/core/core.php b/core/core.php index 8baa5512..d7b6d6c3 100644 --- a/core/core.php +++ b/core/core.php @@ -1670,10 +1670,10 @@ class common { ) ){ $pageUrl = ($this->getData(['locale', 'homePageId']) === $this->getUrl(0)) ? helper::baseUrl(false) : helper::baseUrl() . $this->getUrl(0); - $itemsLeft .= ''; + $itemsLeft .= ''; } else { $pageUrl = ($this->getData(['locale', 'homePageId']) === $parentPageId) ? helper::baseUrl(false) : helper::baseUrl() . $parentPageId; - $itemsLeft .= ''; + $itemsLeft .= ''; } switch ($this->getData(['page', $parentPageId, 'typeMenu'])) { @@ -1732,10 +1732,10 @@ class common { ) ){ $pageUrl = ($this->getData(['locale', 'homePageId']) === $this->getUrl(0)) ? helper::baseUrl(false) : helper::baseUrl() . $this->getUrl(0); - $itemsLeft .= ''; + $itemsLeft .= ''; } else { $pageUrl = ($this->getData(['locale', 'homePageId']) === $childKey) ? helper::baseUrl(false) : helper::baseUrl() . $childKey; - $itemsLeft .= ''; + $itemsLeft .= ''; } switch ($this->getData(['page', $childKey, 'typeMenu'])) { From 613d048fcca27c131e14f3a907f247b1d412b1f8 Mon Sep 17 00:00:00 2001 From: fredtempez Date: Tue, 8 Feb 2022 12:26:56 +0100 Subject: [PATCH 2/2] identification des li dans le menu --- core/core.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/core.php b/core/core.php index d7b6d6c3..b9ede07f 100644 --- a/core/core.php +++ b/core/core.php @@ -1659,7 +1659,7 @@ class common { $active = ($parentPageId === $currentPageId OR in_array($currentPageId, $childrenPageIds)) ? 'active ' : ''; $targetBlank = $this->getData(['page', $parentPageId, 'targetBlank']) ? ' target="_blank"' : ''; // Mise en page de l'item - $itemsLeft .= '
  • '; + $itemsLeft .= '
  • '; if ( ( $this->getData(['page',$parentPageId,'disable']) === true AND $this->getUser('password') !== $this->getInput('ZWII_USER_PASSWORD') @@ -1722,7 +1722,7 @@ class common { $active = ($childKey === $currentPageId) ? 'active ' : ''; $targetBlank = $this->getData(['page', $childKey, 'targetBlank']) ? ' target="_blank"' : ''; // Mise en page du sous-item - $itemsLeft .= '
  • '; + $itemsLeft .= '
  • '; if ( ( $this->getData(['page',$childKey,'disable']) === true AND $this->getUser('password') !== $this->getInput('ZWII_USER_PASSWORD') ) OR (