5include_once 
'Services/Mail/classes/class.ilMailGlobalServices.php';
 
   40        function __construct($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);
 
   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);
 
  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();
 
  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);
 
  236                if($this->
getMode() == self::MODE_FULL)
 
  241                        include_once(
"./Services/UIComponent/classes/class.ilUIHookProcessor.php");
 
  243                                array(
"main_menu_gui" => $this));
 
  244                        if (!$uip->replaced())
 
  246                                $mmle_tpl = 
new ilTemplate(
"tpl.main_menu_list_entries.html", 
true, 
true, 
"Services/MainMenu");
 
  249                        $mmle_html = $uip->getHTML($mmle_html);
 
  251                        $this->tpl->setVariable(
"MAIN_MENU_LIST_ENTRIES", $mmle_html);
 
  254                if($this->
getMode() != self::MODE_TOPBAR_MEMBERVIEW)
 
  256                        $link_dir = (
defined(
"ILIAS_MODULE"))
 
  261                        if (
$GLOBALS[
'DIC'][
'ilUser']->getId() == ANONYMOUS_USER_ID)
 
  263                                include_once 
'Services/Registration/classes/class.ilRegistrationSettingsGUI.php';
 
  266                                        $this->tpl->setCurrentBlock(
"registration_link");
 
  267                                        $this->tpl->setVariable(
"TXT_REGISTER",
$lng->txt(
"register"));
 
  268                                        $this->tpl->setVariable(
"LINK_REGISTER", $link_dir.
"register.php?client_id=".rawurlencode(CLIENT_ID).
"&lang=".
$ilias->account->getCurrentLanguage());
 
  269                                        $this->tpl->parseCurrentBlock();
 
  278                                        $this->tpl->setVariable(
"TXT_LANGSELECT", 
$lng->txt(
"language"));
 
  280                                        $this->tpl->setVariable(
"LANG_SELECT", $selection);
 
  283                                $this->tpl->setCurrentBlock(
"userisanonymous");
 
  284                                $this->tpl->setVariable(
"TXT_NOT_LOGGED_IN",
$lng->txt(
"not_logged_in"));
 
  285                                $this->tpl->setVariable(
"TXT_LOGIN",
$lng->txt(
"log_in"));
 
  291                                $this->tpl->setVariable(
"LINK_LOGIN",
 
  292                                        $link_dir.
"login.php?target=".$target_str.
"&client_id=".rawurlencode(CLIENT_ID).
"&cmd=force_login&lang=".
$ilias->account->getCurrentLanguage());
 
  293                                $this->tpl->parseCurrentBlock();
 
  299                                $this->tpl->setCurrentBlock(
"userisloggedin");
 
  300                                $this->tpl->setVariable(
"TXT_LOGIN_AS",
$lng->txt(
"login_as"));
 
  301                                $user_img_src = 
$ilias->account->getPersonalPicturePath(
"small", 
true);
 
  302                                $user_img_alt = 
