public static function prepareLicenseInfoPopupScript($popupID, $title, $content) { if (ModuleManager::isModuleInstalled('bitrix24') && Loader::includeModule('bitrix24') && method_exists('CBitrix24', 'initLicenseInfoPopupJS')) { \CBitrix24::initLicenseInfoPopupJS(); $title = \CUtil::JSEscape($title); $content = \CUtil::JSEscape($content); return "if(typeof(B24.licenseInfoPopup) !== 'undefined'){ B24.licenseInfoPopup.show('{$popupID}', '{$title}', '{$content}'); }"; } return ''; }