-
Notifications
You must be signed in to change notification settings - Fork 12
/
config.php
99 lines (80 loc) · 3.47 KB
/
config.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<?php
return [
/*
|--------------------------------------------------------------------------
| Inherit from another theme
|--------------------------------------------------------------------------
|
| Set up inherit from another if the file is not exists,
| this is work with "layouts", "partials", "views" and "widgets"
|
| [Notice] assets cannot inherit.
|
*/
'inherit' => null, //default
/*
|--------------------------------------------------------------------------
| List view for the theme
|--------------------------------------------------------------------------
|
| Here you can specify which view is to be loaded for the list page
| this can be 'list', 'grid', 'box', 'bootstrap-table' or 'data-table'
|
| You can specify additional views but you have to create it under
| 'patrial/list' folder of each package that uses this theme.
|
*/
/*
|--------------------------------------------------------------------------
| Listener from events
|--------------------------------------------------------------------------
|
| You can hook a theme when event fired on activities
| this is cool feature to set up a title, meta, default styles and scripts.
|
| [Notice] these event can be override by package config.
|
*/
'events' => [
// Before event inherit from package config and the theme that call before,
// you can use this event to set meta, breadcrumb template or anything
// you want inheriting.
'before' => function ($theme) {
// You can remove this line anytime.
},
// Listen on event before render a theme,
// this event should call to assign some assets,
// breadcrumb template.
'beforeRenderTheme' => function ($theme) {
//You may use this event to set up your assets.
//You may use this event to set up your assets.
$theme->asset()->usePath()->add('app', 'dist/css/app.css');
$theme->asset()->usePath()->add('settings', 'css/settings.css');
$theme->asset()->usePath()->add('jquery', 'dist/js/jquery.min.js');
$theme->asset()->container('footer')->usepath()->add('manifest', 'dist/js/manifest.js');
$theme->asset()->container('footer')->usepath()->add('vendor', 'dist/js/vendor.js');
$theme->asset()->container('footer')->usepath()->add('app', 'dist/js/app.js');
$theme->asset()->container('footer')->usepath()->add('main', 'js/main.js');
$theme->asset()->container('footer')->usepath()->add('theme', 'js/theme.js');
},
// Listen on event before render a layout,
// this should call to assign style, script for a layout.
'beforeRenderLayout' => [
'default' => function ($theme) {
$theme->asset()->usePath()->add('layout', 'css/public.css');
},
'home' => function ($theme) {
$theme->asset()->usePath()->add('layout', 'css/public.css');
},
'app' => function ($theme) {
$theme->asset()->usePath()->add('layout', 'css/app.css');
},
'user' => function ($theme) {
$theme->asset()->usePath()->add('layout', 'css/app.css');
},
'auth' => function ($theme) {
$theme->asset()->usePath()->add('layout', 'css/app.css');
},
],
],
];