add MAIN_SHOW_COMPANY_NAME_IN_BANNER_ADDRESS constant
This commit is contained in:
parent
b838ab0c31
commit
c59e26457d
@ -616,7 +616,12 @@ abstract class CommonObject
|
||||
{
|
||||
if (! empty($conf->use_javascript_ajax))
|
||||
{
|
||||
$namecoords = $this->getFullName($langs, 1).'<br>'.$coords;
|
||||
$namecoords = '';
|
||||
if ( $this->element == 'contact' && ! empty($conf->global->MAIN_SHOW_COMPANY_NAME_IN_BANNER_ADDRESS))
|
||||
{
|
||||
$namecoords.= $object->name.'<br>';
|
||||
}
|
||||
$namecoords.= $this->getFullName($langs, 1).'<br>'.$coords;
|
||||
// hideonsmatphone because copyToClipboard call jquery dialog that does not work with jmobile
|
||||
$out.='<a href="#" class="hideonsmartphone" onclick="return copyToClipboard(\''.dol_escape_js($namecoords).'\',\''.dol_escape_js($langs->trans("HelpCopyToClipboard")).'\');">';
|
||||
$out.=img_picto($langs->trans("Address"), 'object_address.png');
|
||||
|
||||
Loading…
Reference in New Issue
Block a user