/** * output learning module submenu */ function ilLMSubMenu() { global $rbacsystem; // no sub menu for abstract of digilib book if ($this->lm->getType() == "dbk" && $this->abstract) { return; } $showViewInFrameset = true; if ($showViewInFrameset) { $buttonTarget = ilFrameTargetInfo::_getFrame("MainContent"); } else { $buttonTarget = "_top"; } include_once "./Services/UICore/classes/class.ilTemplate.php"; $tpl_menu = new ilTemplate("tpl.lm_sub_menu.html", true, true, true); $pg_id = $this->getCurrentPageId(); if ($pg_id == 0) { return; } // edit learning module if (!$this->offlineMode()) { if ($rbacsystem->checkAccess("write", $_GET["ref_id"])) { $tpl_menu->setCurrentBlock("edit_page"); $page_id = $this->getCurrentPageId(); $tpl_menu->setVariable("EDIT_LINK", ILIAS_HTTP_PATH . "/ilias.php?baseClass=ilLMEditorGUI&ref_id=" . $_GET["ref_id"] . "&obj_id=" . $page_id . "&to_page=1"); $tpl_menu->setVariable("EDIT_TXT", $this->lng->txt("edit_page")); $tpl_menu->setVariable("EDIT_TARGET", $buttonTarget); $tpl_menu->parseCurrentBlock(); } $page_id = $this->getCurrentPageId(); include_once "./Services/PermanentLink/classes/class.ilPermanentLinkGUI.php"; $plinkgui = new ilPermanentLinkGUI("pg", $page_id . "_" . $this->lm->getRefId(), "", "_top"); $title = $this->lm->getTitle(); $pg_title = ilLMPageObject::_getPresentationTitle($page_id, $this->lm->getPageHeader(), $this->lm->isActiveNumbering(), $this->lm_set->get("time_scheduled_page_activation"), false, 0, $this->lang); if ($pg_title != "") { $title .= ": " . $pg_title; } $plinkgui->setTitle($title); $tpl_menu->setCurrentBlock("perma_link"); $tpl_menu->setVariable("PERMA_LINK", $plinkgui->getHTML()); $tpl_menu->parseCurrentBlock(); } $this->tpl->setVariable("SUBMENU", $tpl_menu->get()); }