From c04cf63b622d2f2f2c8671492df76414d284b4c2 Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Fri, 8 Sep 2023 21:14:08 +0200 Subject: [PATCH] bouton Cours dans la barre d'outils --- core/class/layout.class.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/core/class/layout.class.php b/core/class/layout.class.php index ddf0427..ec19c67 100644 --- a/core/class/layout.class.php +++ b/core/class/layout.class.php @@ -893,10 +893,9 @@ class layout extends common if ($this->getUser('password') === $this->getInput('ZWII_USER_PASSWORD')) { // Items de gauche $leftItems = ''; - // Sélecteur de langues + // Sélecteur de cours if ($this->getUser('group') >= self::GROUP_TEACHER) { $c = 0; - $leftItem = ''; foreach (self::$languages as $key => $value) { if (is_dir(self::DATA_DIR . $key)) { $c++; @@ -910,6 +909,11 @@ class layout extends common $leftItems .= ''; } } + // Bouton Gérer les cours + $leftItems .= '
  • ' . template::ico('cubes', [ + 'href' => helper::baseUrl() . 'course', + 'help' => 'Cours' + ]) . '
  • '; // Liste des pages if ($this->getUser('group') >= self::GROUP_TEACHER) { $leftItems .= '