forked from Wavyzz/dolibarr
Skype :: Better presentation
This commit is contained in:
@@ -1297,11 +1297,11 @@ function dol_print_email($email,$cid=0,$socid=0,$addlink=0,$max=64,$showinvalid=
|
|||||||
* Show Skype link
|
* Show Skype link
|
||||||
*
|
*
|
||||||
* @param string $skype Skype to show (only skype, without 'Name of recipient' before)
|
* @param string $skype Skype to show (only skype, without 'Name of recipient' before)
|
||||||
* @param int $cid Id of contact if known
|
* @param int $cid Id of contact if known
|
||||||
* @param int $socid Id of third party if known
|
* @param int $socid Id of third party if known
|
||||||
* @param int $addlink 0=no link to create action
|
* @param int $addlink 0=no link to create action
|
||||||
* @param int $max Max number of characters to show
|
* @param int $max Max number of characters to show
|
||||||
* @return string HTML Link
|
* @return string HTML Link
|
||||||
*/
|
*/
|
||||||
function dol_print_skype($skype,$cid=0,$socid=0,$addlink=0,$max=64)
|
function dol_print_skype($skype,$cid=0,$socid=0,$addlink=0,$max=64)
|
||||||
{
|
{
|
||||||
@@ -1316,11 +1316,11 @@ function dol_print_skype($skype,$cid=0,$socid=0,$addlink=0,$max=64)
|
|||||||
$newskype='<a href="skype:';
|
$newskype='<a href="skype:';
|
||||||
$newskype.=dol_trunc($skype,$max);
|
$newskype.=dol_trunc($skype,$max);
|
||||||
$newskype.='?call" alt="'.$langs->trans("Call").' '.$skype.'" title="'.$langs->trans("Call").' '.$skype.'">';
|
$newskype.='?call" alt="'.$langs->trans("Call").' '.$skype.'" title="'.$langs->trans("Call").' '.$skype.'">';
|
||||||
$newskype.='<img src="../theme/common/skype_callbutton.png" border="0"> ';
|
$newskype.='<img src="../theme/common/skype_callbutton.png" border="0">';
|
||||||
$newskype.='</a> <a href="skype:';
|
$newskype.='</a> <a href="skype:';
|
||||||
$newskype.=dol_trunc($skype,$max);
|
$newskype.=dol_trunc($skype,$max);
|
||||||
$newskype.='?chat" alt="'.$langs->trans("Chat").' '.$skype.'" title="'.$langs->trans("Chat").' '.$skype.'">';
|
$newskype.='?chat" alt="'.$langs->trans("Chat").' '.$skype.'" title="'.$langs->trans("Chat").' '.$skype.'">';
|
||||||
$newskype.='<img src="../theme/common/skype_chatbutton.png" border="0"> ';
|
$newskype.='<img src="../theme/common/skype_chatbutton.png" border="0">';
|
||||||
$newskype.='</a>';
|
$newskype.='</a>';
|
||||||
|
|
||||||
if (($cid || $socid) && ! empty($conf->agenda->enabled) && $user->rights->agenda->myactions->create)
|
if (($cid || $socid) && ! empty($conf->agenda->enabled) && $user->rights->agenda->myactions->create)
|
||||||
|
|||||||
Reference in New Issue
Block a user