function __construct($meta_box)
 {
     if (!is_admin()) {
         return;
     }
     $this->view = new AT_View();
     $this->view->add_style('style.css', 'assets/css/admin/admin.css');
     $this->view->add_style('fonts.css', 'assets/css/fonts.css');
     $this->view->add_style('icons.css', 'assets/css/icons.css');
     $this->view->add_style('datetimepicker.css', 'assets/css/jquery/jquery.datetimepicker.css');
     $this->view->add_script('admin-common', 'assets/js/common.js');
     $this->view->add_style('select2.css', 'assets/css/select2/select2.css');
     $this->view->add_localize_script('admin-common', 'theme_site_url', AT_Common::site_url('/'));
     $this->view->add_script('admin-options', 'assets/js/admin/options/options.js');
     $this->view->add_script('select2', 'assets/js/select2/select2.min.js');
     $this->view->add_script('jquery.datetimepicker', 'assets/js/jquery/jquery.datetimepicker.js', array('jquery'));
     parent::__construct();
     $this->_meta_box = $meta_box;
     add_action('admin_menu', array(&$this, 'add'));
     add_action('save_post', array(&$this, 'save'));
 }
 public function __construct()
 {
     parent::__construct();
     $fields = call_user_func(array($this, $this->uri->segments(2)));
     $fields = $this->_parse_values($fields);
     if ($this->uri->is_ajax_request() && !empty($_POST)) {
         try {
             if (empty($_POST[THEME_PREFIX . 'options'])) {
                 //throw new Exception( 'Save Failed!' );
                 $_POST[THEME_PREFIX . 'options'] = array();
             }
             $this->_save_fields($fields, $_POST[THEME_PREFIX . 'options']);
             $response = array('status' => 'OK', 'message' => __('Options Saved', AT_ADMIN_TEXTDOMAIN));
         } catch (Exception $e) {
             $response = array('status' => 'ERROR', 'message' => $e->getMessage());
         }
         $this->view->add_json($response)->display();
         exit;
     }
     $this->view->use_layout('admin');
     $this->_parse_fields($fields);
 }
 public function __construct()
 {
     parent::__construct();
     // $this->core->set_option( 'theme_is_activated', false );
     // $this->core->save_option();
 }
 public function __construct()
 {
     parent::__construct();
 }