jumbotron fix

This commit is contained in:
Roman 2021-04-03 16:30:11 +02:00
parent 6158a20670
commit b53ed1cfe4

@ -141,16 +141,12 @@ abstract class View extends StaticView {
}
protected function createJumbotron(string $content, bool $fluid=false, $class=""): string {
$jumbotronClass = "jumbotron" . ($fluid ? "-fluid" : "");
$jumbotronClass = "jumbotron" . ($fluid ? " jumbotron-fluid" : "");
if (!empty($class)) $jumbotronClass .= " $class";
return "
<div class=\"row\">
<div class=\"col-12\">
<div class=\"$jumbotronClass\">
$content
</div>
</div>
return
"<div class=\"$jumbotronClass\">
$content
</div>";
}