5 include_once
'Services/Mail/classes/class.ilMailGlobalServices.php';
40 function ilMainMenuGUI($a_target =
"_top", $a_use_start_template =
false)
44 $this->tpl =
new ilTemplate(
"tpl.main_menu.html",
true,
true,
47 $this->target = $a_target;
48 $this->start_template = $a_use_start_template;
51 if($ilUser->getId() != ANONYMOUS_USER_ID)
59 $this->
setMode(self::MODE_FULL);
62 include_once
'./Services/Container/classes/class.ilMemberViewSettings.php';
72 $this->mode = (int)$a_value;
82 $this->topbar_back_url = $a_url;
83 $this->topbar_back_caption = trim($a_caption);
90 case self::MODE_TOPBAR_ONLY:
91 case self::MODE_TOPBAR_REDUCED:
92 case self::MODE_TOPBAR_MEMBERVIEW:
93 return "ilFixedTopSpacerBarOnly";
96 return "ilFixedTopSpacer";
105 $this->active = $a_active;
113 echo
"ilMainMenu->setTemplate is deprecated. Use getHTML instead.";
123 echo
"ilMainMenu->getTemplate is deprecated. Use getHTML instead.";
133 $this->login_target_par = $a_val;
141 return $this->login_target_par;
149 include_once(
"./Services/UIComponent/GroupedList/classes/class.ilGroupedListGUI.php");
151 $gr_list->setAsDropDown(
true);
153 $languages = $lng->getInstalledLanguages();
154 if(
sizeof($languages) > 1)
156 foreach ($languages as $lang_key)
158 $base = substr(
$_SERVER[
"REQUEST_URI"], strrpos(
$_SERVER[
"REQUEST_URI"],
"/") + 1);
159 $base = preg_replace(
"/&*lang=[a-z]{2}&*/",
"", $base);
162 $link = str_replace(
"?&",
"?", $link);
164 $gr_list->addEntry($lng->_lookupEntry($lang_key,
"meta",
"meta_l_".$lang_key), $link);
166 return $gr_list->getHTML();
173 function setTemplateVars()
179 $this->tpl->setVariable(
"HEADER_URL", $this->
getHeaderURL());
183 include_once(
"./Modules/SystemFolder/classes/class.ilObjSystemFolder.php");
184 $header_top_title = ilObjSystemFolder::_getHeaderTitle();
185 if (trim($header_top_title) !=
"" && $this->tpl->blockExists(
"header_top_title"))
187 $this->tpl->setCurrentBlock(
"header_top_title");
188 $this->tpl->setVariable(
"TXT_HEADER_TITLE", $header_top_title);
189 $this->tpl->parseCurrentBlock();
196 $pl_names = $ilPluginAdmin->getActivePluginsForSlot(
IL_COMP_SERVICE,
"UIComponent",
"uihk");
198 if($this->
getMode() != self::MODE_TOPBAR_REDUCED &&
199 $this->
getMode() != self::MODE_TOPBAR_MEMBERVIEW)
202 include_once
'Services/Search/classes/class.ilSearchSettings.php';
205 include_once
'./Services/Search/classes/class.ilMainMenuSearchGUI.php';
210 include_once(
"./Services/UIComponent/classes/class.ilUIHookProcessor.php");
212 array(
"main_menu_gui" => $this,
"main_menu_search_gui" => $main_search));
213 if (!$uip->replaced())
215 $html = $main_search->getHTML();
221 $this->tpl->setVariable(
'SEARCHBOX',
$html);
234 if($this->
getMode() == self::MODE_FULL)
239 include_once(
"./Services/UIComponent/classes/class.ilUIHookProcessor.php");
241 array(
"main_menu_gui" => $this));
242 if (!$uip->replaced())
244 $mmle_tpl =
new ilTemplate(
"tpl.main_menu_list_entries.html",
true,
true,
"Services/MainMenu");
247 $mmle_html = $uip->getHTML($mmle_html);
249 $this->tpl->setVariable(
"MAIN_MENU_LIST_ENTRIES", $mmle_html);
252 if($this->
getMode() != self::MODE_TOPBAR_MEMBERVIEW)
254 $link_dir = (defined(
"ILIAS_MODULE"))
259 if (
$_SESSION[
"AccountId"] == ANONYMOUS_USER_ID)
261 include_once
'Services/Registration/classes/class.ilRegistrationSettingsGUI.php';
264 $this->tpl->setCurrentBlock(
"registration_link");
265 $this->tpl->setVariable(
"TXT_REGISTER",$lng->txt(
"register"));
266 $this->tpl->setVariable(
"LINK_REGISTER", $link_dir.
"register.php?client_id=".rawurlencode(CLIENT_ID).
"&lang=".$ilias->account->getCurrentLanguage());
267 $this->tpl->parseCurrentBlock();
271 $selection = self::getLanguageSelection();
276 $this->tpl->setVariable(
"TXT_LANGSELECT", $lng->txt(
"language"));
278 $this->tpl->setVariable(
"LANG_SELECT", $selection);
281 $this->tpl->setCurrentBlock(
"userisanonymous");
282 $this->tpl->setVariable(
"TXT_NOT_LOGGED_IN",$lng->txt(
"not_logged_in"));
283 $this->tpl->setVariable(
"TXT_LOGIN",$lng->txt(
"log_in"));
289 $this->tpl->setVariable(
"LINK_LOGIN",
290 $link_dir.
"login.php?target=".$target_str.
"&client_id=".rawurlencode(CLIENT_ID).
"&cmd=force_login&lang=".$ilias->account->getCurrentLanguage());
291 $this->tpl->parseCurrentBlock();
295 if($this->
getMode() != self::MODE_TOPBAR_REDUCED && !$ilUser->isAnonymous())
297 $notificationSettings =
new ilSetting(
'notifications');
298 $chatSettings =
new ilSetting(
'chatroom');
305 $this->tpl->touchBlock(
'osd_container');
307 include_once
"Services/jQuery/classes/class.iljQueryUtil.php";
310 include_once
'Services/MediaObjects/classes/class.ilPlayerUtil.php';
313 $tpl->addJavaScript(
'Services/Notifications/templates/default/notifications.js');
314 $tpl->addCSS(
'Services/Notifications/templates/default/osd.css');
316 require_once
'Services/Notifications/classes/class.ilNotificationOSDHandler.php';
317 require_once
'Services/UIComponent/Glyph/classes/class.ilGlyphGUI.php';
321 $this->tpl->setVariable(
'INITIAL_NOTIFICATIONS', json_encode($notifications));
322 $this->tpl->setVariable(
'OSD_POLLING_INTERVALL', $notificationSettings->get(
'osd_polling_intervall') ? $notificationSettings->get(
'osd_polling_intervall') :
'60');
323 $this->tpl->setVariable(
'OSD_PLAY_SOUND', $chatSettings->get(
'play_invitation_sound') && $ilUser->getPref(
'chat_play_invitation_sound') ?
'true' :
'false');
326 $this->tpl->setCurrentBlock(
"userisloggedin");
327 $this->tpl->setVariable(
"TXT_LOGIN_AS",$lng->txt(
"login_as"));
328 $user_img_src = $ilias->account->getPersonalPicturePath(
"small",
true);
329 $user_img_alt = $ilias->account->getFullname();
330 $this->tpl->setVariable(
"USER_IMG",
ilUtil::img($user_img_src, $user_img_alt));
331 $this->tpl->setVariable(
"USR_LINK_PROFILE",
"ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToProfile");
332 $this->tpl->setVariable(
"USR_TXT_PROFILE", $lng->txt(
"personal_profile"));
333 $this->tpl->setVariable(
"USR_LINK_SETTINGS",
"ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToSettings");
334 $this->tpl->setVariable(
"USR_TXT_SETTINGS", $lng->txt(
"personal_settings"));
335 $this->tpl->setVariable(
"TXT_LOGOUT2",$lng->txt(
"logout"));
336 $this->tpl->setVariable(
"LINK_LOGOUT2", $link_dir.
"logout.php?lang=".$ilias->account->getCurrentLanguage());
337 $this->tpl->setVariable(
"USERNAME",$ilias->account->getFullname());
338 $this->tpl->setVariable(
"LOGIN",$ilias->account->getLogin());
339 $this->tpl->setVariable(
"MATRICULATION",$ilias->account->getMatriculation());
340 $this->tpl->setVariable(
"EMAIL",$ilias->account->getEmail());
341 $this->tpl->parseCurrentBlock();
347 $this->tpl->setVariable(
"TOPBAR_CLASS",
" ilMemberViewMainHeader");
348 $this->tpl->setVariable(
"MEMBER_VIEW_INFO", $lng->txt(
"mem_view_long"));
351 if(!$this->topbar_back_url)
353 include_once(
"./Modules/SystemFolder/classes/class.ilObjSystemFolder.php");
354 $header_top_title = ilObjSystemFolder::_getHeaderTitle();
355 if (trim($header_top_title) !=
"" && $this->tpl->blockExists(
"header_top_title"))
357 $this->tpl->setCurrentBlock(
"header_top_title");
358 $this->tpl->setVariable(
"TXT_HEADER_TITLE", $header_top_title);
359 $this->tpl->parseCurrentBlock();
364 $this->tpl->setCurrentBlock(
"header_back_bl");
365 $this->tpl->setVariable(
"URL_HEADER_BACK", $this->topbar_back_url);
366 $this->tpl->setVariable(
"TXT_HEADER_BACK", $this->topbar_back_caption
367 ? $this->topbar_back_caption
368 : $lng->txt(
"back"));
369 $this->tpl->parseCurrentBlock();
374 if($this->
getMode() == self::MODE_FULL)
377 $this->tpl->setVariable(
"HEADER_URL", $this->
getHeaderURL());
381 include_once(
"./Modules/SystemFolder/classes/class.ilObjSystemFolder.php");
394 $this->tpl->setVariable(
"TXT_MAIN_MENU", $lng->txt(
"main_menu"));
396 $this->tpl->parseCurrentBlock();
414 $a_tpl->setCurrentBlock(
'status_text');
415 $a_tpl->setVariable(
'STATUS_TXT', $new_mails);
416 $a_tpl->parseCurrentBlock();
418 $a_tpl->setCurrentBlock(
'status_item');
420 $a_tpl->setVariable(
'STATUS_IMG_ALT', $lng->txt(
"mail"));
421 $a_tpl->setVariable(
'STATUS_HREF',
'ilias.php?baseClass=ilMailGUI');
422 $a_tpl->parseCurrentBlock();
428 $a_tpl->setCurrentBlock(
"status_box");
429 $a_tpl->parseCurrentBlock();
445 if (
$_SESSION[
"AccountId"] != ANONYMOUS_USER_ID)
448 $lng->txt(
"personal_desktop"),
"#");
452 if($ilAccess->checkAccess(
'visible',
'',ROOT_FOLDER_ID))
454 include_once(
'./Services/Link/classes/class.ilLink.php');
455 $nd = $tree->getNodeData(ROOT_FOLDER_ID);
456 $title =
$nd[
"title"];
457 if ($title ==
"ILIAS")
459 $title = $lng->txt(
"repository");
461 if (
$_SESSION[
"AccountId"] != ANONYMOUS_USER_ID || IS_PAYMENT_ENABLED)
470 if(IS_PAYMENT_ENABLED)
472 $title = $lng->txt(
"shop");
484 return $a_tpl->get();
496 function renderEntry($a_tpl, $a_id, $a_txt, $a_script, $a_target =
"_top")
500 $id = strtolower($a_id);
501 $id_up = strtoupper($a_id);
502 $a_tpl->setCurrentBlock(
"entry_".$id);
504 include_once(
"./Services/UIComponent/GroupedList/classes/class.ilGroupedListGUI.php");
507 if ($a_id ==
"repository")
510 $gl->setAsDropDown(
true);
512 include_once(
"./Services/Link/classes/class.ilLink.php");
518 $items = $ilNavigationHistory->getItems();
523 foreach($items as $k => $item)
525 if ($cnt >= 10)
break;
527 if (!isset($item[
"ref_id"]) || !isset(
$_GET[
"ref_id"]) ||
528 ($item[
"ref_id"] !=
$_GET[
"ref_id"] || !$first))
532 $gl->addGroupHeader($lng->txt(
"last_visited"),
"ilLVNavEnt");
538 $gl->addEntry($icon.
" ".$ititle, $item[
"link"],
"_top",
"",
"ilLVNavEnt");
546 $gl->addEntry(
"» ".$lng->txt(
"remove_entries"),
"#",
"",
547 "return il.MainMenu.removeLastVisitedItems('".
548 $ilCtrl->getLinkTargetByClass(
"ilnavigationhistorygui",
"removeEntries",
"",
true).
"');",
552 $a_tpl->setVariable(
"REP_EN_OV", $gl->getHTML());
556 if ($a_id ==
"desktop")
559 $gl->setAsDropDown(
true);
562 $gl->addEntry($lng->txt(
"overview"),
563 "ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToSelectedItems",
565 "left center",
"right center",
false);
568 if($ilSetting->get(
'disable_my_offers') == 0 &&
569 $ilSetting->get(
'disable_my_memberships') == 0)
571 $gl->addEntry($lng->txt(
"my_courses_groups"),
572 "ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToMemberships",
574 "left center",
"right center",
false);
578 if (!$this->
ilias->getSetting(
"disable_bookmarks"))
580 $gl->addEntry($lng->txt(
"bookmarks"),
"ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToBookmarks",
582 "left center",
"right center",
false);
586 if (!$this->
ilias->getSetting(
"disable_notes"))
588 $gl->addEntry($lng->txt(
"notes_and_comments"),
"ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToNotes",
590 "left center",
"right center",
false);
594 if ($ilSetting->get(
"block_activated_news"))
596 $gl->addEntry($lng->txt(
"news"),
"ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToNews",
598 "left center",
"right center",
false);
606 if(!$ilSetting->get(
"disable_personal_workspace"))
609 $gl->addEntry($lng->txt(
"personal_workspace"),
"ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToWorkspace",
611 "left center",
"right center",
false);
617 if ($ilSetting->get(
'user_portfolios'))
619 $gl->addEntry($lng->txt(
"portfolio"),
"ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToPortfolio",
621 "left center",
"right center",
false);
628 if ($skmg_set->get(
"enable_skmg"))
630 $gl->addEntry($lng->txt(
"skills"),
"ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToSkills",
632 "left center",
"right center",
false);
638 include_once(
"Services/Tracking/classes/class.ilObjUserTracking.php");
644 $gl->addEntry($lng->txt(
"learning_progress"),
"ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToLP",
646 "left center",
"right center",
false);
659 include_once(
'./Services/Calendar/classes/class.ilCalendarSettings.php');
661 if($settings->isEnabled())
663 $gl->addEntry($lng->txt(
"calendar"),
"ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToCalendar",
665 "left center",
"right center",
false);
673 $gl->addEntry($lng->txt(
'mail'),
'ilias.php?baseClass=ilMailGUI',
'_top',
675 "left center",
"right center",
false);
681 require_once
'Services/Contact/BuddySystem/classes/class.ilBuddySystem.php';
684 $gl->addEntry($lng->txt(
'mail_addressbook'),
685 'ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToContacts',
'_top' 687 "left center",
"right center",
false);
698 $gl->addEntry($lng->txt(
"personal_profile"),
"ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToProfile",
700 "left center",
"right center",
false);
703 $gl->addEntry($lng->txt(
"personal_settings"),
"ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToSettings",
705 "left center",
"right center",
false);
707 $a_tpl->setVariable(
"DESK_CONT_OV", $gl->getHTML());
710 if(IS_PAYMENT_ENABLED)
716 $gl->setAsDropDown(
true);
719 $gl->addEntry($lng->txt(
"content"),
720 "ilias.php?baseClass=ilShopController&cmd=firstpage",
724 include_once
'Services/Payment/classes/class.ilPaymentShoppingCart.php';
727 $items = $objShoppingCart->getEntries();
729 if(count($items) > 0 )
731 $gl->addEntry($lng->txt(
"shoppingcart").
' ('.count($items).
')',
732 "ilias.php?baseClass=ilShopController&cmdClass=ilshopshoppingcartgui",
735 $a_tpl->setVariable(
"SHOP_CONT_OV", $gl->getHTML());
738 $a_tpl->setVariable(
"TXT_".$id_up, $a_txt);
739 $a_tpl->setVariable(
"SCRIPT_".$id_up, $a_script);
740 $a_tpl->setVariable(
"TARGET_".$id_up, $a_target);
741 if ($this->active == $a_id || ($this->active ==
"" && $a_id ==
"repository"))
744 $a_tpl->setVariable(
"SEL",
'<span class="ilAccHidden">('.$lng->txt(
"stat_selected").
')</span>');
751 if($a_id ==
"repository")
753 include_once(
"./Services/Accessibility/classes/class.ilAccessKey.php");
756 $a_tpl->setVariable(
"ACC_KEY_REPOSITORY",
'accesskey="'.
760 if($a_id ==
"desktop")
762 include_once(
"./Services/Accessibility/classes/class.ilAccessKey.php");
765 $a_tpl->setVariable(
"ACC_KEY_DESKTOP",
'accesskey="'.
771 $a_tpl->parseCurrentBlock();
782 $script =
"./".$a_script;
791 if (defined(
"ILIAS_MODULE"))
793 $script =
".".$script;
803 if($rbacsystem->checkAccess(
"visible", SYSTEM_FOLDER_ID))
816 include_once
"Services/YUI/classes/class.ilYuiUtil.php";
817 ilYUIUtil::initConnection();
819 $this->setTemplateVars();
821 return $this->tpl->get();
832 include_once
'./Services/Container/classes/class.ilMemberViewSettings.php';
840 include_once
'./Services/Link/classes/class.ilLink.php';
846 $this->
setMode(self::MODE_TOPBAR_MEMBERVIEW);
860 $id = strtolower($a_id);
861 $id_up = strtoupper($a_id);
862 $a_tpl->setCurrentBlock(
"entry_".$id);
863 include_once(
"./Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php");
865 if ($this->active == $a_id || ($this->active ==
"" && $a_id ==
"repository"))
867 $selection->setSelectionHeaderClass(
"MMActive");
868 $a_tpl->setVariable(
"SEL",
'<span class="ilAccHidden">('.$lng->txt(
"stat_selected").
')</span>');
872 $selection->setSelectionHeaderClass(
"MMInactive");
875 $selection->setSelectionHeaderSpanClass(
"MMSpan");
878 $selection->setItemLinkClass(
"small");
879 $selection->setUseImages(
false);
885 $selection->setListTitle($lng->txt(
"personal_desktop"));
886 $selection->setId(
"dd_pd");
889 $selection->addItem($lng->txt(
"overview"),
"",
"ilias.php?baseClass=ilPersonalDesktopGUI",
892 if(!$ilSetting->get(
"disable_personal_workspace"))
895 $selection->addItem($lng->txt(
"personal_workspace"),
"",
"ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToWorkspace",
900 $selection->addItem($lng->txt(
"personal_profile"),
"",
"ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToProfile",
905 if ($skmg_set->get(
"enable_skmg"))
907 $selection->addItem($lng->txt(
"skills"),
"",
"ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToSkills",
912 if ($ilSetting->get(
'user_portfolios'))
914 $selection->addItem($lng->txt(
"portfolio"),
"",
"ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToPortfolio",
919 if ($ilSetting->get(
"block_activated_news"))
921 $selection->addItem($lng->txt(
"news"),
"",
"ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToNews",
926 include_once(
"Services/Tracking/classes/class.ilObjUserTracking.php");
930 $selection->addItem($lng->txt(
"learning_progress"),
"",
"ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToLP",
935 include_once(
'./Services/Calendar/classes/class.ilCalendarSettings.php');
937 if($settings->isEnabled())
939 $selection->addItem($lng->txt(
"calendar"),
"",
"ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToCalendar",
946 $selection->addItem($lng->txt(
'mail'),
'',
'ilias.php?baseClass=ilMailGUI',
'',
'',
'_top');
950 require_once
'Services/Contact/BuddySystem/classes/class.ilBuddySystem.php';
953 $selection->addItem($lng->txt(
'mail_addressbook'),
'',
'ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToContacts',
'',
'',
'_top');
957 if (!$this->
ilias->getSetting(
"disable_notes"))
959 $selection->addItem($lng->txt(
"notes_and_comments"),
"",
"ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToNotes",
964 if (!$this->
ilias->getSetting(
"disable_bookmarks"))
966 $selection->addItem($lng->txt(
"bookmarks"),
"",
"ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToBookmarks",
971 $selection->addItem($lng->txt(
"personal_settings"),
"",
"ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToSettings",
978 $selection->setListTitle($lng->txt(
"shop"));
979 $selection->setId(
"dd_shp");
980 $selection->addItem($lng->txt(
"shop"),
"",
"ilias.php?baseClass=ilShopController&cmd=firstpage",
985 case "administration":
986 $selection->setListTitle($lng->txt(
"administration"));
987 $selection->setId(
"dd_adm");
988 $selection->setAsynch(
true);
989 $selection->setAsynchUrl(
"ilias.php?baseClass=ilAdministrationGUI&cmd=getDropDown&cmdMode=asynch");
1004 $a_tpl->setVariable(
"TXT_ADMINISTRATION", $lng->txt(
"administration"));
1005 $a_tpl->parseCurrentBlock();
1009 $html = $selection->getHTML();
1010 $a_tpl->setVariable($id_up.
"_DROP_DOWN",
$html);
1011 $a_tpl->parseCurrentBlock();
1026 if ((defined(
"OH_REF_ID") && OH_REF_ID > 0) || DEVMODE == 1)
1028 if ($ilHelp->getScreenId() !=
"")
1030 if($this->
getMode() == self::MODE_FULL)
1032 $this->tpl->setCurrentBlock(
"screen_id");
1033 $this->tpl->setVariable(
"SCREEN_ID", $ilHelp->getScreenId());
1034 $this->tpl->parseCurrentBlock();
1039 $help_active =
false;
1041 include_once(
"./Services/UIComponent/GroupedList/classes/class.ilGroupedListGUI.php");
1043 $helpl->setAsDropDown(
true,
true);
1045 if ($ilHelp->hasSections())
1047 $help_active =
true;
1049 $lng->loadLanguageModule(
"help");
1053 $tpl->addJavascript(
"./Services/Help/js/ilHelp.js");
1054 include_once(
"./Services/Accordion/classes/class.ilAccordionGUI.php");
1056 $acc->addJavascript();
1059 include_once(
"./Services/UIComponent/Tooltip/classes/class.ilTooltipGUI.php");
1061 "bottom center",
"top center",
false);
1062 $helpl->addEntry(
"<span> </span> ".$lng->txt(
"help_topcis"),
"#",
"",
"il.Help.listHelp(event, false);");
1065 $module_id = (int) $ilSetting->get(
"help_module");
1066 if ((OH_REF_ID > 0 || $module_id > 0) && $ilUser->getLanguage() ==
"de" &&
1067 $ilSetting->get(
"help_mode") !=
"1")
1069 $help_active =
true;
1071 $lng->loadLanguageModule(
"help");
1072 $tpl->addJavascript(
"./Services/Help/js/ilHelp.js");
1074 include_once(
"./Services/UIComponent/Tooltip/classes/class.ilTooltipGUI.php");
1076 "bottom center",
"top center",
false);
1077 $helpl->addEntry(
'<span id="help_tt_switch_on" class="glyphicon glyphicon-ok"></span> '.$lng->txt(
"help_tooltips"),
"#",
"",
"return il.Help.switchTooltips(event);");
1082 $this->tpl->setCurrentBlock(
"help");
1083 $this->tpl->setVariable(
"TXT_HELP", $lng->txt(
"help"));
1084 $this->tpl->setVariable(
"HELP_SELECT", $helpl->getHTML());
1085 $this->tpl->parseCurrentBlock();
1088 $ts = $ilCtrl->getTargetScript();
1089 $ilCtrl->setTargetScript(
"ilias.php");
1091 $ilHelp->setCtrlPar();
1092 $tpl->addOnLoadCode(
"il.Help.setAjaxUrl('".
1093 $ilCtrl->getLinkTargetByClass(
"ilhelpgui",
"",
"",
true)
1095 $ilCtrl->setTargetScript($ts);
1104 require_once
'Services/Contact/BuddySystem/classes/class.ilBuddySystem.php';
1107 require_once
'Services/Contact/BuddySystem/classes/class.ilBuddySystemGUI.php';
1108 ilBuddySystemGUI::initializeFrontend();
1117 include_once(
"./Services/Awareness/classes/class.ilAwarenessGUI.php");
1120 $this->tpl->setVariable(
"AWARENESS", $aw->getMainMenuHTML());
1132 $this->logo_only = (bool)$a_value;
1137 include_once
'./Services/User/classes/class.ilUserUtil.php';
1142 $url =
"./goto.php?target=root_1";
static buildLoginTarget()
Add current object (repository/workspace) as target for login url.
static _getIcon($a_obj_id="", $a_size="big", $a_type="", $a_offline=false)
Get icon for repository item.
static _getInstance()
get singleton instance
Handles display of the main menu.
getScriptTarget($a_script)
generates complete script target (private)
if((!isset($_SERVER['DOCUMENT_ROOT'])) OR(empty($_SERVER['DOCUMENT_ROOT']))) $_SERVER['DOCUMENT_ROOT']
getLoginTargetPar()
Get target parameter for login.
renderEntry($a_tpl, $a_id, $a_txt, $a_script, $a_target="_top")
Render main menu entry.
static getStyleSheetLocation($mode="output", $a_css_name="", $a_css_location="")
get full style sheet file name (path inclusive) of current user
_lookupRegistrationType()
static _hasLearningProgressLearner()
static _getStaticLink($a_ref_id, $a_type='', $a_fallback_goto=true, $append="")
Get static link.
static getInstance()
Get instance.
renderHelpButtons()
Render help button.
static getKey($a_func_id, $lang_key="0", $a_ignore_default=false)
Get single access key.
setLoginTargetPar($a_val)
Set target parameter for login (public sector).
static get($a_glyph, $a_text="")
Get glyph html.
static shortenText($a_str, $a_len, $a_dots=false, $a_next_blank=false, $a_keep_extension=false)
shorten a string to given length.
static _hasLearningProgressOtherUsers()
initMemberView()
Init member view type $lng.
UI interface hook processor.
populateWithBuddySystem()
Includes all buddy system/user connections related javascript code.
static getStartingPointAsUrl()
Get current starting point setting as URL.
setTemplate(&$tpl)
set output template
renderAwareness()
Render awareness tool.
static _enabledLearningProgress()
check wether learing progress is enabled or not
static appendUrlParameterString($a_url, $a_par, $xml_style=false)
append URL parameter string ("par1=value1&par2=value2...") to given URL string
setTopBarBack($a_url, $a_caption=null)
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
const MODE_TOPBAR_MEMBERVIEW
static _lookupObjId($a_id)
special template class to simplify handling of ITX/PEAR
_checkAdministrationPermission()
static getLanguageSelection($a_in_topbar=false)
static initMediaElementJs($a_tpl=null)
Init mediaelement.js scripts.
redirection script todo: (a better solution should control the processing via a xml file) ...
renderMainMenuListEntries($a_tpl, $a_call_get=true)
desc
showLogoOnly($a_value)
Toggle rendering of main menu, search, user info.
static getMainMenuTooltip($a_item_id)
Get main menu tooltip.
ilMainMenuGUI($a_target="_top", $a_use_start_template=false)
static _lookupType($a_id, $a_reference=false)
lookup object type
User interface class for advanced drop-down selection lists.
Add a search box to main menu.
static getNotificationsForUser($user_id, $append_osd_id_to_link=true, $max_age_seconds=0)
static img($a_src, $a_alt="", $a_width="", $a_height="", $a_border=0, $a_id="", $a_class="")
Build img tag.
renderDropDown($a_tpl, $a_id)
GetDropDownHTML.
static getInstance()
Get instance.
renderStatusBox($a_tpl)
Render status box.
static getMailObjectRefId()
Determines the reference id of the mail object and stores this information in a local cache variable...
static initjQuery($a_tpl=null)
Init jQuery.
static getNumberOfNewMailsByUserId($usr_id)
Determines the number of new mails for the passed user id and stores this information in a local cach...
Accordion user interface class.
getTemplate()
get output template
static _getLink($a_ref_id, $a_type='', $a_params=array(), $append="")
const MODE_TOPBAR_REDUCED
_getSearchSettingRefId()
Read the ref_id of Search Settings object.