Skip to content
This repository
tree: 0aed9a4b9c
Fetching contributors…

Cannot retrieve contributors at this time

executable file 384 lines (277 sloc) 13.215 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384
=== WP Geo ===
Contributors: husobj
Donate link: http://www.wpgeo.com/donate
Tags: maps, map, geo, geocoding, google, location, georss
Requires at least: 3.0
Tested up to: 3.4.1
Stable tag: 3.2.6.4
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Adds location maps to your posts, pages and custom post types.

== Description ==

When editing a post or page, you will be able to set a physical location for that post and easily embed a Google map into your post. You can select the location by:

1. Clicking on the map of the world to position the point.
2. Searching for a location, town, city or address.
3. Entering the latitude and longitude.

The WP Geo location selector is styled to fit seamlessly into the latest version of the WordPress admin.

More information can be found at http://www.wpgeo.com/.

= Features =

* Custom marker title setting per post.
* Custom zoom and map type per post.
* Supports custom post types.
* Widget zoom option.
* Default Map Location setting.
* Geo Meta Tags
* Markers links to posts
* Settings for default controls
* Custom Markers
* Sidebar Widget
* GeoRSS points in feeds.
* Set default map zoom level.
* Show post maps on category and archive pages.
* Set default width and height for maps
* Shortcode [wp_geo_map] to insert map within your post
* Select your preferred map type
* Select wether to show your map at the top or bottom of posts (or not at all)
* Set a location by clicking on a map or
* Set a location by searching for a location, town, city or address or
* Set a location by entering the latitude and longitude

= Languages =

WP Geo is currently available in the following languages:

