uawdijnntqw1x1x1
IP : 3.145.177.28
Hostname : axolotl
Kernel : Linux axolotl 4.9.0-13-amd64 #1 SMP Debian 4.9.228-1 (2020-07-05) x86_64
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
OS : Linux
PATH:
/
var
/
www
/
axolotl
/
data
/
www
/
yar.axolotls.ru
/
1c9cb
/
..
/
bitrix
/
modules
/
landing
/
lib
/
subtype
/
component.php
/
/
<?php namespace Bitrix\Landing\Subtype; use \Bitrix\Landing\Manager; use \Bitrix\Main\Localization\Loc; Loc::loadMessages(__FILE__); class Component { /** * Prepare manifest. * @param array $manifest Block's manifest. * @param \Bitrix\Landing\Block $block Block instance. * @param array $params Additional params. * @return array */ public static function prepareManifest(array $manifest, \Bitrix\Landing\Block $block = null, array $params = array()) { $settings = \Bitrix\Landing\Hook\Page\Settings::getDataForSite( $block->getSiteId() ); // set predefined \Bitrix\Landing\Node\Component::setPredefineForDynamicProps(array( 'IBLOCK_ID' => $settings['IBLOCK_ID'], 'USE_ENHANCED_ECOMMERCE' => 'Y', 'SHOW_DISCOUNT_PERCENT' => 'Y', 'LABEL_PROP' => array( 'NEWPRODUCT', 'SALELEADER', 'SPECIALOFFER' ), 'CONVERT_CURRENCY' => 'Y' )); if ( isset($params['required']) && $params['required'] == 'catalog' ) { // check catalog $settings = \Bitrix\Landing\Hook\Page\Settings::getDataForSite( $block->getSiteId() ); if (!$settings['IBLOCK_ID']) { $manifest['requiredUserAction'] = array( 'header' => Loc::getMessage('LANDING_BLOCK_EMPTY_CATLOG_TITLE'), 'description' => Loc::getMessage('LANDING_BLOCK_EMPTY_CATLOG_DESC'), 'text' => Loc::getMessage('LANDING_BLOCK_EMPTY_CATLOG_LINK'), 'href' => '#page_url_catalog_edit', 'className' => 'landing-required-link' ); } else if ( !\Bitrix\Main\ModuleManager::isModuleInstalled('bitrix24') && \Bitrix\Main\Loader::includeModule('iblock') && !\Bitrix\Iblock\Model\PropertyFeature::isEnabledFeatures() ) { $manifest['requiredUserAction'] = array( 'header' => Loc::getMessage('LANDING_BLOCK_EMPTY_CATLOG_TITLE'), 'description' => Loc::getMessage('LANDING_BLOCK_CATALOG_CONFIG_FEATURE'), 'text' => Loc::getMessage('LANDING_BLOCK_EMPTY_CATLOG_LINK'), 'href' => '/bitrix/admin/settings.php?lang=' . LANGUAGE_ID . '&mid=iblock', 'className' => 'landing-required-link' ); } // add settings link if ($settings['IBLOCK_ID'] && !isset($manifest['requiredUserAction'])) { if ( !isset($manifest['block']) || !is_array($manifest['block']) ) { $manifest['block'] = array(); } if (Manager::isB24()) { $link = '/shop/settings/menu_catalog_' . $settings['IBLOCK_ID'] . '/'; } else if (\Bitrix\Main\Loader::includeModule('iblock')) { if ($iblock = \CIBlock::getById($settings['IBLOCK_ID'])->fetch()) { $link = '/bitrix/admin/cat_product_list.php?IBLOCK_ID=' . $iblock['ID'] . '&type=' . $iblock['IBLOCK_TYPE_ID'] . '&lang=' . LANGUAGE_ID . '&find_section_section=-1'; } } if (isset($link)) { $manifest['block']['attrsFormDescription'] = '<a href="' . $link . '" target="_blank">' . Loc::getMessage('LANDING_BLOCK_CATALOG_CONFIG') . '</a>'; } } } return $manifest; } }
/var/www/axolotl/data/www/yar.axolotls.ru/1c9cb/../bitrix/modules/landing/lib/subtype/component.php