text;
if (!$txtad && !$adr->phones() && !count($adr->phones())) {
return "";
}
$lines = explode("\n", $txtad);
$idt = array_shift($lines);
$restore = true;
if (!display_address_isIdentity($param['for'], $idt)) {
array_unshift($lines, $idt);
$idt = $param['for'];
$restore = false;
}
$txthtml = "";
$map = "";
$comment = "";
if ($param['adr']['comment'] != "")
{
$commentHtml = str_replace(array('&', '"'), array('&', '"'), $adr->comment);
$commentJs = str_replace(array('\\', '\''), array('\\\\', '\\\''), $commentHtml);
$comment = "
";
}
if ($restore) {
array_unshift($lines, $idt);
}
if ($param['titre'])
{
if ($param['titre_div'])
$txthtml .= "