Ejemplo n.º 1
0
 /**
  * Return the Wrapper Attributes
  * @return array
  */
 public function wrapperAttributes()
 {
     $attr = parent::wrapperAttributes();
     $attr['class'][] = 'zbase-widget-wrapper';
     $attr['id'] = 'zbase-widget-wrapper-' . $this->id();
     return $attr;
 }
Ejemplo n.º 2
0
 /**
  * Return the Wrapper Attributes
  * @return array
  */
 public function wrapperAttributes()
 {
     $attr = parent::wrapperAttributes();
     if (!empty($this->_entity)) {
         if ($this->_action == 'delete' && strtolower(zbase_request_method()) != 'post' || $this->isNode() && $this->_entity->hasSoftDelete() && empty($this->_entityIsDefault) && $this->_entity->trashed()) {
             $attr['class'][] = 'action-delete';
             $attr['style'][] = 'border:2px solid red; padding:20px;';
         }
     }
     return $attr;
 }