Example #1
0
 public function __construct()
 {
     parent::__construct('div');
     $this->class = 'tabs';
     $this->append($this->tabs = html_tag::create('ul'));
     $this->tabs->class = 'nav nav-tabs';
     $this->append($this->content = html_tag::create('div'));
     $this->content->class = 'tab-content';
 }
Example #2
0
 public function __construct($action, $submit = "Speichern", $method = "post")
 {
     parent::__construct('form');
     $this->action = $action;
     $this->method = $method;
     $this->class = 'form-horizontal';
     $this->buttons = html_tag::create('div')->attr('class', 'controls');
     $this->button($submit, 'submit', 'btn btn-primary');
 }
Example #3
0
 public function __construct($link, $caption = NULL)
 {
     parent::__construct('a');
     if ($caption) {
         $this->append($caption);
     }
     $this->href = $link;
     $this->link = parse_url($link);
     parse_str($this->link['query'], $this->args);
 }
Example #4
0
 public function __construct($link)
 {
     parent::__construct('ul');
     $this->class = 'nav nav-tabs nav-stacked';
     $this->link = $link instanceof html_link ? $link : new html_link($link);
 }
Example #5
0
 public function __construct()
 {
     parent::__construct('div');
     $this->class = 'grid';
 }