public function jumbotron()
{
return _class('html')->jumbotron([
'head' => 'My big header',
'body' => '<p>This is a simple hero unit, a simple jumbotron-style component for calling extra attention to featured content or information.</p>
<p><a class="btn btn-primary btn-lg" role="button">Learn more</a></p>',
]);
}
public function jumbotron($data = [], $extra = [])
{
if ($this->_is_bs5) {
return $this->_bs5()->jumbotron($data, $extra);
}
$extra['id'] = ($extra['id'] ?? null) ?: __FUNCTION__ . '_' . ($this->_ids[__FUNCTION__] = ($this->_ids[__FUNCTION__] ?? 0) + 1);
return '<div class="jumbotron' . (($extra['class'] ?? null) ? ' ' . ($extra['class'] ?? null) : '') . '" id="' . ($extra['id'] ?? null) . '"><h1>' . ($data['head'] ?? null) . '</h1>' . ($data['body'] ?? null) . '</div>';
}
This is a simple hero unit, a simple jumbotron-style component for calling extra attention to featured content or information.