Current Path : /var/www/www-root/data/www/monolith-realty.ru/bitrix/components/bitrix/photo.random/ |
Current File : /var/www/www-root/data/www/monolith-realty.ru/bitrix/components/bitrix/photo.random/.parameters.php |
<?php if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true) { die(); } /** @var array $arCurrentValues */ use Bitrix\Main\Loader; if (!Loader::includeModule('iblock')) { return; } $iblockExists = (!empty($arCurrentValues['IBLOCK_ID']) && (int)$arCurrentValues['IBLOCK_ID'] > 0); $arIBlockType = CIBlockParameters::GetIBlockTypes(); $arIBlock=array( "-" => GetMessage("IBLOCK_ANY"), ); $iblockFilter = [ 'ACTIVE' => 'Y', ]; if (!empty($arCurrentValues['IBLOCK_TYPE'])) { $iblockFilter['TYPE'] = $arCurrentValues['IBLOCK_TYPE']; } $rsIBlock = CIBlock::GetList(["SORT" => "ASC"], $iblockFilter); while($arr=$rsIBlock->Fetch()) { $arIBlock[$arr["ID"]] = "[".$arr["ID"]."] ".$arr["NAME"]; } $arComponentParameters = [ "GROUPS" => [ ], "PARAMETERS" => [ "IBLOCK_TYPE" => [ "PARENT" => "BASE", "NAME" => GetMessage("IBLOCK_TYPE"), "TYPE" => "LIST", "VALUES" => $arIBlockType, "REFRESH" => "Y", ], "IBLOCKS" => [ "PARENT" => "BASE", "NAME" => GetMessage("IBLOCK_IBLOCK"), "TYPE" => "LIST", "VALUES" => $arIBlock, "MULTIPLE"=>"Y", "REFRESH" => "Y", ], "PARENT_SECTION" => [ "PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("IBLOCK_SECTION_ID"), "TYPE" => "STRING", "DEFAULT" => '', ], "DETAIL_URL" => CIBlockParameters::GetPathTemplateParam( "DETAIL", "DETAIL_URL", GetMessage("IBLOCK_DETAIL_URL"), "", "URL_TEMPLATES" ), "CACHE_TIME" => ["DEFAULT"=>180], "CACHE_GROUPS" => [ "PARENT" => "CACHE_SETTINGS", "NAME" => GetMessage("CP_BPR_CACHE_GROUPS"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y", ], ], ];