location.tpl.php in Location 6.3
File
location.tpl.php
View source
<div class="location vcard">
<div class="adr">
<?php
if (!empty($name)) {
?>
<span class="fn"><?php
print $name;
?></span>
<?php
}
?>
<?php
if (!empty($street) || !empty($additional)) {
?>
<div class="street-address">
<?php
print $street;
?>
<?php
if (!empty($additional)) {
?>
<span class="additional">
<?php
print ' ' . $additional;
?>
</span>
<?php
}
?>
</div>
<?php
}
?>
<?php
if (!empty($city)) {
?>
<span class="locality"><?php
print $city;
?></span><?php
if (!empty($province)) {
print ', ';
}
?>
<?php
}
?>
<?php
if (!empty($province)) {
?>
<span class="region"><?php
print $province_print;
?></span>
<?php
}
?>
<?php
if (!empty($postal_code)) {
?>
<span class="postal-code"><?php
print $postal_code;
?></span>
<?php
}
?>
<?php
if (!empty($country_name)) {
?>
<div class="country-name"><?php
print $country_name;
?></div>
<?php
}
?>
<?php
if (!empty($phone)) {
?>
<div class="tel">
<abbr class="type" title="voice"><?php
print t("Phone");
?>:</abbr>
<span class="value"><?php
print $phone;
?></span>
</div>
<?php
}
?>
<?php
if (!empty($fax)) {
?>
<div class="tel">
<abbr class="type" title="fax"><?php
print t("Fax");
?>:</abbr>
<span><?php
print $fax;
?></span>
</div>
<?php
}
?>
<?php
?>
<?php
if (isset($latitude) && isset($longitude)) {
?>
<?php
?>
<?php
if ($latitude != 0 || $longitude != 0) {
?>
<span class="geo"><abbr class="latitude" title="<?php
print $latitude;
?>"><?php
print $latitude_dms;
?></abbr>, <abbr class="longitude" title="<?php
print $longitude;
?>"><?php
print $longitude_dms;
?></abbr></span>
<?php
}
?>
<?php
}
?>
</div>
<?php
if (!empty($map_link)) {
?>
<div class="map-link">
<?php
print $map_link;
?>
</div>
<?php
}
?>
</div>