From 67a4655b0c0be57c8e19c87f0af2b0d7c2043860 Mon Sep 17 00:00:00 2001 From: soufiane Date: Thu, 10 Apr 2025 17:09:49 +0200 Subject: [PATCH] wip #7137 @0:20 --- framework/application/forms/RequestQuote.php | 3 +++ framework/application/views/helpers/QuoteForm.php | 4 +++- less/102-intro.less | 11 ++++++++--- 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/framework/application/forms/RequestQuote.php b/framework/application/forms/RequestQuote.php index 720c163..bc88e34 100644 --- a/framework/application/forms/RequestQuote.php +++ b/framework/application/forms/RequestQuote.php @@ -98,6 +98,9 @@ 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')) { + $tips = ""; + } return str_replace('', '
' . $tips . '
', $form); } diff --git a/framework/application/views/helpers/QuoteForm.php b/framework/application/views/helpers/QuoteForm.php index e7324f3..6e1a434 100644 --- a/framework/application/views/helpers/QuoteForm.php +++ b/framework/application/views/helpers/QuoteForm.php @@ -21,7 +21,9 @@ class Fluidbook_View_Helper_QuoteForm extends CubeIT_View_Helper_Abstract $res = '
'; $res .= $this->title($this->option('quote_heading'), 'h2'); - $res .= $this->markupDotclear($this->option('quote_description')); + if(!strstr(SITE_URL, "elearning")) { + $res .= $this->markupDotclear($this->option('quote_description')); + } if ($contact) { $res .= '
' . $this->contactDetails() . '
'; } diff --git a/less/102-intro.less b/less/102-intro.less index dd5d83a..f331147 100644 --- a/less/102-intro.less +++ b/less/102-intro.less @@ -80,13 +80,18 @@ .border-button-fill(@color-text, @color-text, 5%); .longarrow-button(12px, 40px, 18px); margin-top: 2em; - .background-button-green-special(); + .background-button-green(); &:hover { color: @color-text; } } -.elearning &[data-header-theme="light"] .intro-button { - .background-button-pink(); +.elearning { + .intro-button { + .background-button-green(); + } + &[data-header-theme="light"] .intro-button { + .background-button-pink(); + } } -- 2.39.5