You are here

location.tpl.php in Location 7.5

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)) {
  ?>
      <div class="street-address">
        <?php

  print $street;
  ?>
        <?php

  if (!empty($additional)) {
    ?>
          <?php

    print ' ' . $additional;
    ?>
        <?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


// "Geo" microformat, see http://microformats.org/wiki/geo
?>
    <?php

if (isset($latitude) && isset($longitude)) {
  ?>
      <?php


  // Assume that 0, 0 is invalid.
  ?>
      <?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>