/** * Show page * * @param * @return */ function showPage() { global $tpl; $tpl = new ilTemplate("tpl.main.html", true, true); include_once "./Services/Container/classes/class.ilContainerPage.php"; include_once "./Services/Container/classes/class.ilContainerPageGUI.php"; include_once "./Services/Style/classes/class.ilObjStyleSheet.php"; $tpl->setVariable("LOCATION_STYLESHEET", ilUtil::getStyleSheetLocation()); $tpl->setVariable("LOCATION_CONTENT_STYLESHEET", ilObjStyleSheet::getContentStylePath(0)); $tpl->setCurrentBlock("SyntaxStyle"); $tpl->setVariable("LOCATION_SYNTAX_STYLESHEET", ilObjStyleSheet::getSyntaxStylePath()); $tpl->parseCurrentBlock(); // get page object //include_once("./Services/Object/classes/class.ilObjectTranslation.php"); //$ot = ilObjectTranslation::getInstance($this->object->getId()); //$lang = $ot->getEffectiveContentLang($ilUser->getCurrentLanguage(), "cont"); include_once "./Modules/MediaPool/classes/class.ilMediaPoolPageGUI.php"; $page_gui = new ilMediaPoolPageGUI((int) $_GET["mepitem_id"]); include_once "./Services/Style/classes/class.ilObjStyleSheet.php"; //$page_gui->setStyleId(ilObjStyleSheet::getEffectiveContentStyleId( // $this->object->getStyleSheetId(), $this->object->getType())); $page_gui->setTemplateOutput(false); $page_gui->setHeader(""); $ret = $page_gui->showPage(true); $tpl->setBodyClass("ilMediaPoolPagePreviewBody"); $tpl->setVariable("CONTENT", $ret); //$ret = "<div style='background-color: white; padding:5px; margin-bottom: 30px;'>".$ret."</div>"; //$ret =& $page_gui->executeCommand(); $tpl->show(); exit; }