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 { protected function createJumbotron(string $content, bool $fluid=false, $class=""): string {
$jumbotronClass = "jumbotron" . ($fluid ? "-fluid" : ""); $jumbotronClass = "jumbotron" . ($fluid ? " jumbotron-fluid" : "");
if (!empty($class)) $jumbotronClass .= " $class"; if (!empty($class)) $jumbotronClass .= " $class";
return " return
<div class=\"row\"> "<div class=\"$jumbotronClass\">
<div class=\"col-12\"> $content
<div class=\"$jumbotronClass\">
$content
</div>
</div>
</div>"; </div>";
} }