Skip to content

Commit

Permalink
Merge pull request #4 from nickdekruijk/different-layout-options
Browse files Browse the repository at this point in the history
Ability to load extra CSS to customise look and feel
  • Loading branch information
nickdekruijk committed Jan 11, 2018
2 parents d9b230b + 98d7608 commit 9597747
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,4 +117,18 @@
'page' => 'laraPages::main.page',
],

/*
|--------------------------------------------------------------------------
| css
|--------------------------------------------------------------------------
|
| Extra CSS files to load, you can use this to customize the look and feel
|
*/

'css' => [
// '/vendor/larapages/css/larapages2.css',
// '/css/lp-admin-custom.css',
],

];
Empty file added src/css/larapages2.css
Empty file.
5 changes: 5 additions & 0 deletions src/views/admin.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable = no">
<title>{{ str_replace('www.','',$_SERVER['HTTP_HOST']) }} - Admin @yield('title')</title>
<link href="{{asset('/vendor/larapages/css/admin.css')}}" rel="stylesheet">
@if (config('larapages.css'))
@foreach (config('larapages.css') as $css)
<link href="{{$css}}" rel="stylesheet">
@endforeach
@endif
</head>
<body>
@if (isset($admin))
Expand Down

0 comments on commit 9597747

Please sign in to comment.