/** * Create a standard Smarty template with default caching set to 1 hour. */ public function __construct() { parent::__construct(); $this->template_dir = \Orion::config()->get('TEMPLATE_PATH'); $this->compile_dir = \Orion::base() . \Orion::RENDERER_PATH . 'smarty/templates_c/'; $this->config_dir = \Orion::base() . \Orion::RENDERER_PATH . 'smarty/configs/'; $this->cache_dir = \Orion::base() . \Orion::RENDERER_PATH . 'smarty/cache/'; $this->caching = \Smarty::CACHING_LIFETIME_SAVED; $this->cache_lifetime = 3600; $this->disableSecurity(); $this->compile_check = false; $this->debugging = false; $this->force_compile = false; }
/** * Get plugin's complete url * @param string $plugin plugin file, if NULL, returns global plugin url * @return string */ public static function getPluginURL($plugin = null) { if ($plugin == null) { return \Orion::config()->get('BASE_URL') . \Orion::base() . \Orion::PLUGIN_PATH; } else { return \Orion::config()->get('BASE_URL') . \Orion::base() . \Orion::PLUGIN_PATH . $plugin . DS; } }