/
yandexform_module.php
43 lines (38 loc) · 1.12 KB
/
yandexform_module.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
<?php
/**
*
* @package yandexform
* @copyright (c) 2019 Татьяна5
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/
namespace tatiana5\yandexform\acp;
use tatiana5\yandexform\functions\acp_module_helper;
class yandexform_module extends acp_module_helper
{
public function main($id, $mode)
{
$this->ext_name ='tatiana5/yandexform';
//$this->ext_langname = '';
$this->tpl_name = 'acp_yandexform';
$this->form_key = 'config_yandexform_plugins';
add_form_key($this->form_key);
parent::main($id, $mode);
}
/**
* Generates the array of display_vars
*/
protected function generate_display_vars()
{
$this->display_vars = [
'title' => 'ACP_YANDEXFORM_TITLE',
'vars' => [
'legend1' => '',
'yandexform_receiver' => ['lang' => 'ACP_YANDEXFORM_RECEIVER', 'validate' => 'string', 'type' => 'text:20:16', 'explain' => false],
'yandexform_target' => ['lang' => 'ACP_YANDEXFORM_TARGET', 'validate' => 'string', 'type' => 'text:40:255', 'explain' => false],
//
'legend2' => 'ACP_SUBMIT_CHANGES',
],
];
}
}