Commit 16dc1b0d authored by Karl Hasselbring's avatar Karl Hasselbring
Browse files

* First approach on loading CSS

parent d246618d
......@@ -20,8 +20,18 @@ class StartpageController extends Controller
'homeIcon']);
}
public function loadPage($subpage = "datenschutz")
public function loadPage($subpage)
{
/* TODO CSS und Titel laden
$css = array(
'datenschutz' => 'privacy.css',
);
if (in_array($subpage, $css)) {
return view($subpage, [ 'title' => 'Datenschutz Richtlinien', 'css' => $css[$subpage]]);
} else {
return view($subpage, [ 'title' => 'Datenschutz Richtlinien']);
}*/
return view($subpage, [ 'title' => 'Datenschutz Richtlinien']);
}
......
......@@ -14,7 +14,9 @@
<link rel="search" type="application/opensearchdescription+xml" title="MetaGer: Sicher suchen &amp; finden, Privatsph&auml;re sch&uuml;tzen" href="https://metager.de/plugins/opensearchplugin.xml" />
<link href="/css/bootstrap.css" rel="stylesheet" />
<link href="/css/style.css" rel="stylesheet" />
@if (isset($css))
<link href={{ $css }} rel="stylesheet" />
@endif
<link id="theme" href="/css/theme.css.php" rel="stylesheet" />
</head>
<body>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment