示例#1
0
 /**
  * Gets the attributes for the control.
  *
  * @since  1.0.0
  * @access public
  */
 public function set_attributes()
 {
     parent::set_attributes();
     if (!empty($this->struct['toggle_all'])) {
         $this->attributes['data-toggle-all'] = 'true';
     }
 }
示例#2
0
 /**
  * Gets the attributes for the control.
  *
  * @since  1.0.0
  * @access public
  */
 public function set_attributes()
 {
     parent::set_attributes();
     $this->attributes['rows'] = '5';
     $this->attributes['class'] = 'widefat';
     if (!empty($this->struct['rows'])) {
         $this->attributes['rows'] = $this->struct['rows'];
     }
 }
示例#3
0
 /**
  * Gets the attributes for the control.
  *
  * @since  1.0.0
  * @access public
  */
 public function set_attributes()
 {
     parent::set_attributes();
     $this->attributes['type'] = $this->type;
     unset($this->attributes['id']);
 }