-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathOneCampaignMonitorPlugin.php
More file actions
44 lines (32 loc) · 1.03 KB
/
Copy pathOneCampaignMonitorPlugin.php
File metadata and controls
44 lines (32 loc) · 1.03 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
<?php
namespace Craft;
class OneCampaignMonitorPlugin extends BasePlugin {
public function getName() {
return Craft::t('One Campaign Monitor');
}
public function getVersion() {
return '0.1';
}
public function getDeveloper() {
return 'One Design Company';
}
public function getDeveloperUrl() {
return 'https://onedesigncompany.com';
}
public function onAfterInstall() {}
public function onBeforeUninstall() {}
public function createTables() {}
public function dropTables() {}
public function registerSiteRoutes() { return []; }
protected function defineSettings() {
return array(
'campaignmonitor_api_key' => array(AttributeType::String),
'google_recaptcha_secret_key' => array(AttributeType::String, 'default' => '')
);
}
public function getSettingsHtml() {
return craft()->templates->render('onecampaignmonitor/settings', array(
'settings' => $this->getSettings()
));
}
}