• Модуль: socialservices
  • Путь к файлу: ~/bitrix/modules/socialservices/classes/general/twitter.php
  • Класс: CSocServTwitter
  • Вызов: CSocServTwitter::GetFormHtml
public function GetFormHtml($arParams)
{
	global $APPLICATION;

	$phrase = ($arParams["FOR_INTRANET"]) ? GetMessage("socserv_tw_note_intranet") : GetMessage("socserv_tw_note");

	$arParams['BACKURL'] = $APPLICATION->GetCurPageParam('', array("logout", "auth_service_error", "auth_service_id", "current_fieldset"));

	$url = $this->getUrl($arParams);

	if($arParams["FOR_INTRANET"])
		return array("ON_CLICK" => 'onclick="BX.util.popup(''.htmlspecialcharsbx(CUtil::JSEscape($url)).'', 800, 450)"');
	return ''.$phrase.'';
}