'."\n";
if (!empty($location['name']) && !in_array('name', $hide)) {
$output .= theme('placeholder', $location['name']);
}
if (!empty($location['street']) && !in_array('street', $hide)) {
$output .= '
'. $location['street'];
if (!empty($location['additional']) && !in_array('additional', $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_code']) && !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_name']) && !in_array('country', $hide)) {
$output .= '
'. $location['country_name'] .'
';
}
if (isset($location['latitude']) && isset($location['longitude']) && !in_array('latitude', $hide) && !in_array('longitude', $hide)) {
// "Geo" microformat, see http://microformats.org/wiki/geo
$output .= '
'. theme('location_latitude_dms', $location['latitude']) .', '. theme('location_longitude_dms', $location['longitude']) .'';
}
$output .= '