Make WordPress Core


Ignore:
Timestamp:
04/26/2004 02:34:07 AM (21 years ago)
Author:
rboren
Message:

Geo enhancements. Allow get_Lat and get_Lon to be called outside of the post loop. Add doGeoUrlHeader as an action on wp_head.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/template-functions-geo.php

    r1088 r1179  
    22function get_Lat() {
    33    global $post;
    4     return $post->post_lat;
     4
     5   if ($post->post_lat != '') {
     6       return $post->post_lat;
     7   } else if(get_settings('use_default_geourl')) {
     8       return get_settings('default_geourl_lat');
     9   }
     10
     11   return '';
    512}
    613
    714function get_Lon() {
    815    global $post;
    9     return $post->post_lon;
     16
     17   if ($post->post_lon != '') {
     18       return $post->post_lon;
     19   } else if(get_settings('use_default_geourl')) {
     20       return get_settings('default_geourl_lon');
     21   }
     22
     23   return '';
    1024}
    1125
Note: See TracChangeset for help on using the changeset viewer.