forked from beeasyboards/downforlife-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPlugin.php
More file actions
65 lines (59 loc) · 1.62 KB
/
Copy pathPlugin.php
File metadata and controls
65 lines (59 loc) · 1.62 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
<?php namespace Bedard\DownForLife;
use Backend;
use System\Classes\PluginBase;
/**
* DownForLife Plugin Information File
*/
class Plugin extends PluginBase
{
/**
* Returns information about this plugin.
*
* @return array
*/
public function pluginDetails()
{
return [
'name' => 'Down For Life',
'description' => 'Awesome homies who are down for life.',
'author' => 'Scott Bedard',
'icon' => 'icon-users'
];
}
/**
* Registers the backend navigation items
*
* @return array
*/
public function registerNavigation()
{
return [
'downforlife' => [
'label' => 'Down For Life',
'url' => Backend::url('bedard/downforlife/homies'),
'icon' => 'icon-users',
'permissions' => ['Bedard.DownForLife.*'],
'order' => 700,
'sideMenu' => [
'homies' => [
'label' => 'Down For Life',
'icon' => 'icon-users',
'url' => Backend::url('bedard/downforlife/homies'),
'permissions' => ['Bedard.DownForLife.access_homies'],
],
],
],
];
}
/**
* Registers the frontend components
*
* @return array
*/
public function registerComponents()
{
return [
'Bedard\DownForLife\Components\DownForLife' => 'downforlife',
];
}
}