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();
217 $html = $uip->getHTML($html);
221 $this->tpl->setVariable(
'SEARCHBOX',$html);
231 if($this->
getMode() == self::MODE_FULL)
236 include_once(
"./Services/UIComponent/classes/class.ilUIHookProcessor.php");
238 array(
"main_menu_gui" => $this));
239 if (!$uip->replaced())
241 $mmle_tpl =
new ilTemplate(
"tpl.main_menu_list_entries.html",
true,
true,
"Services/MainMenu");
244 $mmle_html = $uip->getHTML($mmle_html);
246 $this->tpl->setVariable(
"MAIN_MENU_LIST_ENTRIES", $mmle_html);
249 if($this->
getMode() != self::MODE_TOPBAR_MEMBERVIEW)
251 $link_dir = (defined(
"ILIAS_MODULE"))
256 if (
$_SESSION[
"AccountId"] == ANONYMOUS_USER_ID)
258 include_once
'Services/Registration/classes/class.ilRegistrationSettingsGUI.php';
261 $this->tpl->setCurrentBlock(
"registration_link");
262 $this->tpl->setVariable(
"TXT_REGISTER",$lng->txt(
"register"));
263 $this->tpl->setVariable(
"LINK_REGISTER", $link_dir.
"register.php?client_id=".rawurlencode(CLIENT_ID).
"&lang=".$ilias->account->getCurrentLanguage());
264 $this->tpl->parseCurrentBlock();
273 $this->tpl->setVariable(
"TXT_LANGSELECT", $lng->txt(
"language"));
275 $this->tpl->setVariable(
"LANG_SELECT", $selection);
278 $this->tpl->setCurrentBlock(
"userisanonymous");
279 $this->tpl->setVariable(
"TXT_NOT_LOGGED_IN",$lng->txt(
"not_logged_in"));
280 $this->tpl->setVariable(
"TXT_LOGIN",$lng->txt(
"log_in"));
286 $this->tpl->setVariable(
"LINK_LOGIN",
287 $link_dir.
"login.php?target=".$target_str.
"&client_id=".rawurlencode(CLIENT_ID).
"&cmd=force_login&lang=".$ilias->account->getCurrentLanguage());
288 $this->tpl->parseCurrentBlock();
292 if($this->
getMode() != self::MODE_TOPBAR_REDUCED)
294 $notificationSettings =
new ilSetting(
'notifications');
295 $chatSettings =
new ilSetting(
'chatroom');
302 if($chatSettings->get(
'chat_enabled') && $notificationSettings->get(
'enable_osd'))
304 $this->tpl->touchBlock(
'osd_enabled');
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') :
'5');
323 $this->tpl->setVariable(
325 $chatSettings->get(
'play_invitation_sound') && $ilUser->getPref(
'chat_play_invitation_sound') ?
'true' :
'false');
326 foreach($notifications as $notification)
328 if($notification[
'type'] ==
'osd_maint')
332 $this->tpl->setCurrentBlock(
'osd_notification_item');
334 $this->tpl->setVariable(
'NOTIFICATION_ICON_PATH', $notification[
'data']->iconPath);
335 $this->tpl->setVariable(
'NOTIFICATION_TITLE', $notification[
'data']->title);
336 $this->tpl->setVariable(
'NOTIFICATION_LINK', $notification[
'data']->link);
337 $this->tpl->setVariable(
'NOTIFICATION_LINKTARGET', $notification[
'data']->linktarget);
338 $this->tpl->setVariable(
'NOTIFICATION_ID', $notification[
'notification_osd_id']);
339 $this->tpl->setVariable(
'NOTIFICATION_SHORT_DESCRIPTION', $notification[
'data']->shortDescription);
340 $this->tpl->parseCurrentBlock();
345 $this->tpl->setCurrentBlock(
"userisloggedin");
346 $this->tpl->setVariable(
"TXT_LOGIN_AS",$lng->txt(
"login_as"));
347 $user_img_src = $ilias->account->getPersonalPicturePath(
"small",
true);
348 $user_img_alt = $ilias->account->getFullname();
349 $this->tpl->setVariable(
"USER_IMG",
ilUtil::img($user_img_src, $user_img_alt));
350 $this->tpl->setVariable(
"USR_LINK_PROFILE",
"ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToProfile");
351 $this->tpl->setVariable(
"USR_TXT_PROFILE", $lng->txt(
"personal_profile"));
352 $this->tpl->setVariable(
"USR_LINK_SETTINGS",
"ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToSettings");
353 $this->tpl->setVariable(
"USR_TXT_SETTINGS", $lng->txt(
"personal_settings"));
354 $this->tpl->setVariable(
"TXT_LOGOUT2",$lng->txt(
"logout"));
355 $this->tpl->setVariable(
"LINK_LOGOUT2", $link_dir.
"logout.php?lang=".$ilias->account->getCurrentLanguage());
356 $this->tpl->setVariable(
"USERNAME",$ilias->account->getFullname());
357 $this->tpl->setVariable(
"LOGIN",$ilias->account->getLogin());
358 $this->tpl->setVariable(
"MATRICULATION",$ilias->account->getMatriculation());
359 $this->tpl->setVariable(
"EMAIL",$ilias->account->getEmail());
360 $this->tpl->parseCurrentBlock();
366 $this->tpl->setVariable(
"TOPBAR_CLASS",
" ilMemberViewMainHeader");
367 $this->tpl->setVariable(
"MEMBER_VIEW_INFO", $lng->txt(
"mem_view_long"));
370 if(!$this->topbar_back_url)
372 include_once(
"./Modules/SystemFolder/classes/class.ilObjSystemFolder.php");
373 $header_top_title = ilObjSystemFolder::_getHeaderTitle();
374 if (trim($header_top_title) !=
"" && $this->tpl->blockExists(
"header_top_title"))
376 $this->tpl->setCurrentBlock(
"header_top_title");
377 $this->tpl->setVariable(
"TXT_HEADER_TITLE", $header_top_title);
378 $this->tpl->parseCurrentBlock();
383 $this->tpl->setCurrentBlock(
"header_back_bl");
384 $this->tpl->setVariable(
"URL_HEADER_BACK", $this->topbar_back_url);
385 $this->tpl->setVariable(
"TXT_HEADER_BACK", $this->topbar_back_caption
386 ? $this->topbar_back_caption
387 : $lng->txt(
"back"));
388 $this->tpl->parseCurrentBlock();
393 if($this->
getMode() == self::MODE_FULL)
396 $this->tpl->setVariable(
"HEADER_URL", $this->
getHeaderURL());
400 include_once(
"./Modules/SystemFolder/classes/class.ilObjSystemFolder.php");
413 $this->tpl->setVariable(
"TXT_MAIN_MENU", $lng->txt(
"main_menu"));
415 $this->tpl->parseCurrentBlock();
433 $a_tpl->setCurrentBlock(
'status_text');
434 $a_tpl->setVariable(
'STATUS_TXT', $new_mails);
435 $a_tpl->parseCurrentBlock();
437 $a_tpl->setCurrentBlock(
'status_item');
439 $a_tpl->setVariable(
'STATUS_IMG_ALT', $lng->txt(
"mail"));
440 $a_tpl->setVariable(
'STATUS_HREF',
'ilias.php?baseClass=ilMailGUI');
441 $a_tpl->parseCurrentBlock();
447 $a_tpl->setCurrentBlock(
"status_box");
448 $a_tpl->parseCurrentBlock();
464 if (
$_SESSION[
"AccountId"] != ANONYMOUS_USER_ID)
467 $lng->txt(
"personal_desktop"),
"#");
471 if($ilAccess->checkAccess(
'visible',
'',ROOT_FOLDER_ID))
473 include_once(
'./Services/Link/classes/class.ilLink.php');
474 $nd = $tree->getNodeData(ROOT_FOLDER_ID);
475 $title =
$nd[
"title"];
476 if ($title ==
"ILIAS")
478 $title = $lng->txt(
"repository");
480 if (
$_SESSION[
"AccountId"] != ANONYMOUS_USER_ID || IS_PAYMENT_ENABLED)
489 if(IS_PAYMENT_ENABLED)
491 $title = $lng->txt(
"shop");
503 return $a_tpl->get();
515 function renderEntry($a_tpl, $a_id, $a_txt, $a_script, $a_target =
"_top")
519 $id = strtolower($a_id);
520 $id_up = strtoupper($a_id);
521 $a_tpl->setCurrentBlock(
"entry_".$id);
523 include_once(
"./Services/UIComponent/GroupedList/classes/class.ilGroupedListGUI.php");
526 if ($a_id ==
"repository")
529 $gl->setAsDropDown(
true);
531 include_once(
"./Services/Link/classes/class.ilLink.php");
537 $items = $ilNavigationHistory->getItems();
542 foreach($items as $k => $item)
544 if ($cnt >= 10)
break;
546 if (!isset($item[
"ref_id"]) || !isset(
$_GET[
"ref_id"]) ||
547 ($item[
"ref_id"] !=
$_GET[
"ref_id"] || !$first))
551 $gl->addGroupHeader($lng->txt(
"last_visited"),
"ilLVNavEnt");
557 $gl->addEntry($icon.
" ".$ititle, $item[
"link"],
"_top",
"",
"ilLVNavEnt");
565 $gl->addEntry(
"» ".$lng->txt(
"remove_entries"),
"#",
"",
566 "return il.MainMenu.removeLastVisitedItems('".
567 $ilCtrl->getLinkTargetByClass(
"ilnavigationhistorygui",
"removeEntries",
"",
true).
"');",
571 $a_tpl->setVariable(
"REP_EN_OV", $gl->getHTML());
575 if ($a_id ==
"desktop")
578 $gl->setAsDropDown(
true);
581 $gl->addEntry($lng->txt(
"overview"),
582 "ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToSelectedItems",
584 "left center",
"right center",
false);
587 if($ilSetting->get(
'disable_my_offers') == 0 &&
588 $ilSetting->get(
'disable_my_memberships') == 0)
590 $gl->addEntry($lng->txt(
"my_courses_groups"),
591 "ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToMemberships",
593 "left center",
"right center",
false);
597 if (!$this->ilias->getSetting(
"disable_bookmarks"))
599 $gl->addEntry($lng->txt(
"bookmarks"),
"ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToBookmarks",
601 "left center",
"right center",
false);
605 if (!$this->ilias->getSetting(
"disable_notes"))
607 $gl->addEntry($lng->txt(
"notes_and_comments"),
"ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToNotes",
609 "left center",
"right center",
false);
613 if ($ilSetting->get(
"block_activated_news"))
615 $gl->addEntry($lng->txt(
"news"),
"ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToNews",
617 "left center",
"right center",
false);
625 if(!$ilSetting->get(
"disable_personal_workspace"))
628 $gl->addEntry($lng->txt(
"personal_workspace"),
"ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToWorkspace",
630 "left center",
"right center",
false);
636 if ($ilSetting->get(
'user_portfolios'))
638 $gl->addEntry($lng->txt(
"portfolio"),
"ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToPortfolio",
640 "left center",
"right center",
false);
647 if ($skmg_set->get(
"enable_skmg"))
649 $gl->addEntry($lng->txt(
"skills"),
"ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToSkills",
651 "left center",
"right center",
false);
657 include_once(
"Services/Tracking/classes/class.ilObjUserTracking.php");
663 $gl->addEntry($lng->txt(
"learning_progress"),
"ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToLP",
665 "left center",
"right center",
false);
678 include_once(
'./Services/Calendar/classes/class.ilCalendarSettings.php');
680 if($settings->isEnabled())
682 $gl->addEntry($lng->txt(
"calendar"),
"ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToCalendar",
684 "left center",
"right center",
false);
692 $gl->addEntry($lng->txt(
'mail'),
'ilias.php?baseClass=ilMailGUI',
'_top',
694 "left center",
"right center",
false);
700 if(!$this->ilias->getSetting(
'disable_contacts') &&
701 ($this->ilias->getSetting(
'disable_contacts_require_mail') ||
704 $gl->addEntry($lng->txt(
'mail_addressbook'),
705 'ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToContacts',
'_top'
707 "left center",
"right center",
false);
718 $gl->addEntry($lng->txt(
"personal_profile"),
"ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToProfile",
720 "left center",
"right center",
false);
723 $gl->addEntry($lng->txt(
"personal_settings"),
"ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToSettings",
725 "left center",
"right center",
false);
727 $a_tpl->setVariable(
"DESK_CONT_OV", $gl->getHTML());
730 if(IS_PAYMENT_ENABLED)
736 $gl->setAsDropDown(
true);
739 $gl->addEntry($lng->txt(
"content"),
740 "ilias.php?baseClass=ilShopController&cmd=firstpage",
744 include_once
'Services/Payment/classes/class.ilPaymentShoppingCart.php';
747 $items = $objShoppingCart->getEntries();
749 if(count($items) > 0 )
751 $gl->addEntry($lng->txt(
"shoppingcart").
' ('.count($items).
')',
752 "ilias.php?baseClass=ilShopController&cmdClass=ilshopshoppingcartgui",
755 $a_tpl->setVariable(
"SHOP_CONT_OV", $gl->getHTML());
758 $a_tpl->setVariable(
"TXT_".$id_up, $a_txt);
759 $a_tpl->setVariable(
"SCRIPT_".$id_up, $a_script);
760 $a_tpl->setVariable(
"TARGET_".$id_up, $a_target);
761 if ($this->active == $a_id || ($this->active ==
"" && $a_id ==
"repository"))
764 $a_tpl->setVariable(
"SEL",
'<span class="ilAccHidden">('.$lng->txt(
"stat_selected").
')</span>');
771 if($a_id ==
"repository")
773 include_once(
"./Services/Accessibility/classes/class.ilAccessKey.php");
776 $a_tpl->setVariable(
"ACC_KEY_REPOSITORY",
'accesskey="'.
780 if($a_id ==
"desktop")
782 include_once(
"./Services/Accessibility/classes/class.ilAccessKey.php");
785 $a_tpl->setVariable(
"ACC_KEY_DESKTOP",
'accesskey="'.
791 $a_tpl->parseCurrentBlock();
802 $script =
"./".$a_script;
811 if (defined(
"ILIAS_MODULE"))
813 $script =
".".$script;
823 if($rbacsystem->checkAccess(
"visible", SYSTEM_FOLDER_ID))
836 include_once
"Services/YUI/classes/class.ilYuiUtil.php";
837 ilYUIUtil::initConnection();
839 $this->setTemplateVars();
841 return $this->tpl->get();
852 include_once
'./Services/Container/classes/class.ilMemberViewSettings.php';
860 include_once
'./Services/Link/classes/class.ilLink.php';
866 $this->
setMode(self::MODE_TOPBAR_MEMBERVIEW);
880 $id = strtolower($a_id);
881 $id_up = strtoupper($a_id);
882 $a_tpl->setCurrentBlock(
"entry_".$id);
883 include_once(
"./Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php");
885 if ($this->active == $a_id || ($this->active ==
"" && $a_id ==
"repository"))
887 $selection->setSelectionHeaderClass(
"MMActive");
888 $a_tpl->setVariable(
"SEL",
'<span class="ilAccHidden">('.$lng->txt(
"stat_selected").
')</span>');
892 $selection->setSelectionHeaderClass(
"MMInactive");
895 $selection->setSelectionHeaderSpanClass(
"MMSpan");
898 $selection->setItemLinkClass(
"small");
899 $selection->setUseImages(
false);
905 $selection->setListTitle($lng->txt(
"personal_desktop"));
906 $selection->setId(
"dd_pd");
909 $selection->addItem($lng->txt(
"overview"),
"",
"ilias.php?baseClass=ilPersonalDesktopGUI",
912 if(!$ilSetting->get(
"disable_personal_workspace"))
915 $selection->addItem($lng->txt(
"personal_workspace"),
"",
"ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToWorkspace",
920 $selection->addItem($lng->txt(
"personal_profile"),
"",
"ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToProfile",
925 if ($skmg_set->get(
"enable_skmg"))
927 $selection->addItem($lng->txt(
"skills"),
"",
"ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToSkills",
932 if ($ilSetting->get(
'user_portfolios'))
934 $selection->addItem($lng->txt(
"portfolio"),
"",
"ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToPortfolio",
939 if ($ilSetting->get(
"block_activated_news"))
941 $selection->addItem($lng->txt(
"news"),
"",
"ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToNews",
946 include_once(
"Services/Tracking/classes/class.ilObjUserTracking.php");
950 $selection->addItem($lng->txt(
"learning_progress"),
"",
"ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToLP",
955 include_once(
'./Services/Calendar/classes/class.ilCalendarSettings.php');
957 if($settings->isEnabled())
959 $selection->addItem($lng->txt(
"calendar"),
"",
"ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToCalendar",
966 $selection->addItem($lng->txt(
'mail'),
'',
'ilias.php?baseClass=ilMailGUI',
'',
'',
'_top');
970 if (!$this->ilias->getSetting(
'disable_contacts') &&
971 ($this->ilias->getSetting(
'disable_contacts_require_mail') ||
974 $selection->addItem($lng->txt(
'mail_addressbook'),
'',
'ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToContacts',
'',
'',
'_top');
978 if (!$this->ilias->getSetting(
"disable_notes"))
980 $selection->addItem($lng->txt(
"notes_and_comments"),
"",
"ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToNotes",
985 if (!$this->ilias->getSetting(
"disable_bookmarks"))
987 $selection->addItem($lng->txt(
"bookmarks"),
"",
"ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToBookmarks",
992 $selection->addItem($lng->txt(
"personal_settings"),
"",
"ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToSettings",
999 $selection->setListTitle($lng->txt(
"shop"));
1000 $selection->setId(
"dd_shp");
1001 $selection->addItem($lng->txt(
"shop"),
"",
"ilias.php?baseClass=ilShopController&cmd=firstpage",
1006 case "administration":
1007 $selection->setListTitle($lng->txt(
"administration"));
1008 $selection->setId(
"dd_adm");
1009 $selection->setAsynch(
true);
1010 $selection->setAsynchUrl(
"ilias.php?baseClass=ilAdministrationGUI&cmd=getDropDown&cmdMode=asynch");
1025 $a_tpl->setVariable(
"TXT_ADMINISTRATION", $lng->txt(
"administration"));
1026 $a_tpl->parseCurrentBlock();
1030 $html = $selection->getHTML();
1031 $a_tpl->setVariable($id_up.
"_DROP_DOWN", $html);
1032 $a_tpl->parseCurrentBlock();
1047 if (defined(
"OH_REF_ID") && OH_REF_ID > 0)
1049 if ($ilHelp->getScreenId() !=
"")
1053 $this->tpl->setCurrentBlock(
"screen_id");
1054 $this->tpl->setVariable(
"SCREEN_ID", $ilHelp->getScreenId());
1055 $this->tpl->parseCurrentBlock();
1060 $help_active =
false;
1062 include_once(
"./Services/UIComponent/GroupedList/classes/class.ilGroupedListGUI.php");
1064 $helpl->setAsDropDown(
true,
true);
1066 if ($ilHelp->hasSections())
1068 $help_active =
true;
1070 $lng->loadLanguageModule(
"help");
1074 $tpl->addJavascript(
"./Services/Help/js/ilHelp.js");
1075 include_once(
"./Services/Accordion/classes/class.ilAccordionGUI.php");
1077 $acc->addJavascript();
1080 include_once(
"./Services/UIComponent/Tooltip/classes/class.ilTooltipGUI.php");
1082 "bottom center",
"top center",
false);
1083 $helpl->addEntry(
"<span> </span> ".$lng->txt(
"help_topcis"),
"#",
"",
"il.Help.listHelp(event, false);");
1086 $module_id = (int) $ilSetting->get(
"help_module");
1087 if ((OH_REF_ID > 0 || $module_id > 0) && $ilUser->getLanguage() ==
"de" &&
1088 $ilSetting->get(
"help_mode") !=
"1")
1090 $help_active =
true;
1092 $lng->loadLanguageModule(
"help");
1093 $tpl->addJavascript(
"./Services/Help/js/ilHelp.js");
1095 include_once(
"./Services/UIComponent/Tooltip/classes/class.ilTooltipGUI.php");
1097 "bottom center",
"top center",
false);
1098 $helpl->addEntry(
'<span id="help_tt_switch_on" class="glyphicon glyphicon-ok"></span> '.$lng->txt(
"help_tooltips"),
"#",
"",
"return il.Help.switchTooltips(event);");
1103 $this->tpl->setCurrentBlock(
"help");
1104 $this->tpl->setVariable(
"TXT_HELP", $lng->txt(
"help"));
1105 $this->tpl->setVariable(
"HELP_SELECT", $helpl->getHTML());
1106 $this->tpl->parseCurrentBlock();
1109 $ts = $ilCtrl->getTargetScript();
1110 $ilCtrl->setTargetScript(
"ilias.php");
1112 $ilHelp->setCtrlPar();
1113 $tpl->addOnLoadCode(
"il.Help.setAjaxUrl('".
1114 $ilCtrl->getLinkTargetByClass(
"ilhelpgui",
"",
"",
true)
1116 $ilCtrl->setTargetScript($ts);
1130 $this->logo_only = (bool)$a_value;
1135 include_once
'./Services/User/classes/class.ilUserUtil.php';
1140 $url =
"./goto.php?target=root_1";