/** * show glossary term */ function ilGlossary() { global $ilCtrl; require_once "./Modules/Glossary/classes/class.ilGlossaryTermGUI.php"; $term_gui = new ilGlossaryTermGUI($_GET["obj_id"]); // content style $this->tpl->setCurrentBlock("ContentStyle"); if (!$this->offlineMode()) { $this->tpl->setVariable("LOCATION_CONTENT_STYLESHEET", ilObjStyleSheet::getContentStylePath($this->lm->getStyleSheetId())); } else { $this->tpl->setVariable("LOCATION_CONTENT_STYLESHEET", "content_style/content.css"); } $this->tpl->parseCurrentBlock(); // syntax style $this->tpl->setCurrentBlock("SyntaxStyle"); if (!$this->offlineMode()) { $this->tpl->setVariable("LOCATION_SYNTAX_STYLESHEET", ilObjStyleSheet::getSyntaxStylePath()); } else { $this->tpl->setVariable("LOCATION_SYNTAX_STYLESHEET", "syntaxhighlight.css"); } $this->tpl->parseCurrentBlock(); $int_links = $term_gui->getInternalLinks(); $link_xml = $this->getLinkXML($int_links, $this->getLayoutLinkTargets()); $link_xml .= $this->getLinkTargetsXML(); $term_gui->setLinkXML($link_xml); $term_gui->setOfflineDirectory($this->getOfflineDirectory()); if (!$this->offlineMode()) { $ilCtrl->setParameter($this, "pg_type", "glo"); } $term_gui->output($this->offlineMode(), $this->tpl); if (!$this->offlineMode()) { $ilCtrl->setParameter($this, "pg_type", ""); } }