-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlocation.tpl.php
More file actions
61 lines (61 loc) · 1.57 KB
/
location.tpl.php
File metadata and controls
61 lines (61 loc) · 1.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?php
// $Id$
?>
<div class="location vcard"><div class="adr">
<span class="fn"><?php echo $name; ?></span>
<?php if ($street) {?>
<div class="street-address"><?php
echo $street;
if ($additional) {
echo ' '. $additional;
}
?></div>
<?php }?>
<?php
if ($county) {
echo '<span class="county">' . $county . '</span>';
}
if ($city) {
echo '<span class="locality">' . $city . '</span>';
if ($province) {
echo ', ';
}
}
if ($province) {
echo '<span class="region">' . $province_print . '</span> ';
}
if ($postal_code) {
echo ' <span class="postal-code">' . $postal_code . '</span>';
}
?>
<?php if ($country_name) { ?>
<div class="country-name"><?php echo $country_name; ?></div>
<?php } ?>
<?php if (isset($phone) && $phone): ?>
<div class="tel">
<abbr class="type" title="voice"><?php print t("Phone")?>:</abbr>
<span class="value"><?php print $phone; ?></span>
</div>
<?php endif; ?>
<?php if (isset($fax) && $fax): ?>
<div class="tel">
<abbr class="type" title="fax"><?php print t("Fax");?>:</abbr>
<span><?php print $fax; ?></span>
</div>
<?php endif; ?>
<?php
// "Geo" microformat, see http://microformats.org/wiki/geo
if ($latitude && $longitude) {
// Assume that 0, 0 is invalid.
if ($latitude != 0 || $longitude != 0) {
?>
<span class="geo"><abbr class="latitude" title="<?php echo $latitude; ?>"><?php echo $latitude_dms; ?></abbr>, <abbr class="longitude" title="<?php echo $longitude; ?>"><?php echo $longitude_dms; ?></abbr></span>
<?php
}
}
?>
</div>
<div class="map-link">
<?php echo $map_link; ?>
</div>
</div>