• Модуль: voximplant
  • Путь к файлу: ~/bitrix/modules/voximplant/classes/general/vi_main.php
  • Класс: CVoxImplantMain
  • Вызов: CVoxImplantMain::GetBuyLink
static function GetBuyLink()
{
	if (LANGUAGE_ID == "kz")
	{
		$accountLang = "kz";
	}
	else
	{
		$account = new CVoxImplantAccount();
		$accountLang = $account->GetAccountLang();
	}

	if (IsModuleInstalled('bitrix24'))
	{
		if ($accountLang == "ua")
		{
			return 'https://www.bitrix24.ua/prices/telephony.php';
		}
		else if ($accountLang != "kz")
		{
			return '/settings/license_phone.php';
		}
	}
	else
	{
		if ($accountLang == 'ru')
		{
			return 'http://www.1c-bitrix.ru/buy/intranet.php#tab-call-link';
		}
		else if ($accountLang == 'ua')
		{
			return 'https://www.bitrix24.ua/prices/telephony.php';
		}
		else if ($accountLang == 'kz')
		{
		}
		else if ($accountLang == 'de')
		{
			return 'https://www.bitrix24.de/prices/self-hosted-telephony.php';
		}
		else
		{
			return 'https://www.bitrix24.com/prices/self-hosted-telephony.php';
		}
	}
	return '';
}