From: soufiane Date: Thu, 10 Apr 2025 15:30:35 +0000 (+0200) Subject: wip #7137 @0:10 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=eef6f11f1737dbaa41520b291e3c60e5182278b0;p=fluidbook-v3.git wip #7137 @0:10 --- diff --git a/framework/application/forms/RequestQuote.php b/framework/application/forms/RequestQuote.php index bc88e34..6de7256 100644 --- a/framework/application/forms/RequestQuote.php +++ b/framework/application/forms/RequestQuote.php @@ -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 . '
', $form); diff --git a/framework/application/views/helpers/HeaderContactNav.php b/framework/application/views/helpers/HeaderContactNav.php index 2dc9acc..9b4c270 100644 --- a/framework/application/views/helpers/HeaderContactNav.php +++ b/framework/application/views/helpers/HeaderContactNav.php @@ -7,7 +7,7 @@ class Fluidbook_View_Helper_HeaderContactNav extends CubeIT_View_Helper_Abstract public function headerContactNav() { $res = array(); - if(strstr(SITE_URL, 'elearning')) { + if(strstr(APPLICATION_ENV, 'learning')) { $this->htmlDeclaration()->addClass('elearning'); } diff --git a/framework/application/views/helpers/HeaderLogo.php b/framework/application/views/helpers/HeaderLogo.php index 65daef5..b73992e 100644 --- a/framework/application/views/helpers/HeaderLogo.php +++ b/framework/application/views/helpers/HeaderLogo.php @@ -8,7 +8,7 @@ class Fluidbook_View_Helper_HeaderLogo extends CubeIT_View_Helper_Abstract { $logoLeave = '/images/logo/leave.svg'; $logoWhite = '/images/logo/text-white.svg'; $logoDark = '/images/logo/text-dark.svg'; - if(strstr(SITE_URL, 'elearning')) { + if(strstr(APPLICATION_ENV, 'learning')) { $logoLeave = '/images/logo/leave-2.svg'; $logoWhite = '/images/logo/text-white-2.svg'; $logoDark = '/images/logo/text-dark-2.svg'; diff --git a/framework/application/views/helpers/QuoteForm.php b/framework/application/views/helpers/QuoteForm.php index 6e1a434..0ab08df 100644 --- a/framework/application/views/helpers/QuoteForm.php +++ b/framework/application/views/helpers/QuoteForm.php @@ -21,7 +21,7 @@ class Fluidbook_View_Helper_QuoteForm extends CubeIT_View_Helper_Abstract $res = '
'; $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) {