- Модуль: landing
- Путь к файлу: ~/bitrix/modules/landing/lib/hook/page/cookies.php
- Класс: BitrixLandingHookPageCookies
- Вызов: Cookies::exec
public function exec(): void
{
if ($this->execCustom())
{
return;
}
if ($this->fields['USE']->getValue() == 'Y')
{
$infoMode = $this->isInformationMode();
if (!$infoMode)
{
self::$enabled = true;
Manager::clearPageView('Noscript');
}
ob_start();
Manager::getApplication()->includeComponent(
'bitrix:landing.cookies',
'',
[
'USE' => $this->fields['USE']->getValue(),
'POSITION' => $this->fields['POSITION']->getValue(),
'COLOR_BG' => $this->fields['COLOR_BG']->getValue(),
'COLOR_TEXT' => $this->fields['COLOR_TEXT']->getValue(),
'AGREEMENT_ID' => $this->fields['AGREEMENT_ID']->getValue(),
'INFORMATION' => $infoMode ? 'Y' : 'N'
],
false
);
$hookContent = ob_get_contents();
ob_end_clean();
echo $hookContent;
}
}