-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
119 lines (97 loc) · 2.47 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
<?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' => 'twitter',
/*
* 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\\twitter\\twitterExtension'
*/
'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\\twitter\\' => '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' => '@twitter/admin/views',
/*
* Default module configuration.
* Can be overwritten by changed config during runtime.
*/
'config' => [
],
/*
* Listen to events.
*/
'events' => [
],
'widgets' => [
'widgets/twitter.php'
],
'positions' => [
'hero' => 'Hero',
],
'routes' => [
'@twitter' => [
'path' => '/twitter',
'controller' => 'mediatrax\\twitter\\Controller\\twitterController',
]
],
'menu' => [
'twitter' => [
'hashtag' => 'false',
'label' => 'twitter',
'url' => '@twitter',
'icon' => 'twitter:/icon.svg'
]
],
'resources' => [
'twitter:' => ''
],
'config' => [
'name' => 'jappi2000',
'number' => '3',
'transparent' => 'false',
'noborders' => 'false',
'noscrollbar' => 'false',
]
];