public function __construct() { $this->compiler_file = OZONE_ROOT . '/php/core/OzoneSmartyCompiler.php'; $this->compiler_class = 'OzoneSmartyCompiler'; $this->compile_dir = PathManager::smartyCompileDir(); $this->cache_dir = PathManager::smartyCacheDir(); $this->plugins_dir = array(PathManager::smartyPluginDir(), PathManager::smartyOzonePluginDir()); //extra dir for application extensions $this->plugins_dir[] = WIKIDOT_ROOT . '/php/smarty_plugins/'; $this->load_filter('pre', 'defmacrohelp'); $this->assign("URL_HOST", GlobalProperties::$URL_HOST); $this->assign("URL_DOMAIN", GlobalProperties::$URL_DOMAIN); $this->assign("URL_DOCS", GlobalProperties::$URL_DOCS); $this->assign("IP_HOST", GlobalProperties::$IP_HOST); $this->assign("SERVICE_NAME", GlobalProperties::$SERVICE_NAME); $this->assign("SUPPORT_EMAIL", GlobalProperties::$SUPPORT_EMAIL); }