Mise en évidence des pages inactives et orphelines

This commit is contained in:
Fred Tempez 2021-11-03 18:53:12 +01:00
parent f1fb22d2eb
commit f4131848e3
2 changed files with 15 additions and 6 deletions

View File

@ -1898,8 +1898,10 @@ class common {
helper::baseUrl() .
$parentPageId . '"' .
($parentPageId === $currentPageId ? ' selected' : false) .
($this->getData(['page', $parentPageId, 'disable']) === true ? ' class="inactive"' : '') .
'>' .
'class="' .
($this->getData(['page', $parentPageId, 'disable']) === true ? 'pageInactive' : '') .
($this->getData(['page', $parentPageId, 'position']) === 0 ? ' pageHidden' : '') .
'">' .
$this->getData(['page', $parentPageId, 'title']) .
'</option>';
foreach($childrenPageIds as $childKey) {
@ -1907,8 +1909,10 @@ class common {
helper::baseUrl() .
$childKey . '"' .
($childKey === $currentPageId ? ' selected' : false) .
($this->getData(['page', $childKey, 'disable']) === true ? ' class="inactive"' : '') .
'>&nbsp;&nbsp;&nbsp;&nbsp;' .
'class="' .
($this->getData(['page', $childKey, 'disable']) === true ? 'pageInactive' : '') .
($this->getData(['page', $childKey, 'position']) === 0 ? ' pageHidden' : '') .
'">&nbsp;&nbsp;&nbsp;&nbsp;' .
$this->getData(['page', $childKey, 'title']) .
'</option>';
}

View File

@ -135,8 +135,13 @@ li ul {
margin: 0;
}
option.inactive {
color: darkorange;
option.pageInactive {
color: orange;
font-weight: bold;
}
option.pageHidden {
color: red;
font-style: italic;
}
/* Séparateur */