$ilias->account->getFullname();
 
  303                                $this->tpl->setVariable(
"USER_IMG", 
ilUtil::img($user_img_src, $user_img_alt));
 
  304                                $this->tpl->setVariable(
"USR_LINK_PROFILE", 
"ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToProfile");
 
  305                                $this->tpl->setVariable(
"USR_TXT_PROFILE", 
$lng->txt(
"personal_profile"));
 
  306                                $this->tpl->setVariable(
"USR_LINK_SETTINGS", 
"ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToSettings");
 
  307                                $this->tpl->setVariable(
"USR_TXT_SETTINGS", 
$lng->txt(
"personal_settings"));
 
  308                                $this->tpl->setVariable(
"TXT_LOGOUT2",
$lng->txt(
"logout"));
 
  309                                $this->tpl->setVariable(
"LINK_LOGOUT2", $link_dir.
"logout.php?lang=".
$ilias->account->getCurrentLanguage());
 
  310                                $this->tpl->setVariable(
"USERNAME",
$ilias->account->getFullname());
 
  311                                $this->tpl->setVariable(
"LOGIN",
$ilias->account->getLogin());
 
  312                                $this->tpl->setVariable(
"MATRICULATION",
$ilias->account->getMatriculation());
 
  313                                $this->tpl->setVariable(
"EMAIL",
$ilias->account->getEmail());
 
  314                                $this->tpl->parseCurrentBlock();
 
  320                        $this->tpl->setVariable(
"TOPBAR_CLASS", 
" ilMemberViewMainHeader");
 
  321                        $this->tpl->setVariable(
"MEMBER_VIEW_INFO", 
$lng->txt(
"mem_view_long"));
 
  324                if(!$this->topbar_back_url)
 
  326                        include_once(
"./Modules/SystemFolder/classes/class.ilObjSystemFolder.php");
 
  327                        $header_top_title = ilObjSystemFolder::_getHeaderTitle();
 
  328                        if (trim($header_top_title) != 
"" && $this->tpl->blockExists(
"header_top_title"))
 
  330                                $this->tpl->setCurrentBlock(
"header_top_title");
 
  332                                $this->tpl->setVariable(
"TXT_HEADER_TITLE", $header_top_title);
 
  333                                $this->tpl->parseCurrentBlock();
 
  338                        $this->tpl->setCurrentBlock(
"header_back_bl");
 
  339                        $this->tpl->setVariable(
"URL_HEADER_BACK", $this->topbar_back_url);
 
  340                        $this->tpl->setVariable(
"TXT_HEADER_BACK", $this->topbar_back_caption
 
  341                                ? $this->topbar_back_caption
 
  342                                : 
$lng->txt(
"back"));
 
  343                        $this->tpl->parseCurrentBlock();                        
 
  348                if($this->
getMode() == self::MODE_FULL)
 
  351                        $this->tpl->setVariable(
"HEADER_URL", $this->
getHeaderURL());
 
  355                include_once(
"./Modules/SystemFolder/classes/class.ilObjSystemFolder.php");
 
  357                $this->tpl->setVariable(
"TXT_MAIN_MENU", 
$lng->txt(
"main_menu"));
 
  359                $this->tpl->parseCurrentBlock();
 
  368                $ui_factory = 
$DIC->ui()->factory();
 
  369                $ui_renderer = 
$DIC->ui()->renderer();
 
  374                        $a_tpl->setCurrentBlock(
'status_box');
 
  376                        $glyph = $ui_factory->glyph()->mail(
"ilias.php?baseClass=ilMailGUI");
 
  378                        if ($new_mails > 0) {
 
  379                                $glyph = $glyph->withCounter($ui_factory->counter()->novelty($new_mails));
 
  382                        $a_tpl->setVariable(
'GLYPH', $ui_renderer->render($glyph));
 
  383                        $a_tpl->parseCurrentBlock();
 
  399                if (
$GLOBALS[
'DIC'][
'ilUser']->getId() != ANONYMOUS_USER_ID)
 
  402                                $lng->txt(
"personal_desktop"), 
"#");
 
  406                if($ilAccess->checkAccess(
'visible',
'',ROOT_FOLDER_ID))
 
  408                        include_once(
'./Services/Link/classes/class.ilLink.php');
 
  409                        $nd = $tree->getNodeData(ROOT_FOLDER_ID);
 
  415                        if(
$GLOBALS[
'DIC'][
'ilUser']->getId() != ANONYMOUS_USER_ID)
 
  431                        return $a_tpl->get();
 
  443        function renderEntry($a_tpl, $a_id, $a_txt, $a_script, $a_target = 
"_top")
 
  447                $id = strtolower($a_id);
 
  448                $id_up = strtoupper($a_id);
 
  449                $a_tpl->setCurrentBlock(
"entry_".$id);
 
  451                include_once(
"./Services/UIComponent/GroupedList/classes/class.ilGroupedListGUI.php");
 
  454                if ($a_id == 
"repository")
 
  457                        $gl->setAsDropDown(
true);
 
  459                        include_once(
"./Services/Link/classes/class.ilLink.php");
 
  465                        $items = $ilNavigationHistory->getItems();
 
  470                        foreach($items as $k => $item)
 
  472                                if ($cnt >= 10) 
