jumbotron fix
This commit is contained in:
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\">
|
|
||||||
<div class=\"$jumbotronClass\">
|
|
||||||
$content
|
$content
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>";
|
</div>";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user