Initial commit
This commit is contained in:
commit
998d011cd3
233 changed files with 36893 additions and 0 deletions
29
onyx/modules/templates/main.php
Normal file
29
onyx/modules/templates/main.php
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
<?php
|
||||
|
||||
if(!defined('ONYX')) exit;
|
||||
|
||||
define('SMARTY_DIR',ONYX.'modules/templates/smarty/');
|
||||
|
||||
require_once(SMARTY_DIR."Smarty.class.php");
|
||||
|
||||
define('_TEMPLATE_DIR',ONYX.'tpl/'.$OPT['tpl'].'/');
|
||||
define('_TEMPLATE_COMPILE',ONYX.$OPT['compile']);
|
||||
define('_TEMPLATE_CONFIG',ONYX.$OPT['config']);
|
||||
define('_TEMPLATE_CACHE',ONYX.$OPT['cache']);
|
||||
|
||||
class Template extends Smarty
|
||||
{
|
||||
//var $compile_check = false;
|
||||
//var $force_compile = true;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
$this->setTemplateDir(_TEMPLATE_DIR);
|
||||
$this->setCompileDir(_TEMPLATE_COMPILE);
|
||||
$this->setCacheDir(_TEMPLATE_CACHE);
|
||||
//SetCONFIGDIR !
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in a new issue