1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
up.php
См. документацию.
1<?php
2namespace Bitrix\Landing\Hook\Page;
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
52 $assets->addAsset('landing_upper');
53 }
54}
static getInstance()
Определения manager.php:59
getMap()
Определения up.php:17
enabled()
Определения up.php:30
exec()
Определения up.php:44
issetCustomExec()
Определения page.php:253
execCustom()
Определения page.php:262
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
Определения checkbox.php:2