コード例 #1
0
ファイル: class.ilTemplate.php プロジェクト: bheyser/qplskl
 /**
  * @access	public
  * @param	string
  * @param bool fill template variable {TABS} with content of ilTabs
  */
 function show($part = "DEFAULT", $a_fill_tabs = true, $a_skip_main_menu = false)
 {
     global $ilias, $ilTabs;
     // include yahoo dom per default
     include_once "./Services/YUI/classes/class.ilYuiUtil.php";
     ilYuiUtil::initDom();
     //echo "-".ilUtil::getP3PLocation()."-";
     //header('P3P: policyref="'.ilUtil::getP3PLocation().
     //	'", CP="CURa ADMa DEVa TAIa PSAa PSDa IVAa IVDa OUR BUS IND UNI COM NAV INT CNT STA PRE"');
     header('P3P: CP="CURa ADMa DEVa TAIa PSAa PSDa IVAa IVDa OUR BUS IND UNI COM NAV INT CNT STA PRE"');
     header("Content-type: " . $this->getContentType() . "; charset=UTF-8");
     $this->fillMessage();
     // display ILIAS footer
     if ($part !== false) {
         $this->addILIASFooter();
     }
     // set standard parts (tabs and title icon)
     $this->fillBodyClass();
     if ($a_fill_tabs) {
         if ($this->blockExists("content")) {
             // determine default screen id
             $this->getTabsHTML();
         }
         // to get also the js files for the main menu
         if (!$a_skip_main_menu) {
             $this->getMainMenu();
             $this->initHelp();
         }
         if ($this->blockExists("content") && $this->variableExists('MAINMENU')) {
             global $tpl;
             include_once 'Services/Authentication/classes/class.ilSessionReminderGUI.php';
             $session_reminder_gui = new ilSessionReminderGUI(ilSessionReminder::createInstanceWithCurrentUserSession());
             $tpl->setVariable('SESSION_REMINDER', $session_reminder_gui->getHtml());
         }
         // these fill blocks in tpl.main.html
         $this->fillCssFiles();
         $this->fillInlineCss();
         //$this->fillJavaScriptFiles();
         $this->fillContentStyle();
         // these fill just plain placeholder variables in tpl.main.html
         $this->setCurrentBlock("DEFAULT");
         $this->fillNewContentStyle();
         $this->fillContentLanguage();
         $this->fillWindowTitle();
         // these fill blocks in tpl.adm_content.html
         $this->fillHeader();
         $this->fillSideIcons();
         $this->fillScreenReaderFocus();
         $this->fillStopFloating();
         $this->fillLeftContent();
         $this->fillLeftNav();
         $this->fillRightContent();
         $this->fillAdminPanel();
         $this->fillToolbar();
         $this->fillPermanentLink();
         $this->setCenterColumnClass();
         // late loading of javascipr files, since operations above may add files
         $this->fillJavaScriptFiles();
         $this->fillOnLoadCode();
         // these fill just plain placeholder variables in tpl.adm_content.html
         // these fill just plain placeholder variables in tpl.adm_content.html
         if ($this->blockExists("content")) {
             $this->setCurrentBlock("content");
             $this->fillTabs();
             $this->fillMainContent();
             $this->fillMainMenu();
             $this->fillLightbox();
             $this->parseCurrentBlock();
         }
     }
     if ($part == "DEFAULT" or is_bool($part)) {
         $html = parent::get();
     } else {
         $html = parent::get($part);
     }
     // include the template output hook
     global $ilPluginAdmin;
     $pl_names = $ilPluginAdmin->getActivePluginsForSlot(IL_COMP_SERVICE, "UIComponent", "uihk");
     foreach ($pl_names as $pl) {
         $ui_plugin = ilPluginAdmin::getPluginObject(IL_COMP_SERVICE, "UIComponent", "uihk", $pl);
         $gui_class = $ui_plugin->getUIClassInstance();
         $resp = $gui_class->getHTML("", "template_show", array("tpl_id" => $this->tplIdentifier, "tpl_obj" => $this, "html" => $html));
         if ($resp["mode"] != ilUIHookPluginGUI::KEEP) {
             $html = $gui_class->modifyHTML($html, $resp);
         }
     }
     print $html;
     $this->handleReferer();
 }
コード例 #2
0
 function get($part = "DEFAULT")
 {
     if ($part == "DEFAULT") {
         return parent::get();
     } else {
         return parent::get($part);
     }
 }