This repository has been archived by the owner on Jun 7, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
71 lines (60 loc) · 1.78 KB
/
index.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
<?php
/**
* Configuration
*/
return [
/**
* Unique name that identifies your theme.
*/
'name' => 'theme',
/**
* Define menu positions.
* Will be listed in the backend so that users
* can assign menus to these positions.
*/
'menus' => [
'main' => 'Menu',
'offcanvas' => 'Off Canvas'
],
/**
* Define widget positions.
* will be listed in the backend so that users
* can publish widgets in these positions.
*/
'positions' => [
'above-full' => 'Above Full Width',
'above' => 'Above content',
'right-sidebar' => 'Right Sidebar',
'left-sidebar' => 'Left Sidebar',
'under' => 'Under content',
'under-full' => 'Under Full Width'
],
/**
* Settings url
*/
'settings' => '@site/settings#site-theme',
'events' => [
'view.system/site/admin/settings' => function ($event, $view) use ($app) {
$view->script('site-theme', 'theme:app/bundle/site-theme.js', 'site-settings');
$view->data('$theme', $this);
},
'view.system/widget/edit' => function ($event, $view) {
$view->script('widget-theme', 'theme:app/bundle/widget-theme.js', 'widget-edit');
},
'view.system/site/admin/edit' => function ($event, $view) {
$view->script('node-theme', 'theme:app/bundle/node-theme.js', 'site-edit');
}
],
'node' => [
'title_hide' => false
],
/**
* Define theme configuration.
* This is the theme's default configuration. During run-time, they will be merged with
* settings the user has set in the backend. The default configuration can therefore
* be overwritten.
*/
'config' => [
'blog_frontpage' => true
]
];