Exemplo n.º 1
0
 function update($new_instance, $old_instance)
 {
     $instance = parent::update($new_instance, $old_instance);
     $instance['show_cart_icon'] = empty($new_instance['show_cart_icon']) ? 0 : 1;
     return $instance;
 }