this solution is not working for me, any idea???
****
public static function display_phone($r,$nolink,$desc) {
// Does not return href="tel:
// if(MOBILE_DEVICE && IPHONE && !$nolink && preg_match('/^([0-9\t\+-]+)/',$r[$desc['id']],$args))
// return '<a href="tel:'.$args[1].'">'.$r[$desc['id']].'</a>';
return $r[$desc['id']];
if(MOBILE_DEVICE && IPHONE && preg_match('/^([0-9\t\+-]+)/',$r[$desc['id']],$args))
return $r[$desc['id']];
$num = $r[$desc['id']];
if($num && strpos($num,'+')===false) {
if($r['country']) {
$calling_code = Utils_CommonDataCommon::get_value('Calling_Codes/'.$r['country']);
if($calling_code)
$num = $calling_code.$num;
}
}