Changeset 1196 for trunk/wp-includes/template-functions-geo.php
- Timestamp:
- 04/28/2004 04:42:37 AM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/template-functions-geo.php
r1179 r1196 1 1 <?php 2 2 3 function get_Lat() { 3 4 global $post; 4 5 5 6 if ($post->post_lat != '') { 6 return $post->post_lat;7 return trim($post->post_lat); 7 8 } else if(get_settings('use_default_geourl')) { 8 return get_settings('default_geourl_lat');9 return trim(get_settings('default_geourl_lat')); 9 10 } 10 11 … … 16 17 17 18 if ($post->post_lon != '') { 18 return $post->post_lon;19 return trim($post->post_lon); 19 20 } else if(get_settings('use_default_geourl')) { 20 return get_settings('default_geourl_lon');21 return trim(get_settings('default_geourl_lon')); 21 22 } 22 23 … … 50 51 <script type='text/javascript'> 51 52 <!-- This script and many more are available free online at --> 52 <!-- The JavaScript Source!! http://javascript.internet.com-->53 <!-- The JavaScript Source!! --> 53 54 function formHandler(form) { 54 55 var URL = form.site.options[form.site.selectedIndex].value; … … 100 101 if (!get_settings('use_geo_positions')) return; 101 102 if (longitude_invalid()) return; 102 echo "http://www.acme.com/mapper /?lat=".get_Lat()."&long=".get_Lon()."&scale=11&theme=Image&width=3&height=2&dot=Yes";103 echo "http://www.acme.com/mapper?lat=".get_Lat()."&long=".get_Lon()."&scale=11&theme=Image&width=3&height=2&dot=Yes"; 103 104 } 104 105 … … 134 135 } 135 136 137 function print_TopoZone_Url() { 138 if (!get_settings('use_geo_positions')) return; 139 if (longitude_invalid()) return; 140 echo "http://www.topozone.com/map.asp?lat=".get_Lat()."&lon=".get_Lon(); 141 } 142 143 function print_FindU_Url() { 144 if (!get_settings('use_geo_positions')) return; 145 if (longitude_invalid()) return; 146 echo "http://www.findu.com/cgi-bin/near.cgi?lat=".get_Lat()."&lon=".get_Lon()."&scale=100000&zoom=50&type=1&icon=0&&scriptfile=http://mapserver.maptech.com/api/espn/index.cfm"; 147 } 148 149 function print_MapTech_Url() { 150 if (!get_settings('use_geo_positions')) return; 151 if (longitude_invalid()) return; 152 echo "http://mapserver.maptech.com/api/espn/index.cfm?lat=".get_Lat()."&lon=".get_Lon(); 153 } 154 136 155 ?>
Note: See TracChangeset
for help on using the changeset viewer.