$VMiblockId = $arr["ID"] > 0 ? $arr["ID"] : 0; } } $Params['VMiblockId'] = $VMiblockId; $Params['VMPath'] = isset($arParams["PATH_TO_VIDEO_MEETING"]) ? $arParams["PATH_TO_VIDEO_MEETING"] : ''; $Params['VMUserGroups'] = isset($arParams["VIDEO_MEETING_USERGROUPS"]) ? $arParams["VIDEO_MEETING_USERGROUPS"] : array(1); } $APPLICATION->ResetException(); // Create new instance of Event Calendar object $EC = new CEventCalendar(); $EC->Init($Params); // Init with $Params array if (isset($_REQUEST['action'])) { $EC->Request($_REQUEST['action']); } else { $EC->Show(array('initDate' => $arParams["INIT_DATE"], 'weekHolidays' => $arParams['WEEK_HOLIDAYS'], 'workTime' => array(intVal($arParams['WORK_TIME_START']), intVal($arParams['WORK_TIME_END'])), 'yearHolidays' => $arParams['YEAR_HOLIDAYS'])); } if ($ex = $APPLICATION->GetException()) { return ShowError($ex->GetString()); } // Set title and navigation $arParams["SET_TITLE"] = $arParams["SET_TITLE"] == "Y" ? "Y" : "N"; $arParams["SET_NAV_CHAIN"] = $arParams["SET_NAV_CHAIN"] == "Y" ? "Y" : "N"; //Turn OFF by default if ($arParams["STR_TITLE"]) { $arParams["STR_TITLE"] = trim($arParams["STR_TITLE"]); } else { if ($arParams['OWNER_TYPE'] == "GROUP" || $arParams['OWNER_TYPE'] == "USER") { $feature = "calendar"; $arEntityActiveFeatures = CSocNetFeatures::GetActiveFeaturesNames($arParams['OWNER_TYPE'] == "GROUP" ? SONET_ENTITY_GROUP : SONET_ENTITY_USER, $arParams['OWNER_ID']); $strFeatureTitle = array_key_exists($feature, $arEntityActiveFeatures) && StrLen($arEntityActiveFeatures[$feature]) > 0 ? $arEntityActiveFeatures[$feature] : GetMessage("EC_SONET_CALENDAR");