/** * show desktop */ function show() { // preload block settings include_once "Services/Block/classes/class.ilBlockSetting.php"; ilBlockSetting::preloadPDBlockSettings(); // add template for content $this->pd_tpl = new ilTemplate("tpl.usr_personaldesktop.html", true, true, "Services/PersonalDesktop"); $this->tpl->getStandardTemplate(); // display infopanel if something happened ilUtil::infoPanel(); //$this->tpl->setTitleIcon(ilUtil::getImagePath("icon_pd_b.png"), // $this->lng->txt("personal_desktop")); // $this->tpl->setTitleIcon(ilUtil::getImagePath("icon_pd_b.png"), // ""); $this->tpl->setTitle($this->lng->txt("overview")); $this->tpl->setVariable("IMG_SPACE", ilUtil::getImagePath("spacer.png", false)); $this->tpl->setContent($this->getCenterColumnHTML()); $this->tpl->setRightContent($this->getRightColumnHTML()); $this->tpl->setLeftContent($this->getLeftColumnHTML()); if (count($this->action_menu->getItems())) { /** * @var $tpl ilTemplate * @var $lng ilLanguage */ global $tpl, $lng; $this->action_menu->setAsynch(false); $this->action_menu->setAsynchUrl(''); $this->action_menu->setListTitle($lng->txt('actions')); $this->action_menu->setId('act_pd'); $this->action_menu->setSelectionHeaderClass('small'); $this->action_menu->setItemLinkClass('xsmall'); $this->action_menu->setLinksMode('il_ContainerItemCommand2'); $this->action_menu->setHeaderIcon(ilAdvancedSelectionListGUI::DOWN_ARROW_DARK); $this->action_menu->setUseImages(false); $htpl = new ilTemplate('tpl.header_action.html', true, true, 'Services/Repository'); $htpl->setVariable('ACTION_DROP_DOWN', $this->action_menu->getHTML()); $tpl->setHeaderActionMenu($htpl->get()); } $this->tpl->show(); }