Changes from Carthik.
git-svn-id: http://svn.automattic.com/wordpress/trunk@1196 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
9616224dd1
commit
07a395f685
|
@ -1,11 +1,12 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
function get_Lat() {
|
function get_Lat() {
|
||||||
global $post;
|
global $post;
|
||||||
|
|
||||||
if ($post->post_lat != '') {
|
if ($post->post_lat != '') {
|
||||||
return $post->post_lat;
|
return trim($post->post_lat);
|
||||||
} else if(get_settings('use_default_geourl')) {
|
} else if(get_settings('use_default_geourl')) {
|
||||||
return get_settings('default_geourl_lat');
|
return trim(get_settings('default_geourl_lat'));
|
||||||
}
|
}
|
||||||
|
|
||||||
return '';
|
return '';
|
||||||
|
@ -15,9 +16,9 @@ function get_Lon() {
|
||||||
global $post;
|
global $post;
|
||||||
|
|
||||||
if ($post->post_lon != '') {
|
if ($post->post_lon != '') {
|
||||||
return $post->post_lon;
|
return trim($post->post_lon);
|
||||||
} else if(get_settings('use_default_geourl')) {
|
} else if(get_settings('use_default_geourl')) {
|
||||||
return get_settings('default_geourl_lon');
|
return trim(get_settings('default_geourl_lon'));
|
||||||
}
|
}
|
||||||
|
|
||||||
return '';
|
return '';
|
||||||
|
@ -49,7 +50,7 @@ function print_PopUpScript() {
|
||||||
echo "
|
echo "
|
||||||
<script type='text/javascript'>
|
<script type='text/javascript'>
|
||||||
<!-- This script and many more are available free online at -->
|
<!-- This script and many more are available free online at -->
|
||||||
<!-- The JavaScript Source!! http://javascript.internet.com -->
|
<!-- The JavaScript Source!! -->
|
||||||
function formHandler(form) {
|
function formHandler(form) {
|
||||||
var URL = form.site.options[form.site.selectedIndex].value;
|
var URL = form.site.options[form.site.selectedIndex].value;
|
||||||
if(URL != \".\") {
|
if(URL != \".\") {
|
||||||
|
@ -99,7 +100,7 @@ function longitude_invalid() {
|
||||||
function print_AcmeMap_Url() {
|
function print_AcmeMap_Url() {
|
||||||
if (!get_settings('use_geo_positions')) return;
|
if (!get_settings('use_geo_positions')) return;
|
||||||
if (longitude_invalid()) return;
|
if (longitude_invalid()) return;
|
||||||
echo "http://www.acme.com/mapper/?lat=".get_Lat()."&long=".get_Lon()."&scale=11&theme=Image&width=3&height=2&dot=Yes";
|
echo "http://www.acme.com/mapper?lat=".get_Lat()."&long=".get_Lon()."&scale=11&theme=Image&width=3&height=2&dot=Yes";
|
||||||
}
|
}
|
||||||
|
|
||||||
function print_GeoURL_Url() {
|
function print_GeoURL_Url() {
|
||||||
|
@ -133,4 +134,22 @@ function print_DegreeConfluence_Url() {
|
||||||
echo "http://confluence.org/confluence.php?lat=".get_Lat()."&lon=".get_Lon();
|
echo "http://confluence.org/confluence.php?lat=".get_Lat()."&lon=".get_Lon();
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
function print_TopoZone_Url() {
|
||||||
|
if (!get_settings('use_geo_positions')) return;
|
||||||
|
if (longitude_invalid()) return;
|
||||||
|
echo "http://www.topozone.com/map.asp?lat=".get_Lat()."&lon=".get_Lon();
|
||||||
|
}
|
||||||
|
|
||||||
|
function print_FindU_Url() {
|
||||||
|
if (!get_settings('use_geo_positions')) return;
|
||||||
|
if (longitude_invalid()) return;
|
||||||
|
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";
|
||||||
|
}
|
||||||
|
|
||||||
|
function print_MapTech_Url() {
|
||||||
|
if (!get_settings('use_geo_positions')) return;
|
||||||
|
if (longitude_invalid()) return;
|
||||||
|
echo "http://mapserver.maptech.com/api/espn/index.cfm?lat=".get_Lat()."&lon=".get_Lon();
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
|
|
Loading…
Reference in New Issue