-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.php
More file actions
36 lines (31 loc) · 1 KB
/
config.php
File metadata and controls
36 lines (31 loc) · 1 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
<?php
/**
* @version $Id: config.php,v 1.2 2006/04/15 09:16:17 cetera Exp $
* @copyright 2005
**/
$t = $this->getTranslator();
$t->addTranslation(__DIR__.'/lang');
$this->registerWidget(array(
'name' => 'forms',
'class' => '\\Forms\\Widget',
'describ' => $t->_('Веб форма'),
'icon' => '/cms/plugins/forms/images/icon.png',
'ui' => 'Plugin.forms.Widget',
));
if ( $this->getBo() && $this->getUser() && $this->getUser()->isAdmin() ) {
$this->getBo()->addModule(array(
'id' => 'forms',
'position' => MENU_SITE,
'name' => $t->_('Конструктор форм'),
'icon' => '/cms/plugins/forms/images/icon.png',
'iconCls' => 'x-fa fa-pencil-alt',
'class' => 'Plugin.forms.List'
));
$this->getBo()->registerEvent(
'FORMS_SUCCESS',
$t->_('Успешное заполнение формы'),
[
'form' => $t->_('заполненная форма'),
]
);
}