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 = [])
{
$extra['id'] = $extra['id'] ?: __FUNCTION__ . '_' . ++$this->_ids[__FUNCTION__];
return '<div class="jumbotron' . ($extra['class'] ? ' ' . $extra['class'] : '') . '" id="' . $extra['id'] . '"><h1>' . $data['head'] . '</h1>' . $data['body'] . '</div>';
}
This is a simple hero unit, a simple jumbotron-style component for calling extra attention to featured content or information.