Ejemplo n.º 1
0
 public function get_skins(Widget_Base $widget)
 {
     $widget_name = $widget->get_name();
     if (!isset($this->_skins[$widget_name])) {
         return false;
     }
     return $this->_skins[$widget_name];
 }
Ejemplo n.º 2
0
 public function register_widget_type(Widget_Base $widget)
 {
     if (is_null($this->_widget_types)) {
         $this->_init_widgets();
     }
     $this->_widget_types[$widget->get_name()] = $widget;
     return true;
 }
Ejemplo n.º 3
0
 public final function add_group_control($group_name, $args = [])
 {
     $args['name'] = $this->get_control_id($args['name']);
     $this->parent->add_group_control($group_name, $args);
 }
Ejemplo n.º 4
0
 public function __construct($data = [], $args = [])
 {
     $this->_widget_name = $args['widget_name'];
     parent::__construct($data, $args);
 }