Esempio n. 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();
 }
Esempio n. 2
0
 /**
  * HeadingElement constructor
  *
  * @param $heading int
  * @param AElement[]|AElement|string|null $content
  */
 public function __construct($heading = self::H1, $content = null)
 {
     parent::__construct(self::SIGN . $heading, $content);
     return $this;
 }
Esempio n. 3
0
 /**
  * DivElement constructor.
  * @param AElement[]|AElement|string|null $content
  */
 public function __construct($content = null)
 {
     parent::__construct(self::SIGN, $content);
     return $this;
 }
Esempio n. 4
0
 public function __construct(array $attributes = array())
 {
     parent::__construct($attributes);
     $this->addClass('navbar-brand');
 }