コード例 #1
0
 /**
  * Constructor
  */
 public function __construct()
 {
     global $tpl;
     if (!ilImprint::_exists("impr", 1)) {
         $page = new ilImprint("impr");
         $page->setId(1);
         $page->create();
     }
     // there is only 1 imprint page
     parent::__construct("impr", 1);
     // content style (using system defaults)
     include_once "./Services/Style/classes/class.ilObjStyleSheet.php";
     $tpl->setCurrentBlock("SyntaxStyle");
     $tpl->setVariable("LOCATION_SYNTAX_STYLESHEET", ilObjStyleSheet::getSyntaxStylePath());
     $tpl->parseCurrentBlock();
     $tpl->setCurrentBlock("ContentStyle");
     $tpl->setVariable("LOCATION_CONTENT_STYLESHEET", ilObjStyleSheet::getContentStylePath(0));
     $tpl->parseCurrentBlock();
     // config
     $this->setPreventHTMLUnmasking(true);
     $this->setEnabledPCTabs(true);
     $this->setEnabledMaps(false);
     $this->setEnabledInternalLinks(false);
     $this->setEnabledWikiLinks(false);
     $this->setEnabledActivation(true);
 }
コード例 #2
0
 /**
  * Constructor
  */
 public function __construct()
 {
     global $tpl;
     if (!ilImprint::_exists("impr", 1)) {
         $page = new ilImprint("impr");
         $page->setId(1);
         $page->create();
     }
     // there is only 1 imprint page
     parent::__construct("impr", 1);
     // content style (using system defaults)
     include_once "./Services/Style/classes/class.ilObjStyleSheet.php";
     $tpl->setCurrentBlock("SyntaxStyle");
     $tpl->setVariable("LOCATION_SYNTAX_STYLESHEET", ilObjStyleSheet::getSyntaxStylePath());
     $tpl->parseCurrentBlock();
     $tpl->setCurrentBlock("ContentStyle");
     $tpl->setVariable("LOCATION_CONTENT_STYLESHEET", ilObjStyleSheet::getContentStylePath(0));
     $tpl->parseCurrentBlock();
 }