-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.php
137 lines (117 loc) · 3.05 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
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
<?php
use Pagekit\Application;
/*
* This array is the module definition.
* It's used by Pagekit to load your extension and register all things
* that your extension provides (routes, menu items, php classes etc)
*/
return [
/*
* Define a unique name.
*/
'name' => 'maps',
/*
* Define the type of this module.
* Has to be 'extension' here. Can be 'theme' for a theme.
*/
'type' => 'extension',
/*
* Main entry point. Called when your extension is both installed and activated.
* Either assign an closure or a string that points to a PHP class.
* Example: 'main' => 'mediatrax\\maps\\mapsExtension'
*/
'main' => function (Application $app) {
// bootstrap code
},
/*
* Register all namespaces to be loaded.
* Map from namespace to folder where the classes are located.
* Remember to escape backslashes with a second backslash.
*/
'autoload' => [
'mediatrax\\maps\\' => 'src'
],
/*
* Define nodes. A node is similar to a route with the difference
* that it can be placed anywhere in the menu structure. The
* resulting route is therefore determined on runtime.
*/
'nodes' => [
],
/*
* Define menu items for the backend.
*/
'menu' => [
],
/*
* Define permissions.
* Will be listed in backend and can then be assigned to certain roles.
*/
'permissions' => [
],
/*
* Link to a views screen from the extensions listing.
*/
'views' => '@maps/admin/views',
/*
* Default module configuration.
* Can be overwritten by changed config during runtime.
*/
'config' => [
],
/*
* Listen to events.
*/
'events' => [
],
'widgets' => [
'widgets/maps.php'
],
'routes' => [
'@maps' => [
'path' => '/maps',
'controller' => 'mediatrax\\maps\\Controller\\mapsController',
]
],
'menu' => [
'maps' => [
'label' => 'maps',
'url' => '@maps',
'icon' => 'maps:/icon.svg'
],
'maps: settings' => [
'label' => 'Settings',
'parent' => 'maps',
'url' => '@maps/settings',
'active' => '@maps/settings*',
'access' => 'system: access settings'
]
],
'resources' => [
'maps:' => ''
],
'config' => [
'key' => 'Your Key',
'zoomControl' => 'true',
'mapTypeControl' => 'true',
'scaleControl' => 'true',
'streetViewControl' => 'true',
'rotateControl' => 'true',
'mapTypeControlStyle' => 'DEFAULT',
'zoom' => '10',
'infowindow' => 'true',
'height' => '500',
'scrollWheel' => 'true',
'draggable' => 'true',
'styler_invert_lightness' => 'false',
'styler_hue' => '#f4f6fa',
'styler_saturation' => '0',
'styler_lightness' => '0',
'styler_gamma' => '1',
'marker' => '2',
'popup_max_width' => '150',
'locale' => 'en_GB',
'language' => 'en',
'region' => 'EN'
]
];