From f4131848e38633b68afb354dd199b032d772b339 Mon Sep 17 00:00:00 2001 From: fredtempez Date: Wed, 3 Nov 2021 18:53:12 +0100 Subject: [PATCH] =?UTF-8?q?Mise=20en=20=C3=A9vidence=20des=20pages=20inact?= =?UTF-8?q?ives=20et=20orphelines?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core.php | 12 ++++++++---- core/layout/common.css | 9 +++++++-- 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/core/core.php b/core/core.php index f83e3248..56ba8b8a 100644 --- a/core/core.php +++ b/core/core.php @@ -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']) . ''; 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"' : '') . - '>    ' . + 'class="' . + ($this->getData(['page', $childKey, 'disable']) === true ? 'pageInactive' : '') . + ($this->getData(['page', $childKey, 'position']) === 0 ? ' pageHidden' : '') . + '">    ' . $this->getData(['page', $childKey, 'title']) . ''; } diff --git a/core/layout/common.css b/core/layout/common.css index 375ebad9..d2fd0d52 100755 --- a/core/layout/common.css +++ b/core/layout/common.css @@ -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 */