Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
apiversion.php
1<?php
9
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?>