Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
apiversion.php
1
<?php
8
namespace
Bitrix\Socialnetwork\Integration\Calendar
;
9
10
class
ApiVersion
11
{
12
public
static
function
isEventEditFormAvailable
()
13
{
14
return \Bitrix\Main\UI\Extension::getConfig(
'calendar.eventeditform'
) !==
null
;
15
}
16
17
public
static
function
getAddEventInLivefeedJs
()
18
{
19
if
(self::isEventEditFormAvailable())
20
{
21
return
"if (BX.Calendar && BX.Calendar.SliderLoader){new BX.Calendar.SliderLoader('NEW').show();}"
;
22
}
23
else
24
{
25
return
"BX.onCustomEvent('onCalendarLiveFeedShown');"
;
26
}
27
}
28
}
29
?>
Bitrix\Socialnetwork\Integration\Calendar\ApiVersion
Definition
apiversion.php:11
Bitrix\Socialnetwork\Integration\Calendar\ApiVersion\isEventEditFormAvailable
static isEventEditFormAvailable()
Definition
apiversion.php:12
Bitrix\Socialnetwork\Integration\Calendar\ApiVersion\getAddEventInLivefeedJs
static getAddEventInLivefeedJs()
Definition
apiversion.php:17
Bitrix\Socialnetwork\Integration\Calendar
Definition
apiversion.php:8
modules
socialnetwork
lib
integration
calendar
apiversion.php
Создано системой
1.10.0