public function __construct() { $this->CI =& get_instance(); $this->params['output'] = ''; $this->CI->load->helper('assets'); //default application title. We take the method and controller $this->params['title'] = ucfirst($this->CI->router->fetch_method()) . ' - ' . ucfirst($this->CI->router->fetch_class()); //application charset $this->params['charset'] = $this->CI->config->item('charset'); //application css $this->params['css'] = array(); //application js $this->params['js'] = array(); //add default css and js if (file_exists('./application/helpers/template/' . $this->theme . '_helper.php')) { $this->CI->load->helper('template/' . $this->theme); //add default css if (function_exists('get_default_css')) { $default_css = get_default_css(); if (is_array($default_css) && !empty($default_css)) { $this->params['css'] = $default_css; } } // add default js if (function_exists('get_default_js')) { $default_js = get_default_js(); if (is_array($default_js) && !empty($default_js)) { $this->params['js'] = $default_js; } } //add default top menu if (function_exists('get_default_top_menu')) { $this->params['menu']['top'] = get_default_top_menu(); } //add default left menu if (function_exists('get_default_left_menu')) { $this->params['menu']['left'] = get_default_left_menu(); } } }
function get_default_style() { $themestyle = get_value(get_settings_option('themestyle', 'style_option'), 'default'); return get_default_css($themestyle); }