Version Description
- 2015/12/02
- enhancements in PHP
Download this release
Release Info
Developer | WebFactory |
Plugin | Google Maps Widget – Ultimate Google Maps Plugin |
Version | 2.85 |
Comparing to | |
See all releases |
Code changes from version 2.80 to 2.85
- gmw-widget.php +6 -6
- google-maps-widget.php +6 -5
- readme.txt +447 -443
gmw-widget.php
CHANGED
@@ -18,11 +18,11 @@ class GoogleMapsWidget extends WP_Widget {
|
|
18 |
|
19 |
|
20 |
// constructor method
|
21 |
-
function
|
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 |
-
} //
|
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 & 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 (
|
270 |
-
echo '<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 & 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.
|
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.
|
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
|
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¤cy_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.
|
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.
|
125 |
-
* 2015/
|
126 |
-
*
|
127 |
-
|
128 |
-
= 2.
|
129 |
-
* 2015/
|
130 |
-
*
|
131 |
-
|
132 |
-
= 2.
|
133 |
-
* 2015/10/
|
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 |
-
= 2.
|
189 |
-
* 2015/02/
|
190 |
-
*
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
*
|
195 |
-
*
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
*
|
200 |
-
*
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
*
|
205 |
-
*
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
*
|
210 |
-
*
|
211 |
-
|
212 |
-
= 2.
|
213 |
-
* 2015/01/13
|
214 |
-
*
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
*
|
219 |
-
*
|
220 |
-
|
221 |
-
= 1.
|
222 |
-
* 2014/12/
|
223 |
-
*
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
*
|
228 |
-
*
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
*
|
233 |
-
*
|
234 |
-
|
235 |
-
= 1.
|
236 |
-
* 2014/10/
|
237 |
-
*
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
*
|
242 |
-
*
|
243 |
-
|
244 |
-
= 1.
|
245 |
-
* 2014/09/
|
246 |
-
*
|
247 |
-
|
248 |
-
= 1.
|
249 |
-
* 2014/
|
250 |
-
*
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
*
|
255 |
-
*
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
*
|
260 |
-
* finished up a
|
261 |
-
|
262 |
-
= 1.
|
263 |
-
* 2014/
|
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 |
-
= 1.
|
299 |
-
* 2014/02/
|
300 |
-
*
|
301 |
-
|
302 |
-
= 1.
|
303 |
-
* 2014/
|
304 |
-
*
|
305 |
-
|
306 |
-
= 1.
|
307 |
-
* 2014/01/
|
308 |
-
*
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
*
|
313 |
-
*
|
314 |
-
|
315 |
-
|
316 |
-
|
317 |
-
*
|
318 |
-
*
|
319 |
-
|
320 |
-
= 1.
|
321 |
-
* 2013/11/
|
322 |
-
* added option for thumbnail map to
|
323 |
-
|
324 |
-
= 1.
|
325 |
-
* 2013/11/
|
326 |
-
* added
|
327 |
-
|
328 |
-
= 1.
|
329 |
-
* 2013/
|
330 |
-
*
|
331 |
-
|
332 |
-
|
333 |
-
|
334 |
-
*
|
335 |
-
* added
|
336 |
-
|
337 |
-
= 0.
|
338 |
-
* 2013/10/
|
339 |
-
* added
|
340 |
-
|
341 |
-
|
342 |
-
|
343 |
-
*
|
344 |
-
*
|
345 |
-
|
346 |
-
= 0.
|
347 |
-
* 2013/10/
|
348 |
-
*
|
349 |
-
|
350 |
-
= 0.
|
351 |
-
* 2013/
|
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 |
-
= 0.
|
377 |
-
* 2013/
|
378 |
-
*
|
379 |
-
|
380 |
-
= 0.
|
381 |
-
* 2013/04/
|
382 |
-
*
|
383 |
-
|
384 |
-
|
385 |
-
|
386 |
-
|
387 |
-
*
|
388 |
-
*
|
389 |
-
|
390 |
-
= 0.
|
391 |
-
* 2012/12/
|
392 |
-
*
|
393 |
-
|
394 |
-
= 0.
|
395 |
-
* 2012/
|
396 |
-
*
|
397 |
-
|
398 |
-
= 0.
|
399 |
-
* 2012/11/
|
400 |
-
* fixed
|
401 |
-
|
402 |
-
= 0.
|
403 |
-
* 2012/
|
404 |
-
*
|
405 |
-
|
406 |
-
= 0.
|
407 |
-
* 2012/09/
|
408 |
-
*
|
409 |
-
|
410 |
-
= 0.
|
411 |
-
* 2012/09/
|
412 |
-
*
|
413 |
-
|
414 |
-
|
415 |
-
*
|
416 |
-
|
417 |
-
|
418 |
-
*
|
419 |
-
*
|
420 |
-
|
421 |
-
= 0.
|
422 |
-
* 2012/08/
|
423 |
-
*
|
424 |
-
|
425 |
-
|
426 |
-
*
|
427 |
-
*
|
428 |
-
|
429 |
-
|
430 |
-
*
|
431 |
-
*
|
432 |
-
|
433 |
-
= 0.
|
434 |
-
* 2012/08/
|
435 |
-
* Added pin
|
436 |
-
|
437 |
-
|
438 |
-
|
439 |
-
*
|
440 |
-
* Fixed a few minor bugs
|
441 |
-
|
442 |
-
= 0.
|
443 |
-
* 2012/08/
|
|
|
|
|
|
|
|
|
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¤cy_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
|