diff --git a/CHANGES.md b/CHANGES.md index dfcd1c60..2039abd5 100755 --- a/CHANGES.md +++ b/CHANGES.md @@ -17,7 +17,8 @@ Modifications : - Les polices pourront désormais être téléchargées à partir du site et non du CDN. - Installation de police personnalisées. - 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 : - Configuration / localisation : Les champs de cookies ne devraient pas être obligatoires lorsque la case à cocher de consentement des cookies n'est pas sélectionnée. diff --git a/core/core.php b/core/core.php index ac415e3b..022bba8a 100644 --- a/core/core.php +++ b/core/core.php @@ -1683,7 +1683,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') @@ -1694,10 +1694,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'])) { @@ -1746,7 +1746,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 ( @@ -1756,10 +1756,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'])) {