function buildExportTemplate() { global $ilTabs; $this->tpl = $this->co_page_html_export->getPreparedMainTemplate(); $this->tpl->getStandardTemplate(); $this->tpl->addOnLoadCode('il.Tooltip.init();', 3); // workaround $this->tpl->setVariable("MAINMENU", "<div style='min-height:40px;'></div>"); $this->tpl->setTitle($this->object->getTitle()); $ilTabs->clearTargets(); if ($this->tabs) { foreach ($this->tabs as $id => $caption) { $ilTabs->addTab("user_page_" . $id, $caption, "prtf_" . $id . ".html"); } $ilTabs->activateTab($this->active_tab); } include_once "Services/Portfolio/classes/class.ilObjPortfolioGUI.php"; ilObjPortfolioGUI::renderFullscreenHeader($this->object, $this->tpl, $this->object->getOwner(), true); $this->tpl->setFrameFixedWidth(true); return $this->tpl; }
/** * Execute Command */ function executeCommand() { global $ilCtrl, $tpl; if (!self::validateUser($this->getUserId())) { return; } $next_class = $ilCtrl->getNextClass($this); $cmd = $ilCtrl->getCmd(); $tpl->getStandardTemplate(); switch ($next_class) { case "ilobjportfoliogui": $portfolio_id = $this->getProfilePortfolio(); if ($portfolio_id) { $this->handleBackUrl(); include_once "Modules/Portfolio/classes/class.ilObjPortfolioGUI.php"; $gui = new ilObjPortfolioGUI($portfolio_id); // #11876 $gui->setAdditional($this->getAdditional()); $gui->setPermaLink($this->getUserId(), "usr"); $ilCtrl->forwardCommand($gui); break; } default: $ret = $this->{$cmd}(); $tpl->setContent($ret); break; } // only for direct links if (strtolower($_GET["baseClass"]) == "ilpublicuserprofilegui") { $tpl->show(); } }
/** * Execute Command */ function executeCommand() { global $ilCtrl, $tpl; if (!self::validateUser($this->getUserId())) { return; } $next_class = $ilCtrl->getNextClass($this); $cmd = $ilCtrl->getCmd(); $tpl->getStandardTemplate(); switch ($next_class) { case "ilobjportfoliogui": $portfolio_id = $this->getProfilePortfolio(); if ($portfolio_id) { include_once 'Services/PermanentLink/classes/class.ilPermanentLinkGUI.php'; $plink = new ilPermanentLinkGUI("usr", $this->getUserId()); $plink = $plink->getHTML(); include_once "Modules/Portfolio/classes/class.ilObjPortfolioGUI.php"; $gui = new ilObjPortfolioGUI($portfolio_id); // #11876 $gui->setAdditional($this->getAdditional()); $gui->setPermaLink($plink); $ilCtrl->forwardCommand($gui); break; } default: $ret = $this->{$cmd}(); $tpl->setContent($ret); // only for direct links if ($_GET["baseClass"] == "ilPublicUserProfileGUI") { $tpl->show(); } break; } }
function buildExportTemplate(array $a_js_files = null) { global $ilTabs; $this->tpl = $this->co_page_html_export->getPreparedMainTemplate(); $this->tpl->getStandardTemplate(); $this->tpl->addOnLoadCode('il.Tooltip.init();', 3); // js files if (is_array($a_js_files)) { foreach ($a_js_files as $js_file) { $this->tpl->setCurrentBlock("js_file"); $this->tpl->setVariable("JS_FILE", !stristr($js_file, "://") ? "./js/" . basename($js_file) : $js_file); $this->tpl->parseCurrentBlock(); } } // workaround $this->tpl->setVariable("MAINMENU", "<div style='min-height:40px;'></div>"); $this->tpl->setTitle($this->object->getTitle()); $ilTabs->clearTargets(); if ($this->tabs) { foreach ($this->tabs as $id => $caption) { $ilTabs->addTab("user_page_" . $id, $caption, "prtf_" . $id . ".html"); } $ilTabs->activateTab($this->active_tab); } include_once "Modules/Portfolio/classes/class.ilObjPortfolioGUI.php"; ilObjPortfolioGUI::renderFullscreenHeader($this->object, $this->tpl, $this->object->getOwner(), true); return $this->tpl; }