-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
64 lines (60 loc) · 1.54 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
<?php
use Pagekit\Application as App;
return [
'name' => 'sgerli/flick',
'main' => function() {
},
'autoload' => [
'sgerli\\flick\\' => 'src'
],
'resources' => [
'flick:' => ''
],
'nodes' => [
'flick' => [
'name' => '@flick',
'label' => 'Flick',
'controller' => 'sgerli\\flick\\Controller\\SiteController',
'protected' => true,
'frontpage' => true
]
],
'routes' => [
'/flick' => [
'name' => '@flick',
'controller' => ['sgerli\\flick\\Controller\\FlickController']
]
],
'config' => [
'apiKey' => '',
'uId' => '',
'cId' => '',
'flick_title' => '',
'flick_text' => '',
'markdown_enabled' => false
],
'menu' => [
'flick' => [
'label' => 'Flick',
'icon' => 'app/system/assets/images/placeholder-icon.svg',
'url' => '@flick/settings',
'active' => '@flick/settings*',
'access' => 'flick: manage settings',
]
],
'permissions' => [
'flick: manage settings' => [
'title' => 'Manage settings'
]
],
'settings' => '@flick/settings',
'resources' => [
'sgerli/flick:' => '',
],
'events' => [
'view.scripts' => function ($event, $scripts) use ($app) {
$scripts->register('uikit-grid', 'app/assets/uikit/js/components/grid.min.js', 'uikit');
$scripts->register('fancybox', 'sgerli/flick:external/fancybox/jquery.fancybox.min.js');
},
]
];