Exemple #1
0
 public function render()
 {
     if ($this->hasClass('alert-dismissible')) {
         $ariaLabelAttrib = $this->ariaLabel ? ' aria-label="' . $this->ariaLabel . '"' : '';
         $this->prepend('<button type="button" class="close" ' . 'data-dismiss="alert"' . $ariaLabelAttrib . '>' . '<span aria-hidden="true">&times;</span></button>');
     }
     return parent::render();
 }
Exemple #2
0
 public function render()
 {
     if ($this->body !== null) {
         $this->prepend($this->body);
     }
     if ($this->heading !== null) {
         $this->prepend($this->heading);
     }
     if ($this->footer !== null) {
         $this->append($this->footer);
     }
     return parent::render();
 }
 public function render()
 {
     $this->tag->prepend($this->h1);
     return parent::render();
 }