* Belorussian (by [Ilyuha](http://antsar.info/))
* Bulgarian (by [Roman Rachkov](http://www.georss.biz/))
* Chinese, Simplified (by [Steen Chow](http://twitter.com/imsteen))
* Croatian (by [Andrija Papec](http://www.adriaindex.com/))
* Danish (by [Georg](http://wordpress.blogos.dk/søg-efter-downloads/?did=91))
* Dutch (by [Davey IJzermans](http://daveyyzermans.nl/))
* English (default)
* French (by Alain Messin)
* German (by [Ivan Graf](http://blog.bildergallery.com/))
* Italian (by Diego Pierotto)
* Russian (by [Fat Cower](http://www.fatcow.com/))
* Spanish (by Alberto)

== Installation ==
1. Download the archive file and uncompress it.
2. Put the "wp-geo" folder in "wp-content/plugins"
3. Enable in WordPress by visiting the "Plugins" menu and activating it.
4. Go to the Settings page in the admin and enter your Google API Key and customise the settings.

You can [sign up for a Google API Key here](https://developers.google.com/maps/documentation/javascript/v2/introduction#Obtaining_Key).

WP Geo will appear on the edit post and edit page screens.
If you set a location, a Google map will automatically appear on your post or page (if your settings are set to).

= Upgrading =

If upgrading from a previous version of the plugin:

1. If you are not performing an automatic upgrade, deactivate and reactivate the plugin to ensure any new features are correctly installed.
2. Visit the settings page after installing the plugin to customise any new options.

== Frequently Asked Questions ==

= Can I use Google Maps API v3? =
Not yet but a future version of WP Geo will support it.

== Screenshots ==

1. Example of a post with a map.
2. Admin panel shown when editing a post or page.
3. Admin Settings
4. Widget Settings

== Changelog ==

= WP Geo 3.2.7 =

* Added [wpgeo_title] shortcode.
* Added [wpgeo_static_map] shortcode.
* Added category map widget. Props David Keen.
* Added wpgeo_is_valid_geo_coord() function.
* Added 'wpgeo_show_maps' filter.
* Settings page now uses WordPress Settings API.
* All styles now enqueued properly.
* Don't use global var $posts. Props pl.massard.
* Fix WPGEO_DIR. Props Jghazally.
* Fix post map type checkbox. Props RavanH.
* Fix markers being searched for in the wrong folder. Props dolby_uk.
* Minimum WordPress version 3.0 required - legacy code removed.

= WP Geo 3.2.6.4 =

* Fix for maps not showing in admin.

= WP Geo 3.2.6.3 =

* Updated Google API Key link.
* Fixed the plugin not loading on the post editor over https. props Mile Rosu.

= WP Geo 3.2.6.2 =

* Fix incompatiability issue when trying to upload images using NextGEN Gallery.

= WP Geo 3.2.6.1 =

* Fix filepath that causes broken HTML editor.

= WP Geo 3.2.6 =

* Added support for custom post type in Recent Locations widget.
* Added Static Map (get_)wpgeo_post_static_map template tags. Props Jurriaan Persyn.
* Added Dutch translation by Davey IJzermans.
* Fixed custom post type settings. Checkboxes are now only shown disabled if support is explicitly added using add_post_type_support().
* Fixed widget_is_active() function.
* Fixed path and compatibility for MultiSite installations.

= WP Geo 3.2.5 =

NOTE: You will need to re-add your widgets after upgrading!

* Widgets updated to use Widget API - you can now add multiple widgets.
* Added recent locations widget.
* Added 'wpgeo_base_country_code' filter so you can default admin post map search to a base country.
* Added option to show maps in taxonomy archives.
* Fixed admin map not showing after publish if "Save map centre point for this post" checked but no marker added.
* Fixed some deprecated functions and undeclared variables.
* Fixed feeds - incorrect database table references.
* Fixed dashboard - uses SimplePie.
* Prevent post been saved when pressing enter in WP Geo post fields.
* Check that co-ordinates have been set in get_wpgeo_post_map().

= WP Geo 3.2.4 =

* Added option to allow saving of zoom level, map type and centre point to be checked by default.
* Added option to choose custom marker per post.
* Don't output script tags if theres no script.
* Added options to show map on excerpts and author archives.
* Default output for the [wpgeo_map_link] shortcode. Props RavanH.

= WP Geo 3.2.3 =

* If markers image files aren't in uploads folder, default to using the ones in the plugin folder.
* Fix for post settings being overwritten when using quick edit.
* Added extra attributes to 'wpgeo_mashup' shortcode.
* Added extra style fix for background image colours.
* Updated Italian language files.

= WP Geo 3.2.2 =

* Added [wpgeo_mashup] shortcode. props RavanH.
* Added align attribute to shortcode.
* Try to fix themes with image background colours.
* get_wpgeo_map() now accepts width and height arguments.

= WP Geo 3.2.1 =

* Fix for category map markers all displaying the same tooltip title.
* Fixed 'wpgeo_markers' filter. Was being run to early before other plugin and theme functions.php had a chance to do anything.
* Add styles to try to override max-width images in themes which can cause map tiles to render incorrectly.
* Added settings link to plugins page.
* Escaped post title for use in JavaScript in get_wpgeo_map() and bumped minimum WordPress version up to 2.8. props RavanH.
* Fixed longitude and latitude shortcodes - they were the wrong way round.
* German language files updated.

= WP Geo 3.2 =

* Fix for tooltip not working in WordPress 3.0.
* Fix to allow maps to be shown on tag archive pages by Lee Willis.
* Fix for default_map_control setting not being saved correctly.
* Ensure default map location is populated, otherwise map does not display when editing a post in the admin.
* Don't try to show maps in feeds.
* Make sure includes are only included once.
* Added support for custom post types in WordPress 3.0.
* Added wpgeo_title() and get_wpgeo_title() template tags.
* Added wpgeo_post_map() and get_wpgeo_post_map() template tags.
* Added wpgeo_check_version() and wpgeo_check_db_version() for checking WP Geo version.
* Added 'wpgeo_markers' filter in preparation for being able to add new marker icons.
* Added 'wpgeo_marker_icon' filter. Allows you to override a marker icon based on post data and context.
* Added Simplified Chinese language.
* Language files updated.

= WP Geo 3.1.4 =

* Now uses new Google 3D map control.
* Adding text colour style to tooltip text in case default text colour is white.
* Prevent map from aligning marker centre on zoom. Added a link to centre manually instead.
* Moved a lot of JavaScript for the post edit page to external files.
* Code formatting clean-up, added code comments, files restructured.
* Added WPGeo_Marker class in preparation for better marker management.
* Added option to save post map centre point.
* Added wpgeo_map() and get_wpgeo_map() functions to display custom maps based on a WordPress query.
* Added 'wpgeo_init' action hook.
* Added 'wpgeo_the_content_map' filter.
* Added 'wpgeo_edit_post_map_fields' filter.
* Added 'wpgeo_point_title' filter.
* Added 'wpgeo_show_post_map' filter.
* Language files updated.

= WP Geo 3.1.3 =

* Oops, loads of bugs... Fix and release as 3.1.4

= WP Geo 3.1.2 =

* Fixed strange activation bug caused by includes/template.php (renaming the file seem to fix it).

= WP Geo 3.1.1 =

* Updated Danish, French and German translations.
* Google Maps locale is set based on WordPress locale.
* Added template tags wpgeo_longitude() and wpgeo_latitude().

= WP Geo 3.1 =

* Added custom marker title setting per post.
* Added settings for custom zoom and map type per post.
* Added widget zoom option.
* Added Default Map Location setting.
* Croatian language added.
* Bulgarian language added.
* Show warning if the marker images folder has not been created.
* Fix marker tooltip text to be compatible with qTranslate plugin.
* Added filter hook to override 'wpgeo_google_api_key'.

= WP Geo 3.0.9.2 =

* Belorussian language added.
* Added 'wpgeo_map_js_preoverlays' hook for developers to add javascript to maps.

= WP Geo 3.0.9.1 =

* Fix for GUnload() and GBrowserIsCompatible() being called when not available/required.
* Russian language added.

= WP Geo 3.0.9 =

* Added width and height attributes to shortcode.
* Added width and height attributes to category map.
* Danish language updated.

= WP Geo 3.0.8.1 =

* Fixed Google Javascript API loading via proxy issue.
* Tooltip.js filename now all lowercase.
* Added Changelog tab to read me file.

= WP Geo 3.0.8 =

* Additional Geo Feed control.
* Load maps from GeoRSS or KML data.
* Danish language added.
* Languages updated.

= WP Geo 3.0.7.1 =

* Firefox scrolling bug fixed.
* Added longitude and latitude shortcodes.
* Marker on maps in admin now update as you manually change longitude and latitude.
* Added setting to show maps on search result page.

= WP Geo 3.0.7 =

* Added map button in rich text editor.
* Added setting to turn on/off polylines.
* Added setting to set colour of polylines.
* Added setting to override polylines in Widget.
* Using v2.118 of Google Maps to prevent Javascript errors.
* Added WP Geo news feed widget on admin dashboard.
* Admin panels re-implemented using WordPress API.
* Widget map never zooms in more than default zoom setting.

= WP Geo 3.0.6.2 =

* 'Show Maps On' setting now works correctly when widget is active.
* Fixes paths if WordPress is installed in a subdirectory.

= WP Geo 3.0.6.1 =

* Include files removed (fix)

= WP Geo 3.0.6 =

* Marker Tooltip improved (can now but style via css)
* Spanish language added.

= WP Geo 3.0.5 =

* Added way to escape shortcode [wp_geo_map escape="true"]
* CSS Max-width image fixed added.
* Italian language added.
* German language updated.

= WP Geo 3.0.4 =

* Added French language support.

= WP Geo 3.0.3 =

* Added Geo Meta Tags on single post pages.
* Fixed issue when geo data was deleted in quick/bulk edit mode or when scheduled post when live.
* Fixed domain check to work with blogs in a subfolder of a domain.

= WP Geo 3.0.2 =

* Add language support.
* Various bug fixes.

= WP Geo 3.0.1 =

* Markers link to posts.
* Map scale and corner map settings now fixed.

= WP Geo 3.0 =

* Added more default control settings.
* Added custom marker images.
* Added sidebar Widget.
* Improvements to Javascript loading including addition of external Javascript files.
* Loads jQuery to aid future plugin developments.
* No longer functions as a static class.

= WP Geo 2.1.2 =

* Added capability for feeds including georss points - for more information see http://www.georss.org.

= WP Geo 2.1.1 =

* Adds external CSS stylesheet to fix image background colours on certain themes.
* Added 'wp_geo_map' class to map divs so they can be styled.

= WP Geo 2.1 =

* Added setting for default map zoom.
* Map in admin now defaults to preferred map type.
* Added screenshots.

= WP Geo 2.0 =

* Added options to display posts maps on category and archive pages.

= WP Geo 1.3 =

* Added options to set default width and height for maps.

= WP Geo 1.2 =

* Added [wp_geo_map] Shortcode to add map within post content.

= WP Geo 1.1 =

* Added option to set map type.
* Added option to set wether maps appear at the top or bottom of posts.

== Upgrade Notice ==

= 3.2.7 =
Various bug fixes. Two new shortcodes. A new category widget. 'wpgeo_show_maps' filter.

= 3.2.5 =
You will need to re-add your widgets after upgrading to 3.2.5!

= 2.2 =
Please note that from version 2.2 you should access any WPGeo methods using the $wpgeo instance, not using a static class such as <?php WPGeo::categoryMap(); ?>.
Something went wrong with that request. Please try again.