-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathPlugin.php
More file actions
47 lines (39 loc) · 1.08 KB
/
Plugin.php
File metadata and controls
47 lines (39 loc) · 1.08 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
<?php namespace ERegnier\NewsjetPlugin;
/*
Newsjet Plugin
* @category Octobercms_Plugin
* @author Erwan Regnier <dev@eregnier.it>
* @license MIT https://opensource.org/licenses/MIT
* @link https://eregnier.it
*/
use System\Classes\PluginBase;
use System\Classes\SettingsManager;
class Plugin extends PluginBase
{
public function boot()
{
}
public function registerComponents()
{
return [
'ERegnier\NewsjetPlugin\Components\SubscribeForm' => 'subscribeForm',
'ERegnier\NewsjetPlugin\Components\DoubleOptin' => 'doubleOptin',
];
}
public function registerNavigation()
{
return [];
}
public function registerSettings()
{
return [
'settings' => [
'label' => 'Mailjet Config',
'description' => 'Set api keys to use Mailjet',
'icon' => 'icon-pencil-square-o',
'class' => 'ERegnier\NewsjetPlugin\Models\Settings',
'category' => SettingsManager::CATEGORY_MAIL
]
];
}
}