-
Notifications
You must be signed in to change notification settings - Fork 10
/
Plugin.php
61 lines (55 loc) · 1.69 KB
/
Plugin.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
<?php
namespace Flosch\Slideshow;
use System\Classes\PluginBase;
use Backend;
class Plugin extends PluginBase
{
public function pluginDetails()
{
return [
'name' => 'Slideshow',
'description' => 'Manage Twitter Bootstrap carousels with additional content.',
'author' => 'Flosch',
'icon' => 'icon-picture-o',
'homepage' => ''
];
}
/**
* @return array
*/
public function registerPermissions()
{
return [
'flosch.slideshow.access_slideshow' => [
'tab' => 'flosch.slideshow::lang.permissions.tab',
'label' => 'flosch.slideshow::lang.permissions.manage',
],
];
}
public function registerNavigation()
{
return [
'slideshow' => [
'label' => 'flosch.slideshow::lang.navigation.label',
'url' => Backend::url('flosch/slideshow/slideshows'),
'icon' => 'icon-picture-o',
'permissions' => ['flosch.slideshow.access_slideshow'],
'order' => 500,
'sideMenu' => [
'slideshows' => [
'permissions' => ['flosch.slideshow.access_slideshow'],
'label' => 'flosch.slideshow::lang.navigation.sideMenu.slideshows',
'icon' => 'icon-picture-o',
'url' => Backend::url('flosch/slideshow/slideshows'),
]
]
]
];
}
public function registerComponents()
{
return [
'Flosch\Slideshow\Components\Slideshow' => 'slideshow'
];
}
}