/** * info screen */ function outputInfoScreen() { global $ilAccess; //$this->tpl->setHeaderPageTitle("PAGETITLE", " - ".$this->lm->getTitle()); // set style sheets /* if (!$this->offlineMode()) { $this->tpl->setStyleSheetLocation(ilUtil::getStyleSheetLocation()); } else { $style_name = $this->ilias->account->prefs["style"].".css";; $this->tpl->setStyleSheetLocation("./".$style_name); }*/ $this->setInfoTabs("info_short"); $this->lng->loadLanguageModule("meta"); include_once "./Services/InfoScreen/classes/class.ilInfoScreenGUI.php"; $info = new ilInfoScreenGUI($this->slm_gui); $info->enablePrivateNotes(); //$info->enableLearningProgress(); $info->enableNews(); if ($ilAccess->checkAccess("write", "", $_GET["ref_id"])) { $info->enableNewsEditing(); $news_set = new ilSetting("news"); $enable_internal_rss = $news_set->get("enable_rss_for_internal"); if ($enable_internal_rss) { $info->setBlockProperty("news", "settings", true); } } // add read / back button if ($ilAccess->checkAccess("read", "", $_GET["ref_id"])) { include_once './Modules/ScormAicc/classes/class.ilObjSAHSLearningModule.php'; $sahs_obj = new ilObjSAHSLearningModule($_GET["ref_id"]); $om = $sahs_obj->getOpenMode(); $width = $sahs_obj->getWidth(); $height = $sahs_obj->getHeight(); if ($om != 0) { $info->addButton($this->lng->txt("view"), "javascript:void(0); onclick=startSAHS('" . $this->ctrl->getLinkTarget($this, "") . "','ilContObj" . $this->slm_gui->object->getId() . "'," . $om . "," . $width . "," . $height . ");", ''); } else { $info->addButton($this->lng->txt("view"), $this->ctrl->getLinkTarget($this, ""), ' target="ilContObj' . $this->slm_gui->object->getId() . '" '); } } // show standard meta data section $info->addMetaDataSections($this->slm_gui->object->getId(), 0, $this->slm_gui->object->getType()); /* if ($this->offlineMode()) { $this->tpl->setContent($info->getHTML()); return $this->tpl->get(); } else {*/ // forward the command $this->ctrl->forwardCommand($info); //$this->tpl->setContent("aa"); $this->tpl->show(); //} }
/** * workaround: SAHS in new javavasript-created window or iframe */ function modifySAHSlaunch($a_link, $wtarget) { if (strstr($a_link, 'ilSAHSPresentationGUI') && !$this->offline_mode) { include_once 'Modules/ScormAicc/classes/class.ilObjSAHSLearningModule.php'; $sahs_obj = new ilObjSAHSLearningModule($this->ref_id); $om = $sahs_obj->getOpenMode(); $width = $sahs_obj->getWidth(); $height = $sahs_obj->getHeight(); if ($om != 0 && !ilBrowser::isMobile()) { $this->default_command["frame"] = ""; $a_link = "javascript:void(0); onclick=startSAHS('" . $a_link . "','" . $wtarget . "'," . $om . "," . $width . "," . $height . ");"; } } return $a_link; }