forked from skydiver/october-plugin-ssbuttons
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPlugin.php
51 lines (42 loc) · 1.64 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
<?php
namespace Martin\SSButtons;
use System\Classes\PluginBase;
use System\Classes\SettingsManager;
class Plugin extends PluginBase {
public function pluginDetails() {
return [
'name' => 'martin.ssbuttons::lang.plugin.name',
'description' => 'martin.ssbuttons::lang.plugin.description',
'author' => 'Martin',
'icon' => 'icon-share-alt'
];
}
/*
public function registerSettings() {
return [
'settings' => [
'label' => 'martin.ssbuttons::lang.plugin.name',
'description' => 'martin.ssbuttons::lang.plugin.description',
'icon' => 'icon-share-alt',
'class' => '\Martin\SSButtons\Models\Settings',
'order' => 1,
'permissions' => ['martin.ssbuttons.access'],
'category' => 'system::lang.system.categories.system'
],
];
}
*/
public function registerPermissions() {
return [
'martin.ssbuttons.access' => ['tab' => 'system::lang.permissions.name', 'label' => 'martin.ssbuttons::lang.plugin.permissions'],
];
}
public function registerComponents() {
return [
'Martin\SSButtons\Components\SSButtons' => 'ssbuttons',
'Martin\SSButtons\Components\SSButtonsNB' => 'ssbuttonsnb',
'Martin\SSButtons\Components\SSButtonsSSB' => 'ssbuttonsssb'
];
}
}
?>