Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
MetaGer
Commits
16dc1b0d
Commit
16dc1b0d
authored
May 03, 2016
by
karl
Browse files
* First approach on loading CSS
parent
d246618d
Changes
2
Show whitespace changes
Inline
Side-by-side
app/Http/Controllers/StartpageController.php
View file @
16dc1b0d
...
...
@@ -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'
]);
}
...
...
resources/views/layouts/staticPages.blade.php
View file @
16dc1b0d
...
...
@@ -14,7 +14,9 @@
<link
rel=
"search"
type=
"application/opensearchdescription+xml"
title=
"MetaGer: Sicher suchen & finden, Privatsphäre schü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>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment