Skip to content
Snippets Groups Projects
Commit f700f634 authored by Marcos García de La Fuente's avatar Marcos García de La Fuente
Browse files

Little refactor + cpd

parent 30d22378
No related branches found
No related tags found
No related merge requests found
......@@ -2048,22 +2048,25 @@ function img_mime($file, $alt = '')
}
/**
/**
* Show phone logo.
* Use img_picto instead.
*
* @param string $alt Text to show on alt image
* @param int $option Option
*
* @param string $alt Text to show on alt image
* @param int $option Option
* @return string Return img tag
* @deprecated
*/
function img_phone($alt = "default",$option=0)
{
global $conf,$langs;
if ($alt=="default") $alt=$langs->trans("Call");
$img='call_out';
if ($option == 1) $img='call';
return '<img src="'.DOL_URL_ROOT.'/theme/'.$conf->theme.'/img/'.$img.'.png" border="0" alt="'.dol_escape_htmltag($alt).'" title="'.dol_escape_htmltag($alt).'">';
* @deprecated
*/
function img_phone($alt = 'default', $option = 0)
{
global $conf,$langs;
if ($alt == 'default') $alt = $langs->trans('Call');
if ($option == 1) $img = 'call';
else $img = 'call_out';
return img_picto($alt, $img);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment