';
if ($withpictoimg)
{
$paddafterimage='';
if (abs($withpictoimg) == 1) $paddafterimage='style="margin-right: 3px;"';
// Only picto
- if ($withpictoimg > 0) $picto='
'.img_object('', 'user', $paddafterimage.' '.($notooltip?'':'class="classfortooltip"'), 0, 0, $notooltip?0:1).'
';
+ if ($withpictoimg > 0) $picto='
'.img_object('', 'user', $paddafterimage.' '.($notooltip?'':'class="classfortooltip"'), 0, 0, $notooltip?0:1).'';
// Picto must be a photo
- else $picto='
'.Form::showphoto('memberphoto', $this, 0, 0, 0, 'userphoto'.($withpictoimg==-3?'small':''), 'mini', 0, 1).'
';
+ else $picto='
'.Form::showphoto('memberphoto', $this, 0, 0, 0, 'userphoto'.($withpictoimg==-3?'small':''), 'mini', 0, 1).'';
$result.=$picto;
}
if ($withpictoimg > -2 && $withpictoimg != 2)
{
- if (empty($conf->global->MAIN_OPTIMIZEFORTEXTBROWSER)) $result.='
';
+ if (empty($conf->global->MAIN_OPTIMIZEFORTEXTBROWSER)) $result.='';
if ($mode == 'login') $result.=dol_trunc($this->login, $maxlen);
elseif ($mode == 'ref') $result.=$this->id;
else $result.=$this->getFullName($langs, '', ($mode == 'firstname' ? 2 : -1), $maxlen);
- if (empty($conf->global->MAIN_OPTIMIZEFORTEXTBROWSER)) $result.='
';
+ if (empty($conf->global->MAIN_OPTIMIZEFORTEXTBROWSER)) $result.='';
}
+ if ($withpictoimg) $result.='