public function __construct() { $class = str_replace(CI::$APP->config->item('controller_suffix'), '', get_class($this)); log_message('debug', $class . " MX_Controller Initialized"); Modules::$registry[strtolower($class)] = $this; // ================================ START CITSTUDIO CONFIG ===== $this->load->helper('config'); $this->load->helper('template'); $this->load->library('carabiner'); $this->load->library('parser'); $this->data["ctTemplate_slider"] = TRUE; $carabiner_config = array('script_dir' => 'assets/' . ctConfig('admin_template') . '/', 'style_dir' => 'assets/' . ctConfig('admin_template') . '/', 'cache_dir' => 'assets/cache/', 'base_uri' => '/', 'combine' => FALSE, 'dev' => TRUE, 'minify_js' => TRUE, 'minify_css' => TRUE); $this->carabiner->config($carabiner_config); $css["global"] = array(array('dist/css/bootstrap.min.css'), array('dist/css/veneto-admin.min.css')); $css["themes"] = array(array('demo/css/demo.css')); $css["fonts"] = array(array('dist/assets/font-awesome/css/font-awesome.css')); $this->carabiner->group('admin', array('css' => $css["global"])); $this->carabiner->group('admin-theme', array('css' => $css["themes"])); $this->carabiner->group('admin-fonts', array('css' => $css["fonts"])); $js["global"] = array(array('dist/assets/libs/jquery/jquery.min.js'), array('dist/assets/bs3/js/bootstrap.min.js'), array('dist/assets/plugins/jquery-navgoco/jquery.navgoco.js'), array('dist/js/main.js')); $this->carabiner->group('admin', array('js' => $js["global"])); $this->data["tpl_title"] = "Control Panel JabarCMS"; $this->data["page_title"] = "Dashboard"; // ================================ END CITSTUDIO CONFIG ======= /* copy a loader instance and initialize */ $this->load = clone load_class('Loader'); $this->load->initialize($this); /* autoload module items */ $this->load->_autoloader($this->autoload); }
public function __construct() { parent::__construct(); $this->load->helper('config'); $this->load->helper('template'); $this->load->library('carabiner'); $this->load->library('parser'); $this->data["ctTemplate_slider"] = TRUE; $carabiner_config = array('script_dir' => 'assets/' . ctConfig('front_template') . '/js/', 'style_dir' => 'assets/' . ctConfig('front_template') . '/css/', 'cache_dir' => 'assets/cache/', 'base_uri' => '/', 'combine' => FALSE, 'dev' => TRUE, 'minify_js' => TRUE, 'minify_css' => TRUE); $this->carabiner->config($carabiner_config); $css_assets_global = array(array('bootstrap.min.css'), array('font-awesome.min.css'), array('prettyPhoto.css'), array('price-range.css'), array('animate.css'), array('main.css'), array('responsive.css'), array('customs.css')); $this->carabiner->group('front', array('css' => $css_assets_global)); $js_assets_global = array(array('jquery.js'), array('bootstrap.min.js'), array('jquery.scrollUp.min.js'), array('price-range.js'), array('jquery.prettyPhoto.js'), array('main.js')); $this->carabiner->group('front', array('js' => $js_assets_global)); }
<meta name="author" content=""> <title>Home | E-Shopper</title> <?php $this->carabiner->display('front', 'css'); ?> <!--[if lt IE 9]> <script src="js/html5shiv.js"></script> <script src="js/respond.min.js"></script> <![endif]--> <link rel="shortcut icon" href="<?php echo ctConfig('upload_path'); ?> ico/favicon.ico"> <link rel="apple-touch-icon-precomposed" sizes="144x144" href="<?php echo ctConfig('upload_path'); ?> ico/apple-touch-icon-144-precomposed.png"> <link rel="apple-touch-icon-precomposed" sizes="114x114" href="<?php echo ctConfig('upload_path'); ?> ico/apple-touch-icon-114-precomposed.png"> <link rel="apple-touch-icon-precomposed" sizes="72x72" href="<?php echo ctConfig('upload_path'); ?> ico/apple-touch-icon-72-precomposed.png"> <link rel="apple-touch-icon-precomposed" href="<?php echo ctConfig('upload_path'); ?> ico/apple-touch-icon-57-precomposed.png">