• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/integration/calendar.php
  • Класс: Bitrix\Crm\Integration\Calendar
  • Вызов: Calendar::showCalendarSpotlight
static function showCalendarSpotlight()
{
	global $USER;
	$user_id = false;
	if (is_object($USER) && ((get_class($USER) === 'CUser') || ($USER instanceof CUser)))
	{
		$user_id = intval($USER->GetID());
	}

	if (!self::isResourceBookingEnabled() || !$user_id)
	{
		return;
	}

	$spotlight = new \Bitrix\Main\UI\Spotlight("CRM_CALENDAR_VIEW");
	if(!$spotlight->isViewed($user_id))
	{
		\CJSCore::init("spotlight");

		$message = \CUtil::JSEscape(Loc::getMessage('CRM_CALENDAR_VIEW_SPOTLIGHT'));
		$message .= ' '.Loc::getMessage('CRM_CALENDAR_HELP_LINK').'';
		?>