Google Maps Widget – Ultimate Google Maps Plugin - Version 2.85

Version Description

  • 2015/12/02
  • enhancements in PHP
Download this release

Release Info

Developer WebFactory
Plugin Icon 128x128 Google Maps Widget – Ultimate Google Maps Plugin
Version 2.85
Comparing to
See all releases

Code changes from version 2.80 to 2.85

Files changed (3) hide show
  1. gmw-widget.php +6 -6
  2. google-maps-widget.php +6 -5
  3. readme.txt +447 -443
gmw-widget.php CHANGED
@@ -18,11 +18,11 @@ class GoogleMapsWidget extends WP_Widget {
18
 
19
 
20
  // constructor method
21
- function GoogleMapsWidget() {
22
  $widget_ops = array('classname' => 'google-maps-widget', 'description' => __('Displays a map image thumbnail with a larger map available in a lightbox.', 'google-maps-widget'));
23
  $control_ops = array('width' => 450, 'height' => 350);
24
  parent::__construct('GoogleMapsWidget', __('Google Maps Widget', 'google-maps-widget'), $widget_ops, $control_ops);
25
- } // GoogleMapsWidget
26
 
27
 
28
  // widget edit form HTML
@@ -128,8 +128,8 @@ class GoogleMapsWidget extends WP_Widget {
128
  echo '<a title="Decorate your site for Christmas with Xmas Widget" href="http://xmaswidget.webfactoryltd.com/" target="_blank" style="position: absolute; top: -21px; left: -17px;"><img title="Decorate your site for Christmas with Xmas Widget" alt="Decorate your site for Christmas with Xmas Widget" src="' . plugins_url('/images/santa_cap.png', __FILE__) . '"></a>';
129
  }
130
 
131
- echo '<p><label for="' . $this->get_field_id('title') . '">' . __('Title', 'google-maps-widget') . ':</label><input class="widefat" id="' . $this->get_field_id('title') . '" name="' . $this->get_field_name('title') . '" placeholder="Map title" type="text" value="' . esc_attr($title) . '" /></p>';
132
- echo '<p><label for="' . $this->get_field_id('address') . '">' . __('Address', 'google-maps-widget') . ':</label><input class="widefat" id="' . $this->get_field_id('address') . '" placeholder="Address to show" name="' . $this->get_field_name('address') . '" type="text" value="' . esc_attr($address) . '" required="required" /></p>';
133
 
134
  echo '<div class="gmw-tabs" id="tab-' . $this->id . '"><ul><li><a href="#gmw-thumb">' . __('Thumbnail map', 'google-maps-widget') . '</a></li><li><a href="#gmw-lightbox">' . __('Lightbox map', 'google-maps-widget') . '</a></li><li><a href="#gmw-shortcode">' . __('Shortcode', 'google-maps-widget') . '</a></li><li><a href="#gmw-info">' . __('Info &amp; Support', 'google-maps-widget') . '</a></li></ul>';
135
  echo '<div id="gmw-thumb">';
@@ -266,8 +266,8 @@ class GoogleMapsWidget extends WP_Widget {
266
 
267
  echo '</div><p></p>'; // tabs
268
 
269
- if (!GMW::is_activated()) {
270
- echo '<p>' . __('Click to <a href="#" class="open_promo_dialog">get extra premium features</a> for Google Maps Widget! For <b><span style="color: #d54e21;">FREE</span></b>.', 'google-maps-widget') . '</p>';
271
  }
272
  } // form
273
 
18
 
19
 
20
  // constructor method
21
+ function __construct() {
22
  $widget_ops = array('classname' => 'google-maps-widget', 'description' => __('Displays a map image thumbnail with a larger map available in a lightbox.', 'google-maps-widget'));
23
  $control_ops = array('width' => 450, 'height' => 350);
24
  parent::__construct('GoogleMapsWidget', __('Google Maps Widget', 'google-maps-widget'), $widget_ops, $control_ops);
25
+ } // __construct
26
 
27
 
28
  // widget edit form HTML
128
  echo '<a title="Decorate your site for Christmas with Xmas Widget" href="http://xmaswidget.webfactoryltd.com/" target="_blank" style="position: absolute; top: -21px; left: -17px;"><img title="Decorate your site for Christmas with Xmas Widget" alt="Decorate your site for Christmas with Xmas Widget" src="' . plugins_url('/images/santa_cap.png', __FILE__) . '"></a>';
129
  }
130
 
131
+ echo '<p><label for="' . $this->get_field_id('title') . '">' . __('Title', 'google-maps-widget') . ':</label><input class="widefat" id="' . $this->get_field_id('title') . '" name="' . $this->get_field_name('title') . '" placeholder="' . __('Map title', 'google-maps-widget') . '" type="text" value="' . esc_attr($title) . '" /></p>';
132
+ echo '<p><label for="' . $this->get_field_id('address') . '">' . __('Address', 'google-maps-widget') . ':</label><input class="widefat" id="' . $this->get_field_id('address') . '" placeholder="' . __('Address to show', 'google-maps-widget') . '" name="' . $this->get_field_name('address') . '" type="text" value="' . esc_attr($address) . '" required="required" /></p>';
133
 
134
  echo '<div class="gmw-tabs" id="tab-' . $this->id . '"><ul><li><a href="#gmw-thumb">' . __('Thumbnail map', 'google-maps-widget') . '</a></li><li><a href="#gmw-lightbox">' . __('Lightbox map', 'google-maps-widget') . '</a></li><li><a href="#gmw-shortcode">' . __('Shortcode', 'google-maps-widget') . '</a></li><li><a href="#gmw-info">' . __('Info &amp; Support', 'google-maps-widget') . '</a></li></ul>';
