Skip to content

Commit

Permalink
Add title pre- and postfix
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroennoten committed Nov 3, 2016
1 parent 786dec2 commit 1b9b8e5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
10 changes: 7 additions & 3 deletions config/adminlte.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,17 @@
|--------------------------------------------------------------------------
|
| The default title of your admin panel, this goes into the title tag
| of your page. You can override it per page with the title section
| like so: @section('title', 'Dashboard | My Great Admin Panel')
| of your page. You can override it per page with the title section.
| You can optionally also specify a title prefix and/or postfix.
|
*/

'title' => 'AdminLTE 2',

'title_prefix' => '',

'title_postfix' => '',

/*
|--------------------------------------------------------------------------
| Logo
Expand Down Expand Up @@ -194,8 +198,8 @@
*/

'filters' => [
JeroenNoten\LaravelAdminLte\Menu\Filters\ActiveFilter::class,
JeroenNoten\LaravelAdminLte\Menu\Filters\HrefFilter::class,
JeroenNoten\LaravelAdminLte\Menu\Filters\ActiveFilter::class,
JeroenNoten\LaravelAdminLte\Menu\Filters\SubmenuFilter::class,
JeroenNoten\LaravelAdminLte\Menu\Filters\ClassesFilter::class,
JeroenNoten\LaravelAdminLte\Menu\Filters\GateFilter::class,
Expand Down
4 changes: 3 additions & 1 deletion resources/views/master.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>@yield('title', config('adminlte.title', 'AdminLTE 2'))</title>
<title>@yield('title_prefix', config('adminlte.title_prefix', ''))
@yield('title', config('adminlte.title', 'AdminLTE 2'))
@yield('title_postfix', config('adminlte.title_postfix', ''))</title>
<!-- Tell the browser to be responsive to screen width -->
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<!-- Bootstrap 3.3.6 -->
Expand Down

0 comments on commit 1b9b8e5

Please sign in to comment.