|
|
|
@ -2258,7 +2258,7 @@ class layout extends common {
|
|
|
|
|
foreach($this->getHierarchy() as $parentPageId => $childrenPageIds) { |
|
|
|
|
// Passer les entrées masquées |
|
|
|
|
// Propriétés de l'item |
|
|
|
|
$active = ($parentPageId === $currentPageId OR in_array($currentPageId, $childrenPageIds)) ? ' class="active"' : ''; |
|
|
|
|
$active = ($parentPageId === $currentPageId OR in_array($currentPageId, $childrenPageIds)) ? 'active ' : ''; |
|
|
|
|
$targetBlank = $this->getData(['page', $parentPageId, 'targetBlank']) ? ' target="_blank"' : ''; |
|
|
|
|
// Mise en page de l'item |
|
|
|
|
$items .= '<li>'; |
|
|
|
@ -2268,7 +2268,7 @@ class layout extends common {
|
|
|
|
|
|
|
|
|
|
{$items .= '<a class="' . $parentPageId . '" href="'.$this->getUrl(1).'">'; |
|
|
|
|
} else { |
|
|
|
|
$items .= '<a class="' . $parentPageId . '" href="' . helper::baseUrl() . $parentPageId . '"' . $active . $targetBlank . '>'; |
|
|
|
|
$items .= '<a class="' . $active . $parentPageId . '" href="' . helper::baseUrl() . $parentPageId . '"' . $targetBlank . '>'; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
switch ($this->getData(['page', $parentPageId, 'typeMenu'])) { |
|
|
|
@ -2314,7 +2314,7 @@ class layout extends common {
|
|
|
|
|
$items .= '<ul class="navLevel2">'; |
|
|
|
|
foreach($childrenPageIds as $childKey) { |
|
|
|
|
// Propriétés de l'item |
|
|
|
|
$active = ($childKey === $currentPageId) ? ' class="active"' : ''; |
|
|
|
|
$active = ($childKey === $currentPageId) ? 'active ' : ''; |
|
|
|
|
$targetBlank = $this->getData(['page', $childKey, 'targetBlank']) ? ' target="_blank"' : ''; |
|
|
|
|
// Mise en page du sous-item |
|
|
|
|
$items .= '<li>'; |
|
|
|
@ -2322,7 +2322,7 @@ class layout extends common {
|
|
|
|
|
AND $this->getUser('password') !== $this->getInput('ZWII_USER_PASSWORD') ) { |
|
|
|
|
$items .= '<a class="' . $parentPageId . '" href="'.$this->getUrl(1).'">'; |
|
|
|
|
} else { |
|
|
|
|
$items .= '<a class="' . $parentPageId . '" href="' . helper::baseUrl() . $childKey . '"' . $active . $targetBlank . '>'; |
|
|
|
|
$items .= '<a class="' . $active . $parentPageId . '" href="' . helper::baseUrl() . $childKey . '"' . $targetBlank . '>'; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
switch ($this->getData(['page', $childKey, 'typeMenu'])) { |
|
|
|
@ -2422,7 +2422,7 @@ class layout extends common {
|
|
|
|
|
continue; |
|
|
|
|
} |
|
|
|
|
// Propriétés de l'item |
|
|
|
|
$active = ($parentPageId === $currentPageId OR in_array($currentPageId, $childrenPageIds)) ? ' class="active"' : ''; |
|
|
|
|
$active = ($parentPageId === $currentPageId OR in_array($currentPageId, $childrenPageIds)) ? 'active ' : ''; |
|
|
|
|
$targetBlank = $this->getData(['page', $parentPageId, 'targetBlank']) ? ' target="_blank"' : ''; |
|
|
|
|
// Mise en page de l'item; |
|
|
|
|
// Ne pas afficher le parent d'une sous-page quand l'option est sélectionnée. |
|
|
|
@ -2432,7 +2432,7 @@ class layout extends common {
|
|
|
|
|
AND $this->getUser('password') !== $this->getInput('ZWII_USER_PASSWORD') ) { |
|
|
|
|
$items .= '<a href="'.$this->getUrl(1).'">'; |
|
|
|
|
} else { |
|
|
|
|
$items .= '<a href="' . helper::baseUrl() . $parentPageId . '"' . $active . $targetBlank . '>'; |
|
|
|
|
$items .= '<a href="' . $active . helper::baseUrl() . $parentPageId . '"' . $targetBlank . '>'; |
|
|
|
|
} |
|
|
|
|
$items .= $this->getData(['page', $parentPageId, 'title']); |
|
|
|
|
$items .= '</a>'; |
|
|
|
@ -2445,7 +2445,7 @@ class layout extends common {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Propriétés de l'item |
|
|
|
|
$active = ($childKey === $currentPageId) ? ' class="active"' : ''; |
|
|
|
|
$active = ($childKey === $currentPageId) ? 'active ' : ''; |
|
|
|
|
$targetBlank = $this->getData(['page', $childKey, 'targetBlank']) ? ' target="_blank"' : ''; |
|
|
|
|
// Mise en page du sous-item |
|
|
|
|
$itemsChildren .= '<li class="menuSideChild">'; |
|
|
|
@ -2454,7 +2454,7 @@ class layout extends common {
|
|
|
|
|
AND $this->getUser('password') !== $this->getInput('ZWII_USER_PASSWORD') ) { |
|
|
|
|
$itemsChildren .= '<a href="'.$this->getUrl(1).'">'; |
|
|
|
|
} else { |
|
|
|
|
$itemsChildren .= '<a href="' . helper::baseUrl() . $childKey . '"' . $active . $targetBlank . '>'; |
|
|
|
|
$itemsChildren .= '<a href="' .$active . helper::baseUrl() . $childKey . '"' . $targetBlank . '>'; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
$itemsChildren .= $this->getData(['page', $childKey, 'title']); |
|
|
|
|