Sorted some geourl issues (see http://wordpress.org/support/6/683)
Added geo.position meta tag Added settings into wp-settings.php Added use of default in new post git-svn-id: http://svn.automattic.com/wordpress/trunk@525 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f76b19dde7
commit
64d73e5d87
|
@ -1274,6 +1274,7 @@ function doGeoUrlHeader($posts) {
|
||||||
if(($lon != null) && ($lat != null) ) {
|
if(($lon != null) && ($lat != null) ) {
|
||||||
echo "<meta name=\"ICBM\" content=\"".$lat.", ".$lon."\" >\n";
|
echo "<meta name=\"ICBM\" content=\"".$lat.", ".$lon."\" >\n";
|
||||||
echo "<meta name=\"DC.title\" content=\"".convert_chars(strip_tags(get_bloginfo("name")),"unicode")." - ".$title."\">\n";
|
echo "<meta name=\"DC.title\" content=\"".convert_chars(strip_tags(get_bloginfo("name")),"unicode")." - ".$title."\">\n";
|
||||||
|
echo "<meta name=\"geo.position\" content=\"".$lat.";".$lon."\">\n";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@ -1281,6 +1282,7 @@ function doGeoUrlHeader($posts) {
|
||||||
// send the default here
|
// send the default here
|
||||||
echo "<meta name=\"ICBM\" content=\"".$default_geourl_lat.", ".$default_geourl_lon."\" >\n";
|
echo "<meta name=\"ICBM\" content=\"".$default_geourl_lat.", ".$default_geourl_lon."\" >\n";
|
||||||
echo "<meta name=\"DC.title\" content=\"".convert_chars(strip_tags(get_bloginfo("name")),"unicode")."\">\n";
|
echo "<meta name=\"DC.title\" content=\"".convert_chars(strip_tags(get_bloginfo("name")),"unicode")."\">\n";
|
||||||
|
echo "<meta name=\"geo.position\" content=\"".$default_geourl_lat.";".$default_geourl_lon."\">\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -193,6 +193,12 @@ edCanvas = document.getElementById('content');
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
if (get_settings('use_geo_positions')) {
|
if (get_settings('use_geo_positions')) {
|
||||||
|
if (empty($edited_lat)) {
|
||||||
|
if (get_settings('use_default_geourl')) {
|
||||||
|
$edited_lat = get_settings('default_geourl_lat');
|
||||||
|
$edited_lon = get_settings('default_geourl_lon');
|
||||||
|
}
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
<label for="post_latf">Latitude:</label><input size="8" type="text" value="<?php echo $edited_lat; ?>" name="post_latf">
|
<label for="post_latf">Latitude:</label><input size="8" type="text" value="<?php echo $edited_lat; ?>" name="post_latf">
|
||||||
<label for="post_lonf">Longitude:</label><input size="8" type="text" value="<?php echo $edited_lon; ?>" name="post_lonf"> <a href="http://www.geourl.org/resources.html" rel="external" >click for Geo Info</a>
|
<label for="post_lonf">Longitude:</label><input size="8" type="text" value="<?php echo $edited_lon; ?>" name="post_lonf"> <a href="http://www.geourl.org/resources.html" rel="external" >click for Geo Info</a>
|
||||||
|
|
|
@ -51,6 +51,9 @@ if (!$_wp_installing) {
|
||||||
$emailtestonly = get_settings('emailtestonly');
|
$emailtestonly = get_settings('emailtestonly');
|
||||||
$use_phoneemail = get_settings('use_phoneemail');
|
$use_phoneemail = get_settings('use_phoneemail');
|
||||||
$phoneemail_separator = get_settings('phoneemail_separator');
|
$phoneemail_separator = get_settings('phoneemail_separator');
|
||||||
|
$use_default_geourl = get_settings('use_default_geourl');
|
||||||
|
$default_geourl_lat = get_settings('default_geourl_lat');
|
||||||
|
$default_geourl_lon = get_settings('default_geourl_lon');
|
||||||
|
|
||||||
/* not currently used
|
/* not currently used
|
||||||
if (get_settings('search_engine_friendly_urls')) {
|
if (get_settings('search_engine_friendly_urls')) {
|
||||||
|
|
Loading…
Reference in New Issue