Changeset 532865
- Timestamp:
- 04/18/2012 02:04:17 PM (14 years ago)
- Location:
- bing-maps-for-wordpress
- Files:
-
- 13 added
- 4 edited
-
readme.txt (modified) (2 diffs)
-
tags/1.6 (added)
-
tags/1.6/WAMP.png (added)
-
tags/1.6/WMA.png (added)
-
tags/1.6/bing-maps-for-wordpress.css (added)
-
tags/1.6/bing-maps-for-wordpress.php (added)
-
tags/1.6/content.php (added)
-
tags/1.6/control_panel.php (added)
-
tags/1.6/donate.png (added)
-
tags/1.6/follow.png (added)
-
tags/1.6/readme.txt (added)
-
tags/1.6/screenshot-1.png (added)
-
tags/1.6/screenshot-2.png (added)
-
tags/1.6/uninstall.php (added)
-
trunk/bing-maps-for-wordpress.php (modified) (1 diff)
-
trunk/content.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
bing-maps-for-wordpress/readme.txt
r324317 r532865 4 4 Tags: bing maps, wordpress, mapping 5 5 Requires at least: 3.0 6 Tested up to: 3. 0.37 Stable tag: 1. 56 Tested up to: 3.3.1 7 Stable tag: 1.6 8 8 9 9 Bing Maps for WordPress allows you to place either a static or dynamic Bing map on your blog post with a simple shortcode … … 108 108 == Changelog == 109 109 110 = 1.6 = 111 * Tested compatibility for WordPress 3.3.1 112 * Fixed issue when user does not have curl installed 113 110 114 = 1.5 = 111 115 * Added compatibility for WordPress 3.0.3 -
bing-maps-for-wordpress/trunk/bing-maps-for-wordpress.php
r324317 r532865 5 5 Description: Use a shortcode to create a Bing map on your site 6 6 Author: Rich Gubby 7 Version: 1. 57 Version: 1.6 8 8 Author URI: http://redyellow.co.uk/ 9 9 */ -
bing-maps-for-wordpress/trunk/content.php
r324317 r532865 197 197 $url = 'http://dev.virtualearth.net/REST/v1/Locations?q='.$location.'&o=xml&key='.$this->apiKey; 198 198 199 $curl = curl_init($url); 200 curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); 201 $contents = curl_exec($curl); 202 curl_close($curl); 199 if(function_exists('curl_init')) 200 { 201 $curl = curl_init($url); 202 curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); 203 $contents = curl_exec($curl); 204 curl_close($curl); 205 } else 206 { 207 $response = wp_remote_get( $url ); 208 $contents = wp_remote_retrieve_body( $response ); 209 } 203 210 204 211 // Build XML 205 $xml = simplexml_load_string($contents); 206 207 // If we have a location, return it 208 if(isset($xml->ResourceSets->ResourceSet->Resources->Location->Point)) 209 { 210 return array( 211 'lat' => trim($xml->ResourceSets->ResourceSet->Resources->Location->Point->Latitude), 212 'long' => trim($xml->ResourceSets->ResourceSet->Resources->Location->Point->Longitude) 213 ); 212 if(function_exists('simplexml_load_string')) 213 { 214 $xml = simplexml_load_string($contents); 215 216 // If we have a location, return it 217 if(isset($xml->ResourceSets->ResourceSet->Resources->Location->Point)) 218 { 219 return array( 220 'lat' => trim($xml->ResourceSets->ResourceSet->Resources->Location->Point->Latitude), 221 'long' => trim($xml->ResourceSets->ResourceSet->Resources->Location->Point->Longitude) 222 ); 223 } 214 224 } 215 225 return false; -
bing-maps-for-wordpress/trunk/readme.txt
r324317 r532865 4 4 Tags: bing maps, wordpress, mapping 5 5 Requires at least: 3.0 6 Tested up to: 3. 0.37 Stable tag: 1. 56 Tested up to: 3.3.1 7 Stable tag: 1.6 8 8 9 9 Bing Maps for WordPress allows you to place either a static or dynamic Bing map on your blog post with a simple shortcode … … 108 108 == Changelog == 109 109 110 = 1.6 = 111 * Tested compatibility for WordPress 3.3.1 112 * Fixed issue when user does not have curl installed 113 110 114 = 1.5 = 111 115 * Added compatibility for WordPress 3.0.3
Note: See TracChangeset
for help on using the changeset viewer.