// 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);
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
$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
$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) {