File manager - Edit - /home/c14075/dragmet-ural.ru/www/bitrix/components/bitrix/landing.socialnetwork.preview/class.php
Back
<?php if (!defined('B_PROLOG_INCLUDED') || B_PROLOG_INCLUDED !== true) { die(); } use \Bitrix\Main\Loader; use \Bitrix\Landing\Landing\UrlPreview; class LandingSocialnetworkPreviewComponent extends \CBitrixComponent { /** * Base executable method. * @return void */ public function executeComponent() { $this->arResult['PREVIEW'] = []; $landingId = isset($this->arParams['LANDING_ID']) ? (int)$this->arParams['LANDING_ID'] : 0; if ($landingId && Loader::includeModule('landing')) { \Bitrix\Landing\Hook::setEditMode(true); $this->arResult['PREVIEW'] = UrlPreview::getPreview($landingId); } if ($this->arResult['PREVIEW']) { $this->includeComponentTemplate(); } } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.26 |
proxy
|
phpinfo
|
Settings