Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
up.php
1<?php
3
4use \Bitrix\Landing\Manager;
5use \Bitrix\Landing\Assets;
6use \Bitrix\Landing\Field;
7use \Bitrix\Main\Localization\Loc;
8
9Loc::loadMessages(__FILE__);
10
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}
static loadMessages($file)
Definition loc.php:64
static getMessage($code, $replace=null, $language=null)
Definition loc.php:29