File manager - Edit - /home/c14075/dragmet-ural.ru/www/bitrix/modules/iblock/install/components/bitrix/catalog.item/class.php
Back
<? use \Bitrix\Sale\Internals\FacebookConversion; if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) die(); class CatalogItemComponent extends CBitrixComponent { public function onPrepareComponentParams($params) { if (!empty($params['RESULT'])) { $this->arResult = $params['RESULT']; unset($params['RESULT']); } if (!empty($params['PARAMS'])) { $params += $params['PARAMS']; unset($params['PARAMS']); } if (isset($params['CUSTOM_SITE_ID'])) { $this->setSiteId($params['CUSTOM_SITE_ID']); } $params['DISPLAY_COMPARE'] = (bool)($params['DISPLAY_COMPARE'] ?? false); $params['BRAND_PROPERTY'] ??= ''; return $params; } public function executeComponent() { $this->arResult['IS_FACEBOOK_CONVERSION_CUSTOMIZE_PRODUCT_EVENT_ENABLED'] = \Bitrix\Main\Loader::includeModule('sale') && FacebookConversion::isEventEnabled('CustomizeProduct') ; $this->includeComponentTemplate(); } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.28 |
proxy
|
phpinfo
|
Settings