2009-11-01 11:00:00 +00:00
|
|
|
<?php
|
|
|
|
|
2020-11-21 18:54:32 +00:00
|
|
|
if (!defined('ONYX')) {
|
|
|
|
exit;
|
|
|
|
}
|
2009-11-01 11:00:00 +00:00
|
|
|
|
2020-11-21 18:54:32 +00:00
|
|
|
define('SMARTY_DIR', ONYX.'modules/templates/smarty/');
|
2009-11-01 11:00:00 +00:00
|
|
|
|
|
|
|
require_once(SMARTY_DIR."Smarty.class.php");
|
|
|
|
|
2020-11-21 18:54:32 +00:00
|
|
|
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']);
|
2009-11-01 11:00:00 +00:00
|
|
|
|
|
|
|
class Template extends Smarty
|
2020-11-21 18:54:32 +00:00
|
|
|
{
|
|
|
|
public $template_dir = _TEMPLATE_DIR;
|
|
|
|
public $compile_dir = _TEMPLATE_COMPILE;
|
|
|
|
public $config_dir = _TEMPLATE_CONFIG;
|
|
|
|
public $cache_dir = _TEMPLATE_CACHE;
|
2009-11-01 11:00:00 +00:00
|
|
|
|
2020-11-21 18:54:32 +00:00
|
|
|
public $compile_check = false;
|
|
|
|
public $force_compile = true;
|
|
|
|
|
|
|
|
public function set_template($i = null)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
}
|