} /******************************************************************** /Data ********************************************************************/ /******************************************************************** For custom components ********************************************************************/ foreach ($arResult["URL"] as $key => $val) { $arResult[$key . "_LINK"] = $val; } /******************************************************************** /For custom components ********************************************************************/ CUtil::InitJSCore(array('window', 'ajax')); // Clean saved data before show CImageUploader::CleanSavedData(); $oPhoto::CheckUploaderType($arParams["UPLOADER_TYPE"]); $this->IncludeComponentTemplate(); /******************************************************************** Standart ********************************************************************/ /************** Title **********************************************/ if ($arParams["SET_TITLE"] != "N") { $APPLICATION->SetTitle(GetMessage("P_TITLE")); } /************** Breadcrumb *****************************************/ if ($arParams["SET_NAV_CHAIN"] == "Y") { $bFound = $arParams["BEHAVIOUR"] != "USER"; foreach ($arResult["SECTION"]["PATH"] as $arPath) { if (!$bFound) { $bFound = $arResult["GALLERY"]["ID"] == $arPath["ID"];