forked from ahoiroman/pagekit-lightbox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
50 lines (36 loc) · 1.17 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
<?php
use Pagekit\Application;
use Spqr\Lightbox\Plugin\LightboxPlugin;
return [
'name' => 'spqr/lightbox',
'type' => 'extension',
'main' => function (Application $app) {
},
'autoload' => [
'Spqr\\Lightbox\\' => 'src',
],
'routes' => [],
'widgets' => [],
'menu' => [],
'permissions' => [],
'settings' => '',
'resources' => [
'spqr/lightbox:' => '',
],
'config' => [],
'events' => [
'boot' => function ($event, $app) {
$app->subscribe(new LightboxPlugin);
},
'site' => function ($event, $app) {
},
'view.scripts' => function ($event, $scripts) use ($app) {
$scripts->register('editor-lightbox',
'spqr/lightbox:app/bundle/editor-lightbox.js', ['~editor']);
if ($app->module('tinymce')) {
$scripts->register('editor-lightbox-tinymce', 'spqr/lightbox:app/bundle/editor-lightbox-tinymce.js',
['~editor-lightbox', '~tinymce-script']);
}
},
],
];