Example #1
0
 public function process()
 {
     if (!$this->isProcessed()) {
         $li = new LiElement();
         if ($this->hasClass('active')) {
             $li->addClass('active');
         }
         $this->getParent()->insertBefore($this, $li);
         $li->addChild($this);
         $this->setAttribute('HREF', '#xtpl-boostrap-tab-' . $this->getAttribute('NAME'));
         $this->setAttribute('DATA-TOGGLE', 'tab');
     }
     return parent::process();
 }
Example #2
0
 public function __construct(array $attributes = array())
 {
     parent::__construct($attributes);
     $this->addClass('divider');
 }