Ejemplo n.º 1
0
 public function add_item($item, $describe = NULL, $attr = array())
 {
     if ($describe === self::ITEM_HEADER) {
         if (isset($attr['class'])) {
             if (is_array($attr['class'])) {
                 array_push($attr['class'], 'dropdown-header');
             } else {
                 $attr['class'] = 'dropdown-header ' . $attr['class'];
             }
         } else {
             $attr['class'] = 'dropdown-header';
         }
         parent::add_item($item, $attr);
     } else {
         parent::add_item($item, $describe, $attr);
     }
 }