public function preChildren() : string { if (is_null($this->legend) === false) { $this->preChildrenHtml .= $this->legend->render(); } return parent::preChildren(); }
public function preChildren() : string { if (is_null($this->title) === false) { $this->preChildrenHtml .= $this->title->render(); } if (is_null($this->subtitle) === false) { $this->preChildrenHtml .= $this->subtitle->render(); } return parent::preChildren(); }
public function preChildren() : string { if (is_null($this->header) === false) { $this->preChildrenHtml .= $this->header->render(); } if (is_null($this->footer) === false) { $this->postChildrenHtml .= $this->footer->render(); } $i = 0; foreach ($this->children as $child) { if (is_object($child) === true) { if ($child->tag == 'ul') { foreach ($child->children as $listItem) { $listItem->addClass('list-group-item'); } } if ($child->tag == 'img') { if ($i == 0 && is_null($this->header) === true) { $child->addClass('card-img-top'); } elseif ($i == count($this->children) - 1 && is_null($this->footer) === true) { $child->addClass('card-img-bottom'); } } } $i++; } return parent::preChildren(); }