From f577cbe1f7992ecef78f2ec0a1da0f9f9171df12 Mon Sep 17 00:00:00 2001 From: soufiane Date: Thu, 10 Apr 2025 14:55:13 +0200 Subject: [PATCH] wait #7427 @0:10 --- framework/application/views/helpers/HeaderLogo.php | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/framework/application/views/helpers/HeaderLogo.php b/framework/application/views/helpers/HeaderLogo.php index b70fc84..65daef5 100644 --- a/framework/application/views/helpers/HeaderLogo.php +++ b/framework/application/views/helpers/HeaderLogo.php @@ -5,8 +5,17 @@ class Fluidbook_View_Helper_HeaderLogo extends CubeIT_View_Helper_Abstract { * @return string */ public function headerLogo() { - $logos = $this->image('/images/logo/leave-2.svg', 'Fluidbook logo', -1, -1, array('class' => 'leave')); - $logos .= $this->htmlElement($this->image('/images/logo/text-white-2.svg', 'Fluidbook', -1, -1, array('class' => 'text-white')) . $this->image('/images/logo/text-dark-2.svg', 'Fluidbook', -1, -1, array('class' => 'text-dark')), 'div', array('class' => 'text')); + $logoLeave = '/images/logo/leave.svg'; + $logoWhite = '/images/logo/text-white.svg'; + $logoDark = '/images/logo/text-dark.svg'; + if(strstr(SITE_URL, 'elearning')) { + $logoLeave = '/images/logo/leave-2.svg'; + $logoWhite = '/images/logo/text-white-2.svg'; + $logoDark = '/images/logo/text-dark-2.svg'; + } + + $logos = $this->image($logoLeave, 'Fluidbook logo', -1, -1, array('class' => 'leave')); + $logos .= $this->htmlElement($this->image($logoWhite, 'Fluidbook', -1, -1, array('class' => 'text-white')) . $this->image($logoDark, 'Fluidbook', -1, -1, array('class' => 'text-dark')), 'div', array('class' => 'text')); return $this->link($logos, '/', array('class' => 'logo')); } -- 2.39.5