forked from ZwiiCMS-Team/ZwiiCMS
Mise en évidence des pages inactives et orphelines
This commit is contained in:
parent
f1fb22d2eb
commit
f4131848e3
@ -1898,8 +1898,10 @@ class common {
|
|||||||
helper::baseUrl() .
|
helper::baseUrl() .
|
||||||
$parentPageId . '"' .
|
$parentPageId . '"' .
|
||||||
($parentPageId === $currentPageId ? ' selected' : false) .
|
($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']) .
|
$this->getData(['page', $parentPageId, 'title']) .
|
||||||
'</option>';
|
'</option>';
|
||||||
foreach($childrenPageIds as $childKey) {
|
foreach($childrenPageIds as $childKey) {
|
||||||
@ -1907,8 +1909,10 @@ class common {
|
|||||||
helper::baseUrl() .
|
helper::baseUrl() .
|
||||||
$childKey . '"' .
|
$childKey . '"' .
|
||||||
($childKey === $currentPageId ? ' selected' : false) .
|
($childKey === $currentPageId ? ' selected' : false) .
|
||||||
($this->getData(['page', $childKey, 'disable']) === true ? ' class="inactive"' : '') .
|
'class="' .
|
||||||
'> ' .
|
($this->getData(['page', $childKey, 'disable']) === true ? 'pageInactive' : '') .
|
||||||
|
($this->getData(['page', $childKey, 'position']) === 0 ? ' pageHidden' : '') .
|
||||||
|
'"> ' .
|
||||||
$this->getData(['page', $childKey, 'title']) .
|
$this->getData(['page', $childKey, 'title']) .
|
||||||
'</option>';
|
'</option>';
|
||||||
}
|
}
|
||||||
|
@ -135,8 +135,13 @@ li ul {
|
|||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
option.inactive {
|
option.pageInactive {
|
||||||
color: darkorange;
|
color: orange;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
option.pageHidden {
|
||||||
|
color: red;
|
||||||
|
font-style: italic;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Séparateur */
|
/* Séparateur */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user