'."\n";
if (!empty($location['name']) && !in_array('name', $hide)) {
$output .= '
'. $location['name'] .'
';
}
if (!empty($location['street']) && !in_array('street', $hide)) {
$output .= '
'. $location['street'];
if (!empty($location['additional']) && !in_array('street', $hide)) {
$output .= ' ' . $location['additional'];
}
$output .='
';
}
if (!empty($location['city']) && !in_array('city', $hide)) {
$city_province_postal[] = $location['city'];
}
if ((!empty($location['city']) && !in_array('city', $hide)) ||
(!empty($location['province']) && !in_array('province', $hide)) ||
(!empty($location['postal_codet']) && !in_array('postal_code', $hide))) {
$city_province_postal = array();
if (!empty($location['city']) && !in_array('city', $hide)) {
$city_province_postal[] = '
'. $location['city'] .'';
}
if (!empty($location['province']) && !in_array('province', $hide)) {
$city_province_postal[] = '
'. $location['province'] .'';
}
if (!empty($location['postal_code']) && !in_array('postal_code', $hide)) {
$city_province_postal[] = '
'. $location['postal_code'] .'';
}
$output .= implode(', ', $city_province_postal);
}
if (!empty($location['country']) && !in_array('country', $hide)) {
$countries = _location_get_iso3166_list();
$output .= '
'. t($countries[$location['country']]) .'
';
}
if (isset($location['latitude']) && isset($location['longitude'])) {
$output .= '
';
}
$output .= '