Beispiel #1
0
 /**
  * checks if the current control is active
  *
  * @since 1.0.0
  * @access public
  */
 public function is_active()
 {
     if (!empty($this->parent)) {
         return $this->parent->is_active();
     }
     return parent::is_active();
 }
Beispiel #2
0
 /**
  * Set hooks on when to load the notices
  *
  * @since 1.0.0
  * @access protected
  */
 protected function actions()
 {
     parent::actions();
     // init uix after loaded
     add_action('admin_notices', array($this, 'render'));
 }
Beispiel #3
0
 /**
  * Define core panel styles ans scripts
  *
  * @since 1.0.0
  * @access public
  */
 public function set_assets()
 {
     $this->assets['script']['panel'] = $this->url . 'assets/js/panel' . UIX_ASSET_DEBUG . '.js';
     $this->assets['style']['panel'] = $this->url . 'assets/css/panel' . UIX_ASSET_DEBUG . '.css';
     parent::set_assets();
 }