public static function checkPhoneNumber($number) { if (!self::isEnabled()) { return false; } return CVoxImplantMain::Enable($number); }
if (is_array($arResult["UserFieldsContact"]["DATA"])) { foreach ($arResult["UserFieldsContact"]["DATA"] as $field => $arUserField) { if (is_array($arUserField["VALUE"]) && count($arUserField["VALUE"]) > 0 || !is_array($arUserField["VALUE"]) && StrLen($arUserField["VALUE"]) > 0) { ?> <tr> <td class="user-profile-nowrap"><?php echo $arUserField["NAME"] . ":"; ?> </td> <td><?php switch ($field) { case "PERSONAL_MOBILE": case "WORK_PHONE": case "PERSONAL_PNONE": echo $arUserField["VALUE"]; if (CModule::IncludeModule('voximplant') && CVoxImplantMain::Enable($arResult["User"][$field])) { ?> <span class="sonet_call_btn" onclick="BXIM.phoneTo('<?php echo CUtil::JSEscape($arResult["User"][$field]); ?> ');"></span> <?php } break; default: echo $arUserField["VALUE"]; } ?> </td> </tr><?php }