Exemple #1
0
 /**
  * Sets the wrappers attributes
  *
  * @since 1.0.0
  * @access public
  */
 public function set_attributes()
 {
     $action = uix()->request_vars('server');
     $attributes = array('enctype' => 'multipart/form-data', 'method' => 'POST', 'class' => 'uix-ajax uix-' . $this->type, 'data-uix' => $this->slug, 'action' => $action['REQUEST_URI']);
     if (!empty($this->struct['static'])) {
         $attributes = array('class' => 'uix-' . $this->type, 'data-uix' => $this->slug);
     }
     $this->attributes += $attributes;
     parent::set_attributes();
 }