135
  echo '<div id="gmw-thumb">';
266
 
267
  echo '</div><p></p>'; // tabs
268
 
269
+ if (username_exists('admin') || get_userdata(1)) {
270
+ echo '<p>' . __('We have detected at least one <b><span style="color: #d54e21;">security issue</span></b> on this site related to user accounts. Don\'t become a statistic! Protect your site with <a href="http://security-ninja-plugins-bundle.webfactoryltd.com/" target="_blank">Security Ninja</a>.', 'google-maps-widget') . '</p>';
271
  }
272
  } // form
273
 
google-maps-widget.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Google Maps Widget
4
  Plugin URI: http://www.googlemapswidget.com/
5
  Description: Display a single-image super-fast loading Google map in a widget. A larger, full featured map is available on click in a lightbox. Includes shortcode support and numerous options.
6
  Author: Web factory Ltd
7
- Version: 2.80
8
  Author URI: http://www.webfactoryltd.com/
9
  Text Domain: google-maps-widget
10
  Domain Path: lang
@@ -33,14 +33,15 @@ if (!defined('ABSPATH')) {
33
 
34
  define('GMW_OPTIONS', 'gmw_options');
35
  define('GMW_CRON', 'gmw_cron');
 
36
 
37
 
38
- require_once 'gmw-widget.php';
39
- require_once 'gmw-tracking.php';
40
 
41
 
42
  class GMW {
43
- static $version = '2.80';
44
 
45
  // hook everything up
46
  static function init() {
@@ -499,7 +500,7 @@ class GMW {
499
  $widgets = get_option('widget_googlemapswidget');
500
 
501
  if (!$id || empty($widgets[$id])) {
502
- $out .= '<span class="gmw-error">Google Maps Widget shortcode error - please double-check the widget ID.</span>';
503
  } else {
504
  $widget_args = $widgets[$id];
505
  $widget_instance['widget_id'] = 'googlemapswidget-' . $id;
4
  Plugin URI: http://www.googlemapswidget.com/
5
  Description: Display a single-image super-fast loading Google map in a widget. A larger, full featured map is available on click in a lightbox. Includes shortcode support and numerous options.
6
  Author: Web factory Ltd
7
+ Version: 2.85
8
  Author URI: http://www.webfactoryltd.com/
9
  Text Domain: google-maps-widget
10
  Domain Path: lang
33
 
34
  define('GMW_OPTIONS', 'gmw_options');
35
  define('GMW_CRON', 'gmw_cron');
36
+ define('GMW_PLUGIN_DIR', plugin_dir_path( __FILE__ ));
37
 
38
 
39
+ require_once GMW_PLUGIN_DIR . 'gmw-widget.php';
40
+ require_once GMW_PLUGIN_DIR . 'gmw-tracking.php';
41
 
42
 
43
  class GMW {
44
+ static $version = '2.85';
45
 
46
  // hook everything up
47
  static function init() {
500
  $widgets = get_option('widget_googlemapswidget');
501
 
502
  if (!$id || empty($widgets[$id])) {
503
+ $out .= '<span class="gmw-error">' . __('Google Maps Widget shortcode error - please double-check the widget ID.', 'google-maps-widget') . '</span>';
504
  } else {
505
  $widget_args = $widgets[$id];
506
  $widget_instance['widget_id'] = 'googlemapswidget-' . $id;
readme.txt CHANGED
@@ -1,444 +1,448 @@
1
- === Google Maps Widget ===
2
- Contributors: WebFactory
3
- Tags: address, best google maps, best maps, chinese, cross-browser, custom google map, custom google maps, custom marker, custom marker icons, directions, easy map, fancybox, fancybox2, fast, fully documented, gecode, geo, gmaps, gmw, google map, google map plugin, google map shortcode, google map widget, google maps, google maps api, google maps builder, google maps directions, google maps plugin, google maps v3, google maps widget, googlemaps, latitude, lightbox, location, location by address, location by latitude/longitude, longitude, map, map directions, map marker, map markers, map plugin, map shortcode, map styles, map widget, maps, marker, marker icons, multilingual, pin, place, placemarker, post map, posts, reverse geocode, shortcode, sidebar, streetview, traffic/bike lanes, widget, widget map, wp google map, wp google maps, wp map, wp maps
4
- Donate link: https://www.paypal.com/cgi-bin/webscr?business=gordan@webfactoryltd.com&cmd=_xclick&currency_code=USD&amount=&item_name=Google%20Maps%20Widget%20Donation
5
- License: GPLv2 or later
6
- License URI: http://www.gnu.org/licenses/gpl-2.0.html
7
- Requires at least: 3.3
8
- Tested up to: 4.3
9
- Stable tag: 2.80
10
-
11
- Displays a single-image super-fast loading Google map in a widget. A larger map with all the usual features is available on click in a lightbox.
12
-
13
- == Description ==
14
-
15
- Check out some examples on the <a href="http://www.googlemapswidget.com/">official plugin site</a>, view the [Google Maps Widget video](http://www.youtube.com/watch?v=y1siX9ha7Pw) or give us a shout on Twitter <a href="http://twitter.com/WebFactoryLtd">@WebFactoryLtd</a>.
16
-
17
- http://www.youtube.com/watch?v=y1siX9ha7Pw&hd=1
18
-
19
- **General widget options**
20
-
21
- * title
22
- * address
23
-
24
- **Thumbnail map options**
25
-
26
- * map size - width & height
27
- * map type - road, satellite, map or hybrid
28
- * pin color
29
- * pin size
30
- * custom pin icon - any image can be used
31
- * zoom level
32
- * link type - lightbox, custom URL or disable link
33
- * map color scheme - default, refreshed, apple, gray, paper
34
- * text above map
35
- * text below map
36
-
37
- **Lightbox map options**
38
-
39
- * map size - width & height (auto-adjusted on smaller screens)
40
- * map type - road, satellite, map or hybrid
41
- * zoom level
42
- * skin - light, dark, blue, rounded
43
- * show/hide address bubble
44
- * show/hide map title
45
- * header text
46
- * footer text
47
-
48
- **Shortcode**
49
-
50
- * by using the _[gmw id="#"]_ shortcode you can display the map in any page, post, or custom post type
51
-
52
-
53
- > If you need a Google Maps shortcode plugin you might be interested in purchasing our premium <a title="5sec Google Maps" href="http://5sec-google-maps-pro.webfactoryltd.com/">5sec Google Maps PRO</a> plugin.
54
-
55
-
56
- **What others say about the plugin**
57
-
58
- * voted on the <a href="http://themesplugins.com/Plugin-detail/google-maps-widget-google-map-free-plugin-for-wordpress/" title="Top 100 WordPressian plugin">Top 100 List</a> by WordPressian
59
- * made it on the <a href="http://tidyrepo.com/google-maps-widget/">Tidy Repo</a> list
60
- * reviewed 5/5 by <a href="http://websmush.com/google-maps-widget-plugin-review/">Web Smush</a>
61
- * one of 3 best map plugins by <a href="http://torquemag.io/the-3-best-map-plugins-for-wordpress/">The Torque Mag</a>
62
- * "an easier way to add Google maps to your site" says <a href="http://www.wpbeginner.com/wp-tutorials/how-to-add-google-maps-in-wordpress/">WP Beginner</a>
63
- * <a href="http://designscrazed.org/wordpress-google-map-plugins/">Design Crazed</a> puts in on the top 20 Google maps list
64
- * <a href="http://www.inkthemes.com/easily-integrate-google-map-in-your-wordpress-themes-widget-area/09/">InkThemes</a> shows how easy it is to use GMW
65
- * <a href="http://www.indexwp.com/google-maps-widget/">IndexWP</a> calls it a "handy map plugin"
66
-
67
-
68
- **Translators (thank you!)**
69
-
70
- * English - original :)
71
- * Swedish - Sofia Asklund
72
- * Spanish - Jesus Garica
73
- * Croatian - Gordan from <a href="http://www.webfactoryltd.com/">Web factory Ltd</a>
74
- * German - Karimba
75
- * French - Karimba
76
- * Chinese simplified - Wyeoh
77
- * Chinese traditional - Wyeoh
78
- * Dutch - Arno
79
- * Ukrainian - Victor Shutovskiy
80
- * Serbian - Ogi Djuraskovic from <a href="http://firstsiteguide.com/">FirstSiteGuide</a>
81
- * Russian - Ivanka from <a href="http://www.coupofy.com/">Coupofy</a>
82
-
83
- == Installation ==
84
-
85
- Follow the usual routine;
86
-
87
- 1. Open WP admin - Plugins - Add New
88
- 2. Enter "Google Maps Widget" under search and hit Enter
89
- 3. Plugin will show up as the first on the list, click "Install Now"
90
-
91
- Or if needed, upload manually;
92
-
93
- 1. Download the plugin.
94
- 2. Unzip it and upload to wp-content/plugin/
95
- 3. Open WP admin - Plugins and click "Activate" next to the plugin
96
- 4. Configure the plugin under Appearance - Widgets
97
-
98
-
99
- == Frequently Asked Questions ==
100
-
101
- = Who is this plugin for? =
102
-
103
- For just about anyone who needs a map on their site in 5 seconds.
104
-
105
- = Thumbnail map works but lightbox won't open on click =
106
-
107
- You most probably have Fancybox JS and CSS files included twice; once by the theme and second time by GMW plugin. Remove one instance of files. If that's not the case then you have a fatal JS error thats preventing execution of other JS code. Hit F12 in Firefox or Chrome and have a look at the debug console. If there are any red lines - it's a fatal error. Open a new thread in the support forums but please bear in mind that support is community based and we do this in our spare time.
108
-
109
- = It's not working!!! Arrrrrrrrr =
110
-
111
- A more detailed help is coming soon. Till then check 2 things: does your theme have _wp_footer()_ function call in the footer and if there are any jQuery errors on the site.
112
- If you can't figure it out open a thread in the support forums.
113
-
114
- == Screenshots ==
115
-
116
- 1. Small map is shown as a widget and since it's just one image it loads super-fast
117
- 2. Larger map with all features is available in the lightbox
118
- 3. Widget options - thumbnail map
119
- 4. Widget options - lightbox map
120
- 5. Widget options - shortcode
121
- 6. Widget options - info & support
122
-
123
- == Changelog ==
124
- = 2.80 =
125
- * 2015/11/18
126
- * fixed a big bug in JS (widget admin UI init)
127
-
128
- = 2.75 =
129
- * 2015/10/26
130
- * minor JS tweaks and bug fixes
131
-
132
- = 2.70 =
133
- * 2015/10/12
134
- * fixed a nasty bug with shortcode rendering (thanks Hey You!)
135
- * JS and CSS fixes for widget UI in the theme customizer
136
-
137
- = 2.66 =
138
- * 2015/10/05
139
- * minor bug fixes
140
- * we'll be soon removing all PO files from the plugin since the strings were merged into the official WP translate project
141
-
142
- = 2.60 =
143
- * 2015/08/31
144
- * added data validation on input fields
145
- * minor CSS tweaks
146
-
147
- = 2.51 =
148
- * 2015/07/27
149
- * updated PHP4 style class constructor to PHP5 one
150
- * lowered cron for tracking to once every 14 days
151
- * did some prep work for the upcoming 4.3 version of WP
152
-
153
- = 2.45 =
154
- * 2015/06/15
155
- * fixed a bug on notice dismiss action
156
- * added Russian translation - thanks Ivanka!
157
-
158
- = 2.40 =
159
- * 2015/05/25
160
- * few small bugs fixed
161
- * admin JS completely rebuilt
162
- * fixed PO file
163
- * we broke 90,000 installations ;)
164
-
165
- = 2.35 =
166
- * 2015/04/27
167
- * few small bugs fixed
168
- * WP v4.2 compatibility checked
169
- * remove_query_arg() security issue fixed
170
- * we broke 500,000 downloads ;)
171
-
172
- = 2.30 =
173
- * 2015/03/02
174
- * JS rewrites
175
- * few small bugs fixed
176
-
177
- = 2.25 =
178
- * 2015/02/23
179
- * a few visual enhancements
180
- * new screenshots
181
- * shortcode name availability is checked before registering it
182
- * visual builder compatibility fix
183
-
184
- = 2.20 =
185
- * 2015/02/16
186
- * added shortcode support
187
-
188
- = 2.15 =
189
- * 2015/02/09
190
- * fixed a _plugin_deactivate_ bug nobody noticed for 2 years :(
191
- * all JS texts are now loaded via wp_localize_script()
192
-
193
- = 2.10 =
194
- * 2015/02/02
195
- * auto-adjust map size on smaller screens - thanks bruzm!
196
- * marked each widget with core version for future updates
197
-
198
- = 2.06 =
199
- * 2015/01/26
200
- * language file updated
201
- * preparing for JS rewrite
202
-
203
- = 2.05 =
204
- * 2015/01/19
205
- * code rewriting
206
- * minor bug fixes
207
-
208
- = 2.01 =
209
- * 2015/01/13
210
- * somehow one JS file got renamed :(
211
-
212
- = 2.0 =
213
- * 2015/01/13
214
- * lots of rewrites
215
- * additional features can now be activated by subscribing to our newsletter
216
-
217
- = 1.95 =
218
- * 2014/12/19
219
- * minor WP v4.1 updates
220
-
221
- = 1.93 =
222
- * 2014/12/03
223
- * due to someone being a huge cun* we can no longer offer discounts for our Envato products in GMW
224
- * so no changes to the plugin, just some messages edited
225
-
226
- = 1.92 =
227
- * 2014/11/12
228
- * minor bug fixes
229
- * preparations for admin JS rewrite
230
-
231
- = 1.90 =
232
- * 2014/10/20
233
- * added Serbian translation; thanks Ogi!
234
-
235
- = 1.86 =
236
- * 2014/10/12
237
- * updated POT file
238
- * updated Croatian translation
239
-
240
- = 1.85 =
241
- * 2014/09/22
242
- * added custom pin image option for thumbnail map - thanks Rudloff!
243
-
244
- = 1.80 =
245
- * 2014/09/08
246
- * minor updates for WordPress v4.0
247
-
248
- = 1.75 =
249
- * 2014/07/29
250
- * lightbox skins are back; light and dark for now, more coming soon
251
- * updated lightbox jS
252
-
253
- = 1.70 =
254
- * 2014/07/10
255
- * fixed a small bug on thumbnail
256
- * finished up a todo
257
-
258
- = 1.65 =
259
- * 2014/05/06
260
- * finished up a few todos
261
-
262
- = 1.60 =
263
- * 2014/04/17
264
- * update for WordPress v3.9, widget edit GUI now works in theme customizer
265
- * if you run into any issues please report them in the support forums
266
-
267
- = 1.55 =
268
- * 2014/04/07
269
- * fixed shortcode handling in map's header & footer
270
- * added Ukrainian translation - thank you Victor Shutovskiy!
271
-
272
- = 1.50 =
273
- * 2014/03/25
274
- * minor bug fixes
275
- * new Spanish translation - thank you Jesus!
276
- * still working on those lightbox skins, sorry :(
277
-
278
- = 1.47 =
279
- * 2014/03/05
280
- * minor bug fix
281
- * working on those lightbox skins :)
282
-
283
- = 1.45 =
284
- * 2014/03/04
285
- * switched to <a href="http://www.jacklmoore.com/colorbox/">Colorbox</a> lightbox script
286
- * lightbox skin is still temporarily unavailable
287
-
288
- = 1.40 =
289
- * 2014/02/10
290
- * due to licensing issues switched to FancyBox v1.3.4
291
- * lightbox skin is temporarily unavailable
292
- * minor bug fix related to activate/upgrade hook calls
293
-
294
- = 1.35 =
295
- * 2014/02/05
296
- * added optional plugin usage tracking (<a href="http://www.googlemapswidget.com/plugin-tracking-info/">detailed info</a>)
297
-
298
- = 1.31 =
299
- * 2014/02/03
300
- * WP v3.8.1 compatibility check
301
-
302
- = 1.30 =
303
- * 2014/01/16
304
- * added Dutch translation; thank you Arno!
305
-
306
- = 1.25 =
307
- * 2014/01/03
308
- * preparations for opt-in plugin usage tracking
309
- * Spanish translation updated; thanks Jesus!
310
-
311
- = 1.20 =
312
- * 2013/12/17
313
- * WP v3.8 update
314
- * language files update
315
-
316
- = 1.15 =
317
- * 2013/11/25
318
- * added option for thumbnail map to link to a custom URL which disables the lightbox; you can link to a lightbox, a custom link or remove the link all together
319
-
320
- = 1.10 =
321
- * 2013/11/18
322
- * added option for thumbnail map to use the new look/color scheme
323
-
324
- = 1.05 =
325
- * 2013/11/04
326
- * added Chinese traditional translation; thanks Wyeoh
327
-
328
- = 1.0 =
329
- * 2013/10/28
330
- * WP 3.7 compatibility check
331
- * added Chinese simplified translation; thanks Wyeoh
332
-
333
- = 0.95 =
334
- * 2013/10/21
335
- * added French translation; thanks Karimba
336
-
337
- = 0.90 =
338
- * 2013/10/14
339
- * added German translation; thanks Karimba
340
- * we reached 100k downloads ;)
341
-
342
- = 0.86 =
343
- * 2013/10/07
344
- * fixed a few strict standards errors; thanks Jay!
345
-
346
- = 0.85 =
347
- * 2013/10/03
348
- * added Croatian translation; thank you Gordan
349
-
350
- = 0.80 =
351
- * 2013/09/28
352
- * minor translation fixes
353
- * added Spanish translation; thank you Jesus!
354
-
355
- = 0.75 =
356
- * 2013/09/24
357
- * map language is autodetected based on user's browser language (HTTP_ACCEPT_LANGUAGE header)
358
- * added Swedish translation; thank you Sofia!
359
- * German and Croatian translations will be up next
360
-
361
- = 0.71 =
362
- * 2013/09/17
363
- * few more preparations for translation
364
- * Swedish translation coming in a few days
365
-
366
- = 0.70 =
367
- * 2013/09/05
368
- * prepared everything for translation, POT file is available and all strings are wrapped in <i>__()</i>
369
- * protocols should now match http/https for both thumbnail and ligtbox map
370
- * <a href="http://www.googlemapswidget.com/">www.googlemapswidget.com</a> is up and running
371
-
372
- = 0.65 =
373
- * 2013/08/05
374
- * updated JS for WP v3.6
375
-
376
- = 0.60 =
377
- * 2013/04/06
378
- * fixed zoom bug in lightbox
379
-
380
- = 0.55 =
381
- * 2013/04/05
382
- * added 2 new options - text above and below thumbnail map
383
- * updated fancyBox JS to the latest version
384
- * minor code improvements
385
-
386
- = 0.50 =
387
- * 2012/12/12
388
- * small WP 3.5 compatibility fixes
389
-
390
- = 0.41 =
391
- * 2012/12/03
392
- * removed screenshots from plugin package
393
-
394
- = 0.4 =
395
- * 2012/11/28
396
- * fixed non UTF-8 address bug
397
-
398
- = 0.37 =
399
- * 2012/11/19
400
- * fixed bug to use google.com instead of google.co.uk
401
-
402
- = 0.35 =
403
- * 2012/09/28
404
- * added 4 skins for lightbox
405
-
406
- = 0.31 =
407
- * 2012/09/14
408
- * fix for bad themes which don't respect proper sidebar markup
409
-
410
- = 0.3 =
411
- * 2012/09/04
412
- * lightbox script changed from jQuery UI Dialog to <a href="http://fancyapps.com/fancybox/">fancyBox2</a>
413
- * added "show map title on lightbox" option
414
- * significant speed improvements
415
- * preparations for lightbox skins
416
-
417
- = 0.22 =
418
- * 2012/08/31
419
- * Fixed small JS related GUI bug
420
-
421
- = 0.2 =
422
- * 2012/08/28
423
- * Complete GUI rewrite
424
- * Added header text option
425
- * Added address bubble visibility option
426
- * Fixed thumbnail map scaling bug
427
- * Fixed lightbox map size bug
428
-
429
- = 0.13 =
430
- * 2012/08/09
431
- * Added pin size for thumbnail map
432
-
433
- = 0.12 =
434
- * 2012/08/07
435
- * Added pin color for thumbnail map
436
- * Fixed a few minor bugs
437
-
438
- = 0.11 =
439
- * 2012/08/06
440
- * Fixed a few minor bugs
441
-
442
- = 0.1 =
443
- * 2012/08/03
 
 
 
 
444
  * Initial release
1
+ === Google Maps Widget ===
2
+ Contributors: WebFactory
3
+ Tags: address, best google maps, best maps, chinese, cross-browser, custom google map, custom google maps, custom marker, custom marker icons, directions, easy map, fancybox, fancybox2, fast, fully documented, gecode, geo, gmaps, gmw, google map, google map plugin, google map shortcode, google map widget, google maps, google maps api, google maps builder, google maps directions, google maps plugin, google maps v3, google maps widget, googlemaps, latitude, lightbox, location, location by address, location by latitude/longitude, longitude, map, map directions, map marker, map markers, map plugin, map shortcode, map styles, map widget, maps, marker, marker icons, multilingual, pin, place, placemarker, post map, posts, reverse geocode, shortcode, sidebar, streetview, traffic/bike lanes, widget, widget map, wp google map, wp google maps, wp map, wp maps
4
+ Donate link: https://www.paypal.com/cgi-bin/webscr?business=gordan@webfactoryltd.com&cmd=_xclick&currency_code=USD&amount=&item_name=Google%20Maps%20Widget%20Donation
5
+ License: GPLv2 or later
6
+ License URI: http://www.gnu.org/licenses/gpl-2.0.html
7
+ Requires at least: 3.3
8
+ Tested up to: 4.3
9
+ Stable tag: 2.85
10
+
11
+ Displays a single-image super-fast loading Google map in a widget. A larger map with all the usual features is available on click in a lightbox.
12
+
13
+ == Description ==
14
+
15
+ Check out some examples on the <a href="http://www.googlemapswidget.com/">official plugin site</a>, view the [Google Maps Widget video](http://www.youtube.com/watch?v=y1siX9ha7Pw) or give us a shout on Twitter <a href="http://twitter.com/WebFactoryLtd">@WebFactoryLtd</a>.
16
+
17
+ http://www.youtube.com/watch?v=y1siX9ha7Pw&hd=1
18
+
19
+ **General widget options**
20
+
21
+ * title
22
+ * address
23
+
24
+ **Thumbnail map options**
25
+
26
+ * map size - width & height
27
+ * map type - road, satellite, map or hybrid
28
+ * pin color
29
+ * pin size
30
+ * custom pin icon - any image can be used
31
+ * zoom level
32
+ * link type - lightbox, custom URL or disable link
33
+ * map color scheme - default, refreshed, apple, gray, paper
34
+ * text above map
35
+ * text below map
36
+
37
+ **Lightbox map options**
38
+
39
+ * map size - width & height (auto-adjusted on smaller screens)
40
+ * map type - road, satellite, map or hybrid
41
+ * zoom level
42
+ * skin - light, dark, blue, rounded
43
+ * show/hide address bubble
44
+ * show/hide map title
45
+ * header text
46
+ * footer text
47
+
48
+ **Shortcode**
49
+
50
+ * by using the _[gmw id="#"]_ shortcode you can display the map in any page, post, or custom post type
51
+
52
+
53
+ > If you need a Google Maps shortcode plugin you might be interested in purchasing our premium <a title="5sec Google Maps" href="http://5sec-google-maps-pro.webfactoryltd.com/">5sec Google Maps PRO</a> plugin.
54
+
55
+
56
+ **What others say about the plugin**
57
+
58
+ * voted on the <a href="http://themesplugins.com/Plugin-detail/google-maps-widget-google-map-free-plugin-for-wordpress/" title="Top 100 WordPressian plugin">Top 100 List</a> by WordPressian
59
+ * made it on the <a href="http://tidyrepo.com/google-maps-widget/">Tidy Repo</a> list
60
+ * reviewed 5/5 by <a href="http://websmush.com/google-maps-widget-plugin-review/">Web Smush</a>
61
+ * one of 3 best map plugins by <a href="http://torquemag.io/the-3-best-map-plugins-for-wordpress/">The Torque Mag</a>
62
+ * "an easier way to add Google maps to your site" says <a href="http://www.wpbeginner.com/wp-tutorials/how-to-add-google-maps-in-wordpress/">WP Beginner</a>
63
+ * <a href="http://designscrazed.org/wordpress-google-map-plugins/">Design Crazed</a> puts in on the top 20 Google maps list
64
+ * <a href="http://www.inkthemes.com/easily-integrate-google-map-in-your-wordpress-themes-widget-area/09/">InkThemes</a> shows how easy it is to use GMW
65
+ * <a href="http://www.indexwp.com/google-maps-widget/">IndexWP</a> calls it a "handy map plugin"
66
+
67
+
68
+ **Translators (thank you!)**
69
+
70
+ * English - original :)
71
+ * Swedish - Sofia Asklund
72
+ * Spanish - Jesus Garica
73
+ * Croatian - Gordan from <a href="http://www.webfactoryltd.com/">Web factory Ltd</a>
74
+ * German - Karimba
75
+ * French - Karimba
76
+ * Chinese simplified - Wyeoh
77
+ * Chinese traditional - Wyeoh
78
+ * Dutch - Arno
79
+ * Ukrainian - Victor Shutovskiy
80
+ * Serbian - Ogi Djuraskovic from <a href="http://firstsiteguide.com/">FirstSiteGuide</a>
81
+ * Russian - Ivanka from <a href="http://www.coupofy.com/">Coupofy</a>
82
+
83
+ == Installation ==
84
+
85
+ Follow the usual routine;
86
+
87
+ 1. Open WP admin - Plugins - Add New
88
+ 2. Enter "Google Maps Widget" under search and hit Enter
89
+ 3. Plugin will show up as the first on the list, click "Install Now"
90
+
91
+ Or if needed, upload manually;
92
+
93
+ 1. Download the plugin.
94
+ 2. Unzip it and upload to wp-content/plugin/
95
+ 3. Open WP admin - Plugins and click "Activate" next to the plugin
96
+ 4. Configure the plugin under Appearance - Widgets
97
+
98
+
99
+ == Frequently Asked Questions ==
100
+
101
+ = Who is this plugin for? =
102
+
103
+ For just about anyone who needs a map on their site in 5 seconds.
104
+
105
+ = Thumbnail map works but lightbox won't open on click =
106
+
107
+ You most probably have Fancybox JS and CSS files included twice; once by the theme and second time by GMW plugin. Remove one instance of files. If that's not the case then you have a fatal JS error thats preventing execution of other JS code. Hit F12 in Firefox or Chrome and have a look at the debug console. If there are any red lines - it's a fatal error. Open a new thread in the support forums but please bear in mind that support is community based and we do this in our spare time.
108
+
109
+ = It's not working!!! Arrrrrrrrr =
110
+
111
+ A more detailed help is coming soon. Till then check 2 things: does your theme have _wp_footer()_ function call in the footer and if there are any jQuery errors on the site.
112
+ If you can't figure it out open a thread in the support forums.
113
+
114
+ == Screenshots ==
115
+
116
+ 1. Small map is shown as a widget and since it's just one image it loads super-fast
117
+ 2. Larger map with all features is available in the lightbox
118
+ 3. Widget options - thumbnail map
119
+ 4. Widget options - lightbox map
120
+ 5. Widget options - shortcode
121
+ 6. Widget options - info & support
122
+
123
+ == Changelog ==
124
+ = 2.85 =
125
+ * 2015/12/02
126
+ * enhancements in PHP
127
+
128
+ = 2.80 =
129
+ * 2015/11/18
130
+ * fixed a big bug in JS (widget admin UI init)
131
+
132
+ = 2.75 =
133
+ * 2015/10/26
134
+ * minor JS tweaks and bug fixes
135
+
136
+ = 2.70 =
137
+ * 2015/10/12
138
+ * fixed a nasty bug with shortcode rendering (thanks Hey You!)
139
+ * JS and CSS fixes for widget UI in the theme customizer
140
+
141
+ = 2.66 =
142
+ * 2015/10/05
143
+ * minor bug fixes
144
+ * we'll be soon removing all PO files from the plugin since the strings were merged into the official WP translate project
145
+
146
+ = 2.60 =
147
+ * 2015/08/31
148
+ * added data validation on input fields
149
+ * minor CSS tweaks
150
+
151
+ = 2.51 =
152
+ * 2015/07/27
153
+ * updated PHP4 style class constructor to PHP5 one
154
+ * lowered cron for tracking to once every 14 days
155
+ * did some prep work for the upcoming 4.3 version of WP
156
+
157
+ = 2.45 =
158
+ * 2015/06/15
159
+ * fixed a bug on notice dismiss action
160
+ * added Russian translation - thanks Ivanka!
161
+
162
+ = 2.40 =
163
+ * 2015/05/25
164
+ * few small bugs fixed
165
+ * admin JS completely rebuilt
166
+ * fixed PO file
167
+ * we broke 90,000 installations ;)
168
+
169
+ = 2.35 =
170
+ * 2015/04/27
171
+ * few small bugs fixed
172
+ * WP v4.2 compatibility checked
173
+ * remove_query_arg() security issue fixed
174
+ * we broke 500,000 downloads ;)
175
+
176
+ = 2.30 =
177
+ * 2015/03/02
178
+ * JS rewrites
179
+ * few small bugs fixed
180
+
181
+ = 2.25 =
182
+ * 2015/02/23
183
+ * a few visual enhancements
184
+ * new screenshots
185
+ * shortcode name availability is checked before registering it
186
+ * visual builder compatibility fix
187
+
188
+ = 2.20 =
189
+ * 2015/02/16
190
+ * added shortcode support
191
+
192
+ = 2.15 =
193
+ * 2015/02/09
194
+ * fixed a _plugin_deactivate_ bug nobody noticed for 2 years :(
195
+ * all JS texts are now loaded via wp_localize_script()
196
+
197
+ = 2.10 =
198
+ * 2015/02/02
199
+ * auto-adjust map size on smaller screens - thanks bruzm!
200
+ * marked each widget with core version for future updates
201
+
202
+ = 2.06 =
203
+ * 2015/01/26
204
+ * language file updated
205
+ * preparing for JS rewrite
206
+
207
+ = 2.05 =
208
+ * 2015/01/19
209
+ * code rewriting
210
+ * minor bug fixes
211
+
212
+ = 2.01 =
213
+ * 2015/01/13
214
+ * somehow one JS file got renamed :(
215
+
216
+ = 2.0 =
217
+ * 2015/01/13
218
+ * lots of rewrites
219
+ * additional features can now be activated by subscribing to our newsletter
220
+
221
+ = 1.95 =
222
+ * 2014/12/19
223
+ * minor WP v4.1 updates
224
+
225
+ = 1.93 =
226
+ * 2014/12/03
227
+ * due to someone being a huge cun* we can no longer offer discounts for our Envato products in GMW
228
+ * so no changes to the plugin, just some messages edited
229
+
230
+ = 1.92 =
231
+ * 2014/11/12
232
+ * minor bug fixes
233
+ * preparations for admin JS rewrite
234
+
235
+ = 1.90 =
236
+ * 2014/10/20
237
+ * added Serbian translation; thanks Ogi!
238
+
239
+ = 1.86 =
240
+ * 2014/10/12
241
+ * updated POT file
242
+ * updated Croatian translation
243
+
244
+ = 1.85 =
245
+ * 2014/09/22
246
+ * added custom pin image option for thumbnail map - thanks Rudloff!
247
+
248
+ = 1.80 =
249
+ * 2014/09/08
250
+ * minor updates for WordPress v4.0
251
+
252
+ = 1.75 =
253
+ * 2014/07/29
254
+ * lightbox skins are back; light and dark for now, more coming soon
255
+ * updated lightbox jS
256
+
257
+ = 1.70 =
258
+ * 2014/07/10
259
+ * fixed a small bug on thumbnail
260
+ * finished up a todo
261
+
262
+ = 1.65 =
263
+ * 2014/05/06
264
+ * finished up a few todos
265
+
266
+ = 1.60 =
267
+ * 2014/04/17
268
+ * update for WordPress v3.9, widget edit GUI now works in theme customizer
269
+ * if you run into any issues please report them in the support forums
270
+
271
+ = 1.55 =
272
+ * 2014/04/07
273
+ * fixed shortcode handling in map's header & footer
274
+ * added Ukrainian translation - thank you Victor Shutovskiy!
275
+
276
+ = 1.50 =
277
+ * 2014/03/25
278
+ * minor bug fixes
279
+ * new Spanish translation - thank you Jesus!
280
+ * still working on those lightbox skins, sorry :(
281
+
282
+ = 1.47 =
283
+ * 2014/03/05
284
+ * minor bug fix
285
+ * working on those lightbox skins :)
286
+
287
+ = 1.45 =
288
+ * 2014/03/04
289
+ * switched to <a href="http://www.jacklmoore.com/colorbox/">Colorbox</a> lightbox script
290
+ * lightbox skin is still temporarily unavailable
291
+
292
+ = 1.40 =
293
+ * 2014/02/10
294
+ * due to licensing issues switched to FancyBox v1.3.4
295
+ * lightbox skin is temporarily unavailable
296
+ * minor bug fix related to activate/upgrade hook calls
297
+
298
+ = 1.35 =
299
+ * 2014/02/05
300
+ * added optional plugin usage tracking (<a href="http://www.googlemapswidget.com/plugin-tracking-info/">detailed info</a>)
301
+
302
+ = 1.31 =
303
+ * 2014/02/03
304
+ * WP v3.8.1 compatibility check
305
+
306
+ = 1.30 =
307
+ * 2014/01/16
308
+ * added Dutch translation; thank you Arno!
309
+
310
+ = 1.25 =
311
+ * 2014/01/03
312
+ * preparations for opt-in plugin usage tracking
313
+ * Spanish translation updated; thanks Jesus!
314
+
315
+ = 1.20 =
316
+ * 2013/12/17
317
+ * WP v3.8 update
318
+ * language files update
319
+
320
+ = 1.15 =
321
+ * 2013/11/25
322
+ * added option for thumbnail map to link to a custom URL which disables the lightbox; you can link to a lightbox, a custom link or remove the link all together
323
+
324
+ = 1.10 =
325
+ * 2013/11/18
326
+ * added option for thumbnail map to use the new look/color scheme
327
+
328
+ = 1.05 =
329
+ * 2013/11/04
330
+ * added Chinese traditional translation; thanks Wyeoh
331
+
332
+ = 1.0 =
333
+ * 2013/10/28
334
+ * WP 3.7 compatibility check
335
+ * added Chinese simplified translation; thanks Wyeoh
336
+
337
+ = 0.95 =
338
+ * 2013/10/21
339
+ * added French translation; thanks Karimba
340
+
341
+ = 0.90 =
342
+ * 2013/10/14
343
+ * added German translation; thanks Karimba
344
+ * we reached 100k downloads ;)
345
+
346
+ = 0.86 =
347
+ * 2013/10/07
348
+ * fixed a few strict standards errors; thanks Jay!
349
+
350
+ = 0.85 =
351
+ * 2013/10/03
352
+ * added Croatian translation; thank you Gordan
353
+
354
+ = 0.80 =
355
+ * 2013/09/28
356
+ * minor translation fixes
357
+ * added Spanish translation; thank you Jesus!
358
+
359
+ = 0.75 =
360
+ * 2013/09/24
361
+ * map language is autodetected based on user's browser language (HTTP_ACCEPT_LANGUAGE header)
362
+ * added Swedish translation; thank you Sofia!
363
+ * German and Croatian translations will be up next
364
+
365
+ = 0.71 =
366
+ * 2013/09/17
367
+ * few more preparations for translation
368
+ * Swedish translation coming in a few days
369
+
370
+ = 0.70 =
371
+ * 2013/09/05
372
+ * prepared everything for translation, POT file is available and all strings are wrapped in <i>__()</i>
373
+ * protocols should now match http/https for both thumbnail and ligtbox map
374
+ * <a href="http://www.googlemapswidget.com/">www.googlemapswidget.com</a> is up and running
375
+
376
+ = 0.65 =
377
+ * 2013/08/05
378
+ * updated JS for WP v3.6
379
+
380
+ = 0.60 =
381
+ * 2013/04/06
382
+ * fixed zoom bug in lightbox
383
+
384
+ = 0.55 =
385
+ * 2013/04/05
386
+ * added 2 new options - text above and below thumbnail map
387
+ * updated fancyBox JS to the latest version
388
+ * minor code improvements
389
+
390
+ = 0.50 =
391
+ * 2012/12/12
392
+ * small WP 3.5 compatibility fixes
393
+
394
+ = 0.41 =
395
+ * 2012/12/03
396
+ * removed screenshots from plugin package
397
+
398
+ = 0.4 =
399
+ * 2012/11/28
400
+ * fixed non UTF-8 address bug
401
+
402
+ = 0.37 =
403
+ * 2012/11/19
404
+ * fixed bug to use google.com instead of google.co.uk
405
+
406
+ = 0.35 =
407
+ * 2012/09/28
408
+ * added 4 skins for lightbox
409
+
410
+ = 0.31 =
411
+ * 2012/09/14
412
+ * fix for bad themes which don't respect proper sidebar markup
413
+
414
+ = 0.3 =
415
+ * 2012/09/04
416
+ * lightbox script changed from jQuery UI Dialog to <a href="http://fancyapps.com/fancybox/">fancyBox2</a>
417
+ * added "show map title on lightbox" option
418
+ * significant speed improvements
419
+ * preparations for lightbox skins
420
+
421
+ = 0.22 =
422
+ * 2012/08/31
423
+ * Fixed small JS related GUI bug
424
+
425
+ = 0.2 =
426
+ * 2012/08/28
427
+ * Complete GUI rewrite
428
+ * Added header text option
429
+ * Added address bubble visibility option
430
+ * Fixed thumbnail map scaling bug
431
+ * Fixed lightbox map size bug
432
+
433
+ = 0.13 =
434
+ * 2012/08/09
435
+ * Added pin size for thumbnail map
436
+
437
+ = 0.12 =
438
+ * 2012/08/07
439
+ * Added pin color for thumbnail map
440
+ * Fixed a few minor bugs
441
+
442
+ = 0.11 =
443
+ * 2012/08/06
444
+ * Fixed a few minor bugs
445
+
446
+ = 0.1 =
447
+ * 2012/08/03
448
  * Initial release