-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWireMailPostmarkAppConfig.php
More file actions
69 lines (59 loc) · 1.22 KB
/
WireMailPostmarkAppConfig.php
File metadata and controls
69 lines (59 loc) · 1.22 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 ProcessWire;
/**
* WireMail Postmark Configuration
*
*/
class WireMailPostmarkAppConfig extends ModuleConfig {
/**
* Returns default values for module variables
*
* @return array
*
*/
public function getDefaults() {
return [
'trackOpens' => 1,
'trackLinks' => 1,
];
}
/**
* Returns inputs for module configuration
*
* @return InputfieldWrapper
*
*/
public function getInputfields() {
$inputfields = parent::getInputfields();
$inputfields->add([
'type' => 'text',
'name' => 'serverToken',
'label' => $this->_('Server API token'),
'required' => true,
'columnWidth' => 50,
'icon' => 'key',
]);
$inputfields->add([
'type' => 'text',
'name' => 'senderSignature',
'label' => $this->_('Sender Signature'),
'required' => true,
'columnWidth' => 50,
'icon' => 'pencil-square-o',
]);
$inputfields->add([
'type' => 'toggle',
'name' => 'trackOpens',
'label' => $this->_('Track opens?'),
'columnWidth' => 50,
'icon' => 'eye',
]);
$inputfields->add([
'type' => 'toggle',
'name' => 'trackLinks',
'label' => $this->_('Track links?'),
'columnWidth' => 50,
'icon' => 'mouse-pointer',
]);
return $inputfields;
}
}