%PDF- %PDF-
Server IP : 37.220.80.31 / Your IP : 3.146.152.135 Web Server : Apache/2.4.52 (Ubuntu) System : Linux 3051455-guretool.twc1.net 5.15.0-107-generic #117-Ubuntu SMP Fri Apr 26 12:26:49 UTC 2024 x86_64 User : www-root ( 1010) PHP Version : 7.4.33 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, MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/www-root/data/www/dev.artlot24.ru/bitrix/modules/sale/install/components/bitrix/sale.location.selector.search/templates/.default/ |
Upload File : |
<? if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true) die(); $arParams['JS_CONTROL_GLOBAL_ID'] = $this->__component->tryParseStringStrict($arParams['JS_CONTROL_GLOBAL_ID']); $arParams['JS_CONTROL_DEFERRED_INIT'] = $this->__component->tryParseStringStrict($arParams['JS_CONTROL_DEFERRED_INIT']); $arParams['JS_CALLBACK'] = $this->__component->tryParseStringStrict($arParams['JS_CALLBACK']); $arParams['INITIALIZE_BY_GLOBAL_EVENT'] = $this->__component->tryParseStringStrict($arParams['INITIALIZE_BY_GLOBAL_EVENT']); $arResult['PATH_NAMES'] = array(); // deprecated $arResult['KNOWN_ITEMS'] = array(); if(is_array($arResult['LOCATION']) && !empty($arResult['LOCATION'])) { // form knownItems object here (later it will be taken from PRECACHED_POOL, but for now only from LOCATION and PATH) $arResult['KNOWN_ITEMS'] = array($arResult['LOCATION']['ID'] => $arResult['LOCATION']); if(is_array($arResult['PATH'])) { $path = array(); $pathNames = array(); foreach($arResult['PATH'] as $location) { if($location['ID'] != $arResult['LOCATION']['ID']) $path[] = $location['ID']; $arResult['PATH_NAMES'][$location['ID']] = $location['NAME']; // deprecated } $path = array_reverse($path); $arResult['KNOWN_ITEMS'][$arResult['LOCATION']['ID']]['PATH'] = $path; // now add path items themselve foreach($arResult['PATH'] as $location) { if($location['ID'] == $arResult['LOCATION']['ID']) continue; array_shift($path); $location['PATH'] = $path; $arResult['KNOWN_ITEMS'][$location['ID']] = $location; } } $arResult['LOCATION']['VALUE'] = $arResult['LOCATION']['ID']; $arResult['LOCATION']['DISPLAY'] = $arResult['LOCATION']['NAME']; foreach($arResult['KNOWN_ITEMS'] as &$item) { $item['VALUE'] = $item['ID']; $item['DISPLAY'] = $item['NAME']; // prevent garbage from figuring at in-page JSON unset($item['LATITUDE']); unset($item['LONGITUDE']); unset($item['SORT']); unset($item['PARENT_ID']); unset($item['ID']); unset($item['NAME']); unset($item['SHORT_NAME']); unset($item['LEFT_MARGIN']); unset($item['RIGHT_MARGIN']); } } $arResult['RANDOM_TAG'] = rand(999, 99999); $this->arResult['ADMIN_MODE'] = defined("ADMIN_SECTION") && ADMIN_SECTION == true; // modes $modes = array(); if((defined("ADMIN_SECTION") && ADMIN_SECTION == true) || $arParams['ADMIN_MODE'] == 'Y') $modes[] = 'admin'; if (defined("PUBLIC_MODE") && PUBLIC_MODE == 1) { $modes[] = 'admin'; } foreach($modes as &$mode) $mode = 'bx-'.$mode.'-mode'; $arResult['MODE_CLASSES'] = implode(' ', $modes);