From 3c6d1480adc195098ced8da09cad3336eadfe246 Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Thu, 18 Jan 2024 15:19:14 +0100 Subject: [PATCH] =?UTF-8?q?1.4.09=20Ajoute=20s=C3=A9lecteur=20d'espace=20d?= =?UTF-8?q?ans=20la=20barre=20de=20membre?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/class/layout.class.php | 8 ++++++++ core/core.php | 4 ++-- core/layout/common.css | 12 ++++++++++++ 3 files changed, 22 insertions(+), 2 deletions(-) diff --git a/core/class/layout.class.php b/core/class/layout.class.php index ea4699f..5e7f9c8 100644 --- a/core/class/layout.class.php +++ b/core/class/layout.class.php @@ -509,6 +509,14 @@ class layout extends common $this->getUser('group') === self::GROUP_MEMBER && $this->getData(['theme', 'menu', 'memberBar']) === true ) { + if ($this->getCoursesByUser($this->getUser('id'), $this->getUser('group'))) { + $itemsRight .= '
  • '; + } if ( ($this->getUser('group') >= self::GROUP_MEMBER && $this->getUser('permission', 'filemanager') === true) diff --git a/core/core.php b/core/core.php index dc22b42..0df83a3 100644 --- a/core/core.php +++ b/core/core.php @@ -50,7 +50,7 @@ class common const ACCESS_TIMER = 1800; // Numéro de version - const ZWII_VERSION = '1.4.08'; + const ZWII_VERSION = '1.4.09'; // URL autoupdate const ZWII_UPDATE_URL = 'https://forge.chapril.org/ZwiiCMS-Team/campus-update/raw/branch/master/'; @@ -1439,7 +1439,7 @@ class common case self::GROUP_VISITOR: foreach ($c as $courseId => $value) { $students = $this->getData(['enrolment', $courseId]); - if (is_array($students[$userId]) === false) { + if (isset($students[$userId]) === false) { unset($c[$courseId]); } } diff --git a/core/layout/common.css b/core/layout/common.css index ad5792f..09e6ae3 100644 --- a/core/layout/common.css +++ b/core/layout/common.css @@ -604,6 +604,18 @@ nav li ul li { text-align: left; } +nav li ul #barSelectCourse { + text-align: left; +} +nav #barSelectCourse { + width: 150px; + border: 0; + color: #111112; + font-size: 1em; + background-color: rgba(255, 255, 255, 1); + padding: 8px; + margin-top: 5px; +} /* nav .navSub a{