-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTextformatterMatomoWireConfig.php
More file actions
41 lines (35 loc) · 1.03 KB
/
Copy pathTextformatterMatomoWireConfig.php
File metadata and controls
41 lines (35 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
<?php namespace ProcessWire;
class TextformatterMatomoWireConfig extends ModuleConfig
{
public function getDefaults()
{
return [
'open_tag' => '[[',
'close_tag' => ']]',
'tag_name' => "matomowire-opt-out"
];
}
public function getInputfields()
{
$inputfields = parent::getInputfields();
// open tag
$f = $this->modules->get('InputfieldText');
$f->attr('name', 'open_tag');
$f->label = $this->_('Open Tag');
$f->columnWidth = 33;
$inputfields->add($f);
// close tag
$f = $this->modules->get('InputfieldText');
$f->attr('name', 'close_tag');
$f->label = $this->_('Close Tag');
$f->columnWidth = 33;
$inputfields->add($f);
// tag name
$f = $this->modules->get('InputfieldText');
$f->attr('name', 'tag_name');
$f->label = $this->_('Tag name');
$f->columnWidth = 34;
$inputfields->add($f);
return $inputfields;
}
}