Skip to content
Snippets Groups Projects
Commit 16dc1b0d authored by karl's avatar karl
Browse files

* First approach on loading CSS

parent d246618d
No related branches found
No related tags found
1 merge request!4Develop
......@@ -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>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment