-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathPlugin.php
More file actions
69 lines (61 loc) · 1.64 KB
/
Plugin.php
File metadata and controls
69 lines (61 loc) · 1.64 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
<?php
namespace GinoPane\AwesomeSocialLinks;
use GinoPane\AwesomeSocialLinks\Components\LinkList;
use System\Classes\PluginBase;
use GinoPane\AwesomeSocialLinks\Models\Settings;
/**
* Class Plugin
*
* @package GinoPane\AwesomeSocialLinks
*/
class Plugin extends PluginBase
{
const DEFAULT_ICON = 'icon-users';
const LOCALIZATION_KEY = 'ginopane.awesomesociallinks::lang.';
public $require = [
'GinoPane.AwesomeIconsList'
];
/**
* Returns information about this plugin
*
* @return array
*/
public function pluginDetails(): array
{
return [
'name' => self::LOCALIZATION_KEY . 'plugin.name',
'description' => self::LOCALIZATION_KEY . 'plugin.description',
'author' => 'Siarhei <Gino Pane> Karavai',
'icon' => self::DEFAULT_ICON,
'homepage' => 'https://github.com/ginopane/oc-awesomesociallinks-plugin'
];
}
/**
* Register components
*
* @return array
*/
public function registerComponents(): array
{
return [
LinkList::class => LinkList::NAME
];
}
/**
* Register plugin settings
*
* @return array
*/
public function registerSettings(): array
{
return [
'settings' => [
'label' => self::LOCALIZATION_KEY . 'settings.name',
'description' => self::LOCALIZATION_KEY . 'settings.description',
'icon' => self::DEFAULT_ICON,
'class' => Settings::class,
'order' => 100
]
];
}
}