]> _ Git - fluidbook-v3.git/commitdiff
wip #7137 @0:10
authorsoufiane <soufiane@cubedesigners.com>
Thu, 10 Apr 2025 15:30:35 +0000 (17:30 +0200)
committersoufiane <soufiane@cubedesigners.com>
Thu, 10 Apr 2025 15:30:35 +0000 (17:30 +0200)
framework/application/forms/RequestQuote.php
framework/application/views/helpers/HeaderContactNav.php
framework/application/views/helpers/HeaderLogo.php
framework/application/views/helpers/QuoteForm.php

index bc88e34555a443787c1793b4f8adb27a5bc73577..6de7256e49ce3a8b54b6db2f4d71782b1f0b53fd 100644 (file)
@@ -98,7 +98,7 @@ class Fluidbook_Form_RequestQuote extends CubeIT_Form
 
                // Inject tips HTML into form via placeholder
                $tips = $this->getView()->markupDotclear($this->getView()->option('quote_form_tips'), [], ['class' => 'tips']);
-        if(strstr(SITE_URL, 'elearning')) {
+        if(strstr(APPLICATION_ENV, 'learning')) {
             $tips = "";
         }
                return str_replace('<!-- TIPS -->', '<div id="wrap-tips">' . $tips . '</div>', $form);
index 2dc9acce15f9ea878916eff37976fcf4f115066b..9b4c270d88e8d8d261a04b4bdf9a7cb2bfb8bc10 100644 (file)
@@ -7,7 +7,7 @@ class Fluidbook_View_Helper_HeaderContactNav extends CubeIT_View_Helper_Abstract
        public function headerContactNav() {\r
                $res = array();\r
 \r
-        if(strstr(SITE_URL, 'elearning')) {\r
+        if(strstr(APPLICATION_ENV, 'learning')) {\r
             $this->htmlDeclaration()->addClass('elearning');\r
         }\r
 \r
index 65daef59de617fb5a2079254ca56ec3c9f089736..b73992ea20909f32d6c697bbc0ee2b68d964b4d5 100644 (file)
@@ -8,7 +8,7 @@ class Fluidbook_View_Helper_HeaderLogo extends CubeIT_View_Helper_Abstract {
         $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
+        if(strstr(APPLICATION_ENV, 'learning')) {\r
             $logoLeave = '/images/logo/leave-2.svg';\r
             $logoWhite = '/images/logo/text-white-2.svg';\r
             $logoDark = '/images/logo/text-dark-2.svg';\r
index 6e1a434fbe413a3606c997b07ea1a59bab20efc7..0ab08df16844fbbeeb92b5bdbd949219bfa66b15 100644 (file)
@@ -21,7 +21,7 @@ class Fluidbook_View_Helper_QuoteForm extends CubeIT_View_Helper_Abstract
 
         $res = '<div class="text col-2">';
         $res .= $this->title($this->option('quote_heading'), 'h2');
-        if(!strstr(SITE_URL, "elearning")) {
+        if(!strstr(APPLICATION_ENV, "learning")) {
             $res .= $this->markupDotclear($this->option('quote_description'));
         }
         if ($contact) {