2
0
forked from Wavyzz/dolibarr

NEW The clicktodial module is now able to provide link "tel:" on phone

numbers. So it is also possible to use clicktodial with a client
solution like the "xivo" local client.
This commit is contained in:
Laurent Destailleur
2015-10-26 16:20:09 +01:00
parent 07b277b23f
commit 6493438e87
3 changed files with 22 additions and 8 deletions

View File

@@ -1544,9 +1544,9 @@ function dol_print_phone($phone,$countrycode='',$cid=0,$socid=0,$addlink='',$sep
}
}
if (! empty($addlink)) // Link on phone number + link to add action (if conf->global->AGENDA_ADDACTIONFORPHONE set)
if (! empty($addlink)) // Link on phone number (+ link to add action if conf->global->AGENDA_ADDACTIONFORPHONE set)
{
if (! empty($conf->browser->phone)) // If phone, we use link of phone
if (! empty($conf->browser->phone) || (! empty($conf->clicktodial->enabled) && ! empty($conf->global->CLICKTODIAL_USE_TEL_LINK_ON_PHONE_NUMBERS))) // If phone or option for, we use link of phone
{
$newphone ='<a href="tel:'.$phone.'"';
$newphone.='>'.$phone.'</a>';