Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
up.php
1
<?php
2
namespace
Bitrix\Landing\Hook\Page
;
3
4
use \Bitrix\Landing\Manager;
5
use \Bitrix\Landing\Assets;
6
use \Bitrix\Landing\Field;
7
use \Bitrix\Main\Localization\Loc;
8
9
Loc::loadMessages
(__FILE__);
10
11
class
Up
extends
\Bitrix\Landing\Hook\Page
12
{
17
protected
function
getMap
()
18
{
19
return
array(
20
'SHOW'
=>
new
Field
\
Checkbox
(
'SHOW'
, array(
21
'title'
=>
Loc::getMessage
(
'LANDING_HOOK_UP_SHOW'
)
22
))
23
);
24
}
25
30
public
function
enabled
()
31
{
32
if
($this->
issetCustomExec
())
33
{
34
return
true
;
35
}
36
37
return
$this->fields[
'SHOW'
]->getValue() ==
'Y'
;
38
}
39
44
public
function
exec
()
45
{
46
if
($this->
execCustom
())
47
{
48
return
;
49
}
50
51
$assets = Assets\Manager::getInstance();
52
$assets->addAsset(
'landing_upper'
);
53
}
54
}
Bitrix\Landing\Field\Checkbox
Definition
checkbox.php:5
Bitrix\Landing\Field
Definition
field.php:5
Bitrix\Landing\Hook\Page\Up
Definition
up.php:12
Bitrix\Landing\Hook\Page\Up\getMap
getMap()
Definition
up.php:17
Bitrix\Landing\Hook\Page\Up\enabled
enabled()
Definition
up.php:30
Bitrix\Landing\Hook\Page\Up\exec
exec()
Definition
up.php:44
Bitrix\Landing\Hook\Page
Definition
page.php:7
Bitrix\Landing\Hook\Page\issetCustomExec
issetCustomExec()
Definition
page.php:253
Bitrix\Landing\Hook\Page\execCustom
execCustom()
Definition
page.php:262
Bitrix\Main\Localization\Loc\loadMessages
static loadMessages($file)
Definition
loc.php:64
Bitrix\Main\Localization\Loc\getMessage
static getMessage($code, $replace=null, $language=null)
Definition
loc.php:29
Bitrix\Landing\Hook\Page
Definition
b24button.php:2
modules
landing
lib
hook
page
up.php
Создано системой
1.10.0