]> _ Git - fluidbook-v3.git/commitdiff
wait #7427 @0:10
authorsoufiane <soufiane@cubedesigners.com>
Thu, 10 Apr 2025 12:55:13 +0000 (14:55 +0200)
committersoufiane <soufiane@cubedesigners.com>
Thu, 10 Apr 2025 12:55:13 +0000 (14:55 +0200)
framework/application/views/helpers/HeaderLogo.php

index b70fc84f0860826268888e540714f29667f02fb6..65daef59de617fb5a2079254ca56ec3c9f089736 100644 (file)
@@ -5,8 +5,17 @@ class Fluidbook_View_Helper_HeaderLogo extends CubeIT_View_Helper_Abstract {
         * @return string\r
         */\r
        public function headerLogo() {\r
-               $logos = $this->image('/images/logo/leave-2.svg', 'Fluidbook logo', -1, -1, array('class' => 'leave'));\r
-               $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'));\r
+        $logoLeave = '/images/logo/leave.svg';\r
+        $logoWhite = '/images/logo/text-white.svg';\r
+        $logoDark = '/images/logo/text-dark.svg';\r
+        if(strstr(SITE_URL, 'elearning')) {\r
+            $logoLeave = '/images/logo/leave-2.svg';\r
+            $logoWhite = '/images/logo/text-white-2.svg';\r
+            $logoDark = '/images/logo/text-dark-2.svg';\r
+        }\r
+\r
+               $logos = $this->image($logoLeave, 'Fluidbook logo', -1, -1, array('class' => 'leave'));\r
+               $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'));\r
 \r
                return $this->link($logos, '/', array('class' => 'logo'));\r
        }\r