location.tpl.php 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <div class="location vcard">
  2. <div class="adr">
  3. <?php if (!empty($name)): ?>
  4. <span class="fn"><?php print $name; ?></span>
  5. <?php endif; ?>
  6. <?php if (!empty($street)): ?>
  7. <div class="street-address">
  8. <?php print $street; ?>
  9. <?php if (!empty($additional)): ?>
  10. <?php print ' ' . $additional; ?>
  11. <?php endif; ?>
  12. </div>
  13. <?php endif; ?>
  14. <?php if (!empty($city)): ?>
  15. <span class="locality"><?php print $city; ?></span><?php if (!empty($province)) print ', '; ?>
  16. <?php endif; ?>
  17. <?php if (!empty($province)): ?>
  18. <span class="region"><?php print $province_print; ?></span>
  19. <?php endif; ?>
  20. <?php if (!empty($postal_code)): ?>
  21. <span class="postal-code"><?php print $postal_code; ?></span>
  22. <?php endif; ?>
  23. <?php if (!empty($country_name)): ?>
  24. <div class="country-name"><?php print $country_name; ?></div>
  25. <?php endif; ?>
  26. <?php if (!empty($phone)): ?>
  27. <div class="tel">
  28. <abbr class="type" title="voice"><?php print t("Phone"); ?>:</abbr>
  29. <span class="value"><?php print $phone; ?></span>
  30. </div>
  31. <?php endif; ?>
  32. <?php if (!empty($fax)): ?>
  33. <div class="tel">
  34. <abbr class="type" title="fax"><?php print t("Fax"); ?>:</abbr>
  35. <span><?php print $fax; ?></span>
  36. </div>
  37. <?php endif; ?>
  38. <?php // "Geo" microformat, see http://microformats.org/wiki/geo ?>
  39. <?php if (isset($latitude) && isset($longitude)): ?>
  40. <?php // Assume that 0, 0 is invalid. ?>
  41. <?php if ($latitude != 0 || $longitude != 0): ?>
  42. <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>
  43. <?php endif; ?>
  44. <?php endif; ?>
  45. </div>
  46. <?php if (!empty($map_link)): ?>
  47. <div class="map-link">
  48. <?php print $map_link; ?>
  49. </div>
  50. <?php endif; ?>
  51. </div>