-
Notifications
You must be signed in to change notification settings - Fork 10
/
Plugin.php
executable file
·68 lines (60 loc) · 1.88 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
62
63
64
65
66
67
68
<?php
/**
* Created by PhpStorm.
* User: Lamin Sanneh
* Date: 5/19/14
* Time: 12:49 AM
*/
namespace LaminSanneh\FlexiContact;
use System\Classes\PluginBase;
use System\Classes\SettingsManager;
use Backend\Facades\Backend;
class Plugin extends PluginBase{
/**
* Returns information about this plugin, including plugin name and developer name.
*/
public function pluginDetails()
{
return [
'name' => 'Flexi Contact',
'description' => 'laminsanneh.flexicontact::lang.strings.plugin_desc',
'author' => 'Lamin Sanneh',
'icon' => 'icon-leaf'
];
}
public function registerComponents()
{
return [
'LaminSanneh\FlexiContact\Components\ContactForm' => 'contactForm',
];
}
public function registerPermissions()
{
return [
'laminsanneh.flexicontact.access_settings' => [
'tab' => 'laminsanneh.flexicontact::lang.permissions.tab',
'label' => 'laminsanneh.flexicontact::lang.permissions.settings'
],
];
}
public function registerSettings()
{
return [
'settings' => [
'label' => 'laminsanneh.flexicontact::lang.strings.settings_label',
'description' => 'laminsanneh.flexicontact::lang.strings.settings_desc',
'category' => 'Marketing',
'icon' => 'icon-cog',
'class' => 'LaminSanneh\FlexiContact\Models\Settings',
'permissions' => ['laminsanneh.flexicontact.access_settings'],
'order' => 100
]
];
}
public function registerMailTemplates()
{
return [
'laminsanneh.flexicontact::emails.message' => 'laminsanneh.flexicontact::lang.strings.email_desc',
];
}
}