function showPage() { if (!$this->getPageObject()) { return; } switch ($this->getPageObject()->getType()) { case ilPortfolioTemplatePage::TYPE_BLOG_TEMPLATE: return $this->renderBlogTemplate(); default: // needed for placeholders include_once "Services/Style/classes/class.ilObjStyleSheet.php"; $this->tpl->addCss(ilObjStyleSheet::getPlaceHolderStylePath()); return parent::showPage(); } }
/** * Export page html */ function exportPageHTML($a_post_id) { global $lng; // page include_once "Services/Portfolio/classes/class.ilPortfolioPageGUI.php"; $pgui = new ilPortfolioPageGUI($this->object->getId(), $a_post_id); $pgui->setOutputMode("offline"); $page_content = $pgui->showPage(); $this->writeExportFile("prtf_" . $a_post_id . ".html", $page_content, $pgui->getJsOnloadCode()); }
/** * Export page html */ function exportPageHTML($a_post_id) { global $lng; // page include_once "Modules/Portfolio/classes/class.ilPortfolioPageGUI.php"; $pgui = new ilPortfolioPageGUI($this->object->getId(), $a_post_id); $pgui->setOutputMode("offline"); $pgui->setFullscreenLink("fullscreen.html"); // #12930 - see page.xsl $page_content = $pgui->showPage(); $material = $pgui->getExportMaterial(); $this->export_material[] = $material; $this->writeExportFile("prtf_" . $a_post_id . ".html", $page_content, $pgui->getJsOnloadCode(), $material["js"]); }