$hilightPos = array_search($hilightID, array_keys($arResult["NAV_RESULT"]->arResult)); $pageID = intval($hilightPos / $arParams["PAGE_ELEMENTS"]) + 1; } $arResult["NAV_RESULT"]->NavStart($arParams["PAGE_ELEMENTS"], false, $pageID); $arResult["NAV_STRING"] = $arResult["NAV_RESULT"]->GetPageNavStringEx($navComponentObject, GetMessage("WD_DOCUMENTS"), $arParams["PAGE_NAVIGATION_TEMPLATE"], true); } $sTaskUrl = ""; $arIconHash = array(); $allowableIblockForSymlink = false; $possibleIblockCode = array('user_files', 'group_files', 'shared_files'); $currentIblockCode = ''; foreach ($possibleIblockCode as $type) { $wdIblockOptions = \CWebDavIblock::libOptions($type, false, SITE_ID); if (is_set($wdIblockOptions, 'id') && intval($wdIblockOptions['id']) > 0) { if ($ob->IBLOCK_ID == $wdIblockOptions['id']) { CWebDavIblock::$possibleUseSymlinkByInternalSections = $allowableIblockForSymlink = $type != 'group_files'; $currentIblockCode = $type; } } } $selfSharedSections = $sectionsIds = $dataNavResults = array(); while ($res = $arResult["NAV_RESULT"]->Fetch()) { $dataNavResults[] = $res; if ($res["TYPE"] == "S") { $sectionsIds[] = $res['ID']; } } if ($sectionsIds) { //todo optimize! $filter = array('SECTION_ID' => $sectionsIds); if ($currentIblockCode && $currentIblockCode == 'shared_files') {