This repository was archived by the owner on Oct 29, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPlugin.php
More file actions
91 lines (83 loc) · 2.43 KB
/
Plugin.php
File metadata and controls
91 lines (83 loc) · 2.43 KB
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
<?php namespace BeEasy\Slider;
use Backend;
use System\Classes\PluginBase;
/**
* Slick Plugin Information File
*/
class Plugin extends PluginBase
{
/**
* Returns information about this plugin.
*
* @return array
*/
public function pluginDetails()
{
return [
'name' => 'Slick',
'description' => 'A touch-friendly image and video slider.',
'author' => 'Scott Bedard',
'icon' => 'icon-picture-o'
];
}
/**
* Registers the backend navigation items
*
* @return array
*/
public function registerNavigation()
{
return [
'slick' => [
'label' => 'Slider',
'url' => Backend::url('beeasy/slider/slides'),
'icon' => 'icon-picture-o',
'permissions' => ['BeEasy.Slider.*'],
'order' => 600,
'sideMenu' => [
'slides' => [
'label' => 'Slides',
'icon' => 'icon-picture-o',
'url' => Backend::url('beeasy/slider/slides'),
'permissions' => ['BeEasy.Slider.access_slides'],
],
'settings' => [
'label' => 'Settings',
'icon' => 'icon-cog',
'url' => Backend::url('system/settings/update/beeasy/slider/general'),
'permissions' => ['BeEasy.Slider.access_settings'],
],
],
],
];
}
/**
* Register the backend settings
*
* @return array
*/
public function registerSettings()
{
return [
'general' => [
'label' => 'Slick',
'icon' => 'icon-picture-o',
'description' => 'A touch-friendly image and video slider.',
'class' => 'BeEasy\Slider\Models\Settings',
'order' => 100,
'keywords' => 'slider'
],
];
}
/**
* Registers the frontend components
*
* @return array
*/
public function registerComponents()
{
return [
'BeEasy\Slider\Components\Slider' => 'slickSlider',
];
}
}