break;
 
  474                                if (!isset($item[
"ref_id"]) || !isset(
$_GET[
"ref_id"]) ||
 
  475                                        ($item[
"ref_id"] != 
$_GET[
"ref_id"] || !$first))                        
 
  479                                                $gl->addGroupHeader(
$lng->txt(
"last_visited"), 
"ilLVNavEnt");
 
  485                                        $gl->addEntry($icon.
" ".$ititle, $item[
"link"], 
"_top", 
"", 
"ilLVNavEnt");
 
  493                                $gl->addEntry(
"» ".
$lng->txt(
"remove_entries"), 
"#", 
"",
 
  494                                        "return il.MainMenu.removeLastVisitedItems('".
 
  495                                        $ilCtrl->getLinkTargetByClass(
"ilnavigationhistorygui", 
"removeEntries", 
"", 
true).
"');",
 
  499                        $a_tpl->setVariable(
"REP_EN_OV", $gl->getHTML());
 
  503                if ($a_id == 
"desktop")
 
  506                        $gl->setAsDropDown(
true);
 
  509                        $gl->addEntry(
$lng->txt(
"overview"),
 
  510                                "ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToSelectedItems",
 
  512                                        "left center", 
"right center", 
false);
 
  515                        if(
$ilSetting->get(
'disable_my_offers') == 0 &&
 
  516                                $ilSetting->get(
'disable_my_memberships') == 0)
 
  518                                $gl->addEntry(
$lng->txt(
"my_courses_groups"),
 
  519                                        "ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToMemberships",
 
  521                                        "left center", 
"right center", 
false);
 
  525                        if (!$this->
ilias->getSetting(
"disable_bookmarks"))
 
  527                                $gl->addEntry(
$lng->txt(
"bookmarks"), 
"ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToBookmarks",
 
  529                                        "left center", 
"right center", 
false);
 
  533                        if (!$this->
ilias->getSetting(
"disable_notes") || !$ilSetting->get(
"disable_comments"))
 
  535                                $lng->loadLanguageModule(
"notes");
 
  538                                if (!$this->
ilias->getSetting(
"disable_notes") && !$ilSetting->get(
"disable_comments"))
 
  540                                        $t = 
$lng->txt(
"notes_and_comments");
 
  542                                if ($this->
ilias->getSetting(
"disable_notes"))
 
  544                                        $t = $lng->txt(
"notes_comments");
 
  545                                        $c = 
"jumpToComments";
 
  547                                $gl->addEntry(
$t, 
"ilias.php?baseClass=ilPersonalDesktopGUI&cmd=".$c,
 
  549                                        "left center", 
"right center", 
false);
 
  555                                $gl->addEntry(
$lng->txt(
"news"), 
"ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToNews",
 
  557                                        "left center", 
"right center", 
false);
 
  565                        if(!
$ilSetting->get(
"disable_personal_workspace"))
 
  568                                $gl->addEntry(
$lng->txt(
"personal_workspace"), 
"ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToWorkspace",
 
  570                                        "left center", 
"right center", 
false);
 
  578                                $gl->addEntry(
$lng->txt(
"portfolio"), 
"ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToPortfolio",
 
  580                                        "left center", 
"right center", 
false);
 
  587                        if ($skmg_set->get(
"enable_skmg"))
 
  589                                $gl->addEntry(
$lng->txt(
"skills"), 
"ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToSkills",
 
  591                                        "left center", 
"right center", 
false);
 
  597                        include_once(
"Services/Tracking/classes/class.ilObjUserTracking.php");
 
  603                                $gl->addEntry(
$lng->txt(
"learning_progress"), 
"ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToLP",
 
  605                                        "left center", 
"right center", 
false);
 
  618                        include_once(
'./Services/Calendar/classes/class.ilCalendarSettings.php');
 
  620                        if($settings->isEnabled())
 
  622                                $gl->addEntry(
$lng->txt(
"calendar"), 
"ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToCalendar",
 
  624                                        "left center", 
"right center", 
false);
 
  632                                $gl->addEntry(
$lng->txt(
'mail'), 
'ilias.php?baseClass=ilMailGUI', 
'_top',
 
  634                                        "left center", 
"right center", 
false);
 
  640                        require_once 
'Services/Contact/BuddySystem/classes/class.ilBuddySystem.php';
 
  643                                $gl->addEntry(
$lng->txt(
'mail_addressbook'),
 
  644                                        'ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToContacts', 
'_top' 
  646                                        "left center", 
"right center", 
false);
 
  656                        require_once 
'Services/Badge/classes/class.ilBadgeHandler.php';
 
  659                                $gl->addEntry(
$lng->txt(
'obj_bdga'),
 
  660                                        'ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToBadges', 
'_top' 
  662                                        "left center", 
"right center", 
false);
 
  668                        $gl->addEntry(
$lng->txt(
"personal_profile"), 
"ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToProfile",
 
  670                                        "left center", 
"right center", 
false);
 
  673                        $gl->addEntry(
$lng->txt(
"personal_settings"), 
"ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToSettings",
 
  675                                        "left center", 
"right center", 
false);
 
  677                        $a_tpl->setVariable(
"DESK_CONT_OV", $gl->getHTML());
 
  680                $a_tpl->setVariable(
"TXT_".$id_up, $a_txt);
 
  681                $a_tpl->setVariable(
"SCRIPT_".$id_up, $a_script);
 
  682                $a_tpl->setVariable(
"TARGET_".$id_up, $a_target);
 
  683                if ($this->active == $a_id || ($this->active == 
"" && $a_id == 
"repository"))
 
  686                        $a_tpl->setVariable(
"SEL", 
'<span class="ilAccHidden">('.
$lng->txt(
"stat_selected").
')</span>');
 
  693                if($a_id == 
"repository")
 
  695                        include_once(
"./Services/Accessibility/classes/class.ilAccessKey.php");
 
  698                                $a_tpl->setVariable(
"ACC_KEY_REPOSITORY", 
'accesskey="'.
 
  702                if($a_id == 
"desktop")
 
  704                        include_once(
"./Services/Accessibility/classes/class.ilAccessKey.php");
 
  707                                $a_tpl->setVariable(
"ACC_KEY_DESKTOP", 
'accesskey="'.
 
  713                $a_tpl->parseCurrentBlock();
 
  722                $script = 
"./".$a_script;
 
  725                        $script = 
".".$script;
 
  735                if($rbacsystem->checkAccess(
"visible", SYSTEM_FOLDER_ID))
 
  748                include_once 
"Services/YUI/classes/class.ilYuiUtil.php";
 
  749                ilYUIUtil::initConnection();
 
  753                return $this->tpl->get();
 
  764                include_once 
'./Services/Container/classes/class.ilMemberViewSettings.php';
 
  772                include_once 
'./Services/Link/classes/class.ilLink.php';
 
  778                $this->
setMode(self::MODE_TOPBAR_MEMBERVIEW);
 
  792                $id = strtolower($a_id);
 
  793                $id_up = strtoupper($a_id);
 
  794                $a_tpl->setCurrentBlock(
"entry_".$id);
 
  795                include_once(
"./Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php");
 
  797                if ($this->active == $a_id || ($this->active == 
"" && $a_id == 
"repository"))
 
  799                        $selection->setSelectionHeaderClass(
"MMActive");
 
  800                        $a_tpl->setVariable(
"SEL", 
'<span class="ilAccHidden">('.
$lng->txt(
"stat_selected").
')</span>');
 
  804                        $selection->setSelectionHeaderClass(
"MMInactive");
 
  807                $selection->setSelectionHeaderSpanClass(
"MMSpan");
 
  810                $selection->setItemLinkClass(
"small");
 
  811                $selection->setUseImages(
false);
 
  817                                $selection->setListTitle(
$lng->txt(
"personal_desktop"));
 
  818                                $selection->setId(
"dd_pd");
 
  821                                $selection->addItem(
$lng->txt(
"overview"), 
"", 
"ilias.php?baseClass=ilPersonalDesktopGUI",
 
  824                                if(!
$ilSetting->get(
"disable_personal_workspace"))
 
  827                                        $selection->addItem(
$lng->txt(
"personal_workspace"), 
"", 
"ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToWorkspace",
 
  832                                $selection->addItem(
$lng->txt(
"personal_profile"), 
"", 
"ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToProfile",
 
  837                                if ($skmg_set->get(
"enable_skmg"))
 
  839                                        $selection->addItem(
$lng->txt(
"skills"), 
"", 
"ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToSkills",
 
  846                                        $selection->addItem(
$lng->txt(
"portfolio"), 
"", 
"ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToPortfolio",
 
  853                                        $selection->addItem(
$lng->txt(
"news"), 
"", 
"ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToNews",
 
  858                                include_once(
"Services/Tracking/classes/class.ilObjUserTracking.php");
 
  862                                        $selection->addItem(
$lng->txt(
"learning_progress"), 
"", 
"ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToLP",
 
  867                                include_once(
'./Services/Calendar/classes/class.ilCalendarSettings.php');
 
  869                                if($settings->isEnabled())
 
  871                                        $selection->addItem(
$lng->txt(
"calendar"), 
"", 
"ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToCalendar",
 
  878                                        $selection->addItem(
$lng->txt(
'mail'), 
'', 
'ilias.php?baseClass=ilMailGUI',     
'', 
'', 
'_top');
 
  882                                require_once 
'Services/Contact/BuddySystem/classes/class.ilBuddySystem.php';
 
  885                                        $selection->addItem(
$lng->txt(
'mail_addressbook'), 
'', 
'ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToContacts', 
'', 
'', 
'_top');
 
  889                                if (!$this->
ilias->getSetting(
"disable_notes"))
 
  891                                        $selection->addItem(
$lng->txt(
"notes_and_comments"), 
"", 
"ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToNotes",
 
  896                                if (!$this->
ilias->getSetting(
"disable_bookmarks"))
 
  898                                        $selection->addItem(
$lng->txt(
"bookmarks"), 
"", 
"ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToBookmarks",
 
  903                                $selection->addItem(
$lng->txt(
"personal_settings"), 
"", 
"ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToSettings",
 
  909                        case "administration":
 
  910                                $selection->setListTitle(
$lng->txt(
"administration"));
 
  911                                $selection->setId(
"dd_adm");
 
  912                                $selection->setAsynch(
true);
 
  913                                $selection->setAsynchUrl(
"ilias.php?baseClass=ilAdministrationGUI&cmd=getDropDown&cmdMode=asynch");
 
  928                $a_tpl->setVariable(
"TXT_ADMINISTRATION", 
$lng->txt(
"administration"));
 
  929                $a_tpl->parseCurrentBlock();
 
  933                $html = $selection->getHTML();
 
  934                $a_tpl->setVariable($id_up.
"_DROP_DOWN", 
$html);
 
  935                $a_tpl->parseCurrentBlock();
 
  950                if ((
defined(
"OH_REF_ID") && OH_REF_ID > 0) || DEVMODE == 1)
 
  952                        if ($ilHelp->getScreenId() != 
"")
 
  954                                if($this->
getMode() == self::MODE_FULL)
 
  956                                        $this->tpl->setCurrentBlock(
"screen_id");
 
  957                                        $this->tpl->setVariable(
"SCREEN_ID", $ilHelp->getScreenId());
 
  958                                        $this->tpl->parseCurrentBlock();
 
  963                $help_active = 
false;
 
  965                include_once(
"./Services/UIComponent/GroupedList/classes/class.ilGroupedListGUI.php");
 
  967                $helpl->setAsDropDown(
true, 
true);
 
  969                if ($ilHelp->hasSections())
 
  973                        $lng->loadLanguageModule(
"help");
 
  977                        $tpl->addJavascript(
"./Services/Help/js/ilHelp.js");
 
  978                        include_once(
"./Services/Accordion/classes/class.ilAccordionGUI.php");
 
  980                        $acc->addJavascript();
 
  983                        include_once(
"./Services/UIComponent/Tooltip/classes/class.ilTooltipGUI.php");
 
  985                                "bottom center", 
"top center", 
false);
 
  986                        $helpl->addEntry(
"<span> </span> ".
$lng->txt(
"help_topcis"), 
"#", 
"", 
"il.Help.listHelp(event, false);");
 
  989                $module_id = (int) 
$ilSetting->get(
"help_module");
 
  990                if ((OH_REF_ID > 0 || $module_id > 0) && 
$ilUser->getLanguage() == 
"de" &&
 
  995                        $lng->loadLanguageModule(
"help");
 
  996                        $tpl->addJavascript(
"./Services/Help/js/ilHelp.js");
 
  998                        include_once(
"./Services/UIComponent/Tooltip/classes/class.ilTooltipGUI.php");
 
 1000                                "bottom center", 
"top center", 
false);
 
 1001                        $helpl->addEntry(
'<span id="help_tt_switch_on" class="glyphicon glyphicon-ok"></span> '.
$lng->txt(
"help_tooltips"), 
"#", 
"", 
"return il.Help.switchTooltips(event);");
 
 1006                        $this->tpl->setCurrentBlock(
"help");
 
 1007                        $this->tpl->setVariable(
"TXT_HELP", 
$lng->txt(
"help"));
 
 1008                        $this->tpl->setVariable(
"HELP_SELECT", $helpl->getHTML());
 
 1009                        $this->tpl->parseCurrentBlock();
 
 1012                        $ts = 
$ilCtrl->getTargetScript();
 
 1013                        $ilCtrl->setTargetScript(
"ilias.php");
 
 1015                        $ilHelp->setCtrlPar();
 
 1016                        $tpl->addOnLoadCode(
"il.Help.setAjaxUrl('".
 
 1017                                $ilCtrl->getLinkTargetByClass(
"ilhelpgui", 
"", 
"", 
true)
 
 1019                        $ilCtrl->setTargetScript($ts);
 
 1028                require_once 
'Services/Contact/BuddySystem/classes/class.ilBuddySystem.php';
 
 1031                        require_once 
'Services/Contact/BuddySystem/classes/class.ilBuddySystemGUI.php';
 
 1038                require_once 
'Services/OnScreenChat/classes/class.ilOnScreenChat.php';
 
 1039                require_once 
'Services/OnScreenChat/classes/class.ilOnScreenChatGUI.php';
 
 1046                require_once 
'Services/OnScreenChat/classes/class.ilOnScreenChatMenuGUI.php';
 
 1049                $this->tpl->setVariable(
'ONSCREENCHAT', $menu->getMainMenuHTML());
 
 1057                include_once(
"./Services/Awareness/classes/class.ilAwarenessGUI.php");
 
 1060                $this->tpl->setVariable(
"AWARENESS", $aw->getMainMenuHTML());
 
 1071                        $this->tpl->touchBlock(
'osd_container');
 
 1073                        require_once 
'Services/Notifications/classes/class.ilNotificationOSDGUI.php';
 
 1089                $this->logo_only = (bool)$a_value;
 
 1094                include_once 
'./Services/User/classes/class.ilUserUtil.php';                                            
 
 1099                        $url = 
"./goto.php?target=root_1";
 
An exception for terminatinating execution or to throw for unit testing.
static getKey($a_func_id, $lang_key="0", $a_ignore_default=false)
Get single access key.
Accordion user interface class.
User interface class for advanced drop-down selection lists.
static getInstance()
Get instance.
static getInstance()
Constructor.
static initializeFrontend()
static _getInstance()
get singleton instance
static getMainMenuTooltip($a_item_id)
Get main menu tooltip.
static _getLink($a_ref_id, $a_type='', $a_params=array(), $append="")
static _getStaticLink($a_ref_id, $a_type='', $a_fallback_goto=true, $append="")
Get static link.
static getMailObjectRefId()
Determines the reference id of the mail object and stores this information in a local cache variable.
static getNumberOfNewMailsByUserId($usr_id)
Determines the number of new mails for the passed user id and stores this information in a local cach...
Handles display of the main menu.
populateWithBuddySystem()
Includes all buddy system/user connections related javascript code.
setTopBarBack($a_url, $a_caption=null)
renderOnScreenNotifications(\ilObjUser $user, \ilTemplate $mainTpl, \ilLanguage $lng)
setTemplate(&$tpl)
set output template
setTemplateVars()
set all template variables (images, scripts, target frames, ...)
getTemplate()
get output template
renderDropDown($a_tpl, $a_id)
GetDropDownHTML.
getLoginTargetPar()
Get target parameter for login.
__construct($a_target="_top", $a_use_start_template=false)
renderMainMenuListEntries($a_tpl, $a_call_get=true)
desc
showLogoOnly($a_value)
Toggle rendering of main menu, search, user info.
renderAwareness()
Render awareness tool.
static getLanguageSelection($a_in_topbar=false)
renderStatusBox($a_tpl)
Render status box.
renderEntry($a_tpl, $a_id, $a_txt, $a_script, $a_target="_top")
Render main menu entry.
static _checkAdministrationPermission()
renderHelpButtons()
Render help button.
getScriptTarget($a_script)
generates complete script target (private)
initMemberView()
Init member view @global type $lng.
setLoginTargetPar($a_val)
Set target parameter for login (public sector).
const MODE_TOPBAR_MEMBERVIEW
const MODE_TOPBAR_REDUCED
populateWithOnScreenChat()
Add a search box to main menu.
static getInstance()
Get instance.
Class ilNotificationOSDGUI.
static _hasLearningProgressOtherUsers()
static _hasLearningProgressLearner()
static _enabledLearningProgress()
check wether learing progress is enabled or not
static _lookupObjId($a_id)
static _getIcon($a_obj_id="", $a_size="big", $a_type="", $a_offline=false)
Get icon for repository item.
static _lookupType($a_id, $a_reference=false)
lookup object type
static initializeFrontend()
Initialize frontend and delivers required javascript files and configuration to the global template.
static _lookupRegistrationType()
static _getSearchSettingRefId()
Read the ref_id of Search Settings object.
special template class to simplify handling of ITX/PEAR
static buildLoginTarget()
Add current object (repository/workspace) as target for login url.
UI interface hook processor.
static getStartingPointAsUrl()
Get current starting point setting as URL.
static appendUrlParameterString($a_url, $a_par, $xml_style=false)
append URL parameter string ("par1=value1&par2=value2...") to given URL string
static shortenText($a_str, $a_len, $a_dots=false, $a_next_blank=false, $a_keep_extension=false)
shorten a string to given length.
static getStyleSheetLocation($mode="output", $a_css_name="", $a_css_location="")
get full style sheet file name (path inclusive) of current user
static img($a_src, $a_alt="", $a_width="", $a_height="", $a_border=0, $a_id="", $a_class="")
Build img tag.
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
mail($to, $subject, $message, $additional_headers=null, $additional_parameters=null)
redirection script todo: (a better solution should control the processing via a xml file)
defined( 'APPLICATION_ENV')||define( 'APPLICATION_ENV'
if((!isset($_SERVER['DOCUMENT_ROOT'])) OR(empty($_SERVER['DOCUMENT_ROOT']))) $_SERVER['DOCUMENT_ROOT']