Version Description
- 2013/11/18
- added option for thumbnail map to use the new look/color scheme
Download this release
Release Info
Developer | WebFactory |
Plugin | Google Maps Widget – Ultimate Google Maps Plugin |
Version | 1.10 |
Comparing to | |
See all releases |
Code changes from version 1.05 to 1.10
- gmw-widget.php +14 -1
- google-maps-widget.php +2 -2
- readme.txt +8 -3
gmw-widget.php
CHANGED
@@ -25,6 +25,7 @@ class GoogleMapsWidget extends WP_Widget {
|
|
25 |
'thumb_zoom' => '13',
|
26 |
'thumb_header' => '',
|
27 |
'thumb_footer' => '',
|
|
|
28 |
'lightbox_width' => '550',
|
29 |
'lightbox_height' => '550',
|
30 |
'lightbox_type' => 'roadmap',
|
@@ -45,6 +46,7 @@ class GoogleMapsWidget extends WP_Widget {
|
|
45 |
$thumb_zoom = $instance['thumb_zoom'];
|
46 |
$thumb_header = $instance['thumb_header'];
|
47 |
$thumb_footer = $instance['thumb_footer'];
|
|
|
48 |
$lightbox_width = $instance['lightbox_width'];
|
49 |
$lightbox_height = $instance['lightbox_height'];
|
50 |
$lightbox_type = $instance['lightbox_type'];
|
@@ -123,6 +125,10 @@ class GoogleMapsWidget extends WP_Widget {
|
|
123 |
GMW::create_select_options($zoom_levels, $thumb_zoom);
|
124 |
echo '</select></p>';
|
125 |
|
|
|
|
|
|
|
|
|
126 |
echo '<p><label for="' . $this->get_field_id('thumb_header') . '">' . __('Text Above Map', 'google-maps-widget') . ':</label>';
|
127 |
echo '<textarea class="widefat" rows="3" cols="20" id="' . $this->get_field_id('thumb_header') . '" name="' . $this->get_field_name('thumb_header') . '">'. $thumb_header . '</textarea></p>';
|
128 |
|
@@ -184,6 +190,7 @@ class GoogleMapsWidget extends WP_Widget {
|
|
184 |
$instance['thumb_type'] = $new_instance['thumb_type'];
|
185 |
$instance['thumb_header'] = trim($new_instance['thumb_header']);
|
186 |
$instance['thumb_footer'] = trim($new_instance['thumb_footer']);
|
|
|
187 |
$instance['lightbox_width'] = (int) $new_instance['lightbox_width'];
|
188 |
$instance['lightbox_height'] = (int) $new_instance['lightbox_height'];
|
189 |
$instance['lightbox_type'] = $new_instance['lightbox_type'];
|
@@ -230,6 +237,12 @@ class GoogleMapsWidget extends WP_Widget {
|
|
230 |
|
231 |
$out .= $before_widget;
|
232 |
|
|
|
|
|
|
|
|
|
|
|
|
|
233 |
$title = empty($instance['title']) ? ' ' : apply_filters('widget_title', $instance['title']);
|
234 |
if (!empty($title)) {
|
235 |
$out .= $before_title . $title . $after_title;
|
@@ -243,7 +256,7 @@ class GoogleMapsWidget extends WP_Widget {
|
|
243 |
urlencode($instance['address']) . '&zoom=' . $instance['thumb_zoom'] .
|
244 |
'&size=' . $instance['thumb_width'] . 'x' . $instance['thumb_height'] . '&maptype=' . $instance['thumb_type'] .
|
245 |
'&sensor=false&scale=1&markers=size:' . $instance['thumb_pin_size'] . '%7Ccolor:' . $instance['thumb_pin_color'] . '%7Clabel:A%7C' .
|
246 |
-
urlencode($instance['address']) . '&language=' . $lang . '"></a>';
|
247 |
$tmp .= '</p>';
|
248 |
if ($instance['thumb_footer']) {
|
249 |
$tmp .= wpautop($instance['thumb_footer']);
|
25 |
'thumb_zoom' => '13',
|
26 |
'thumb_header' => '',
|
27 |
'thumb_footer' => '',
|
28 |
+
'thumb_new_colors' => '1',
|
29 |
'lightbox_width' => '550',
|
30 |
'lightbox_height' => '550',
|
31 |
'lightbox_type' => 'roadmap',
|
46 |
$thumb_zoom = $instance['thumb_zoom'];
|
47 |
$thumb_header = $instance['thumb_header'];
|
48 |
$thumb_footer = $instance['thumb_footer'];
|
49 |
+
$thumb_new_colors = $instance['thumb_new_colors'];
|
50 |
$lightbox_width = $instance['lightbox_width'];
|
51 |
$lightbox_height = $instance['lightbox_height'];
|
52 |
$lightbox_type = $instance['lightbox_type'];
|
125 |
GMW::create_select_options($zoom_levels, $thumb_zoom);
|
126 |
echo '</select></p>';
|
127 |
|
128 |
+
echo '<p><label for="' . $this->get_field_id('thumb_new_colors') . '">' . __('Use New Color Scheme', 'google-maps-widget') . ': </label>';
|
129 |
+
echo '<input ' . checked('1', $thumb_new_colors, false) . ' value="1" type="checkbox" id="' . $this->get_field_id('thumb_new_colors') . '" name="' . $this->get_field_name('thumb_new_colors') . '">';
|
130 |
+
echo '</p>';
|
131 |
+
|
132 |
echo '<p><label for="' . $this->get_field_id('thumb_header') . '">' . __('Text Above Map', 'google-maps-widget') . ':</label>';
|
133 |
echo '<textarea class="widefat" rows="3" cols="20" id="' . $this->get_field_id('thumb_header') . '" name="' . $this->get_field_name('thumb_header') . '">'. $thumb_header . '</textarea></p>';
|
134 |
|
190 |
$instance['thumb_type'] = $new_instance['thumb_type'];
|
191 |
$instance['thumb_header'] = trim($new_instance['thumb_header']);
|
192 |
$instance['thumb_footer'] = trim($new_instance['thumb_footer']);
|
193 |
+
$instance['thumb_new_colors'] = isset($new_instance['thumb_new_colors']);
|
194 |
$instance['lightbox_width'] = (int) $new_instance['lightbox_width'];
|
195 |
$instance['lightbox_height'] = (int) $new_instance['lightbox_height'];
|
196 |
$instance['lightbox_type'] = $new_instance['lightbox_type'];
|
237 |
|
238 |
$out .= $before_widget;
|
239 |
|
240 |
+
if ($instance['thumb_new_colors']) {
|
241 |
+
$instance['thumb_new_colors'] = 'true';
|
242 |
+
} else {
|
243 |
+
$instance['thumb_new_colors'] = 'false';
|
244 |
+
}
|
245 |
+
|
246 |
$title = empty($instance['title']) ? ' ' : apply_filters('widget_title', $instance['title']);
|
247 |
if (!empty($title)) {
|
248 |
$out .= $before_title . $title . $after_title;
|
256 |
urlencode($instance['address']) . '&zoom=' . $instance['thumb_zoom'] .
|
257 |
'&size=' . $instance['thumb_width'] . 'x' . $instance['thumb_height'] . '&maptype=' . $instance['thumb_type'] .
|
258 |
'&sensor=false&scale=1&markers=size:' . $instance['thumb_pin_size'] . '%7Ccolor:' . $instance['thumb_pin_color'] . '%7Clabel:A%7C' .
|
259 |
+
urlencode($instance['address']) . '&language=' . $lang . '&visual_refresh=' . $instance['thumb_new_colors'] .'"></a>';
|
260 |
$tmp .= '</p>';
|
261 |
if ($instance['thumb_footer']) {
|
262 |
$tmp .= wpautop($instance['thumb_footer']);
|
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.
|
6 |
Author: Web factory Ltd
|
7 |
-
Version: 1.
|
8 |
Author URI: http://www.webfactoryltd.com/
|
9 |
|
10 |
Copyright 2013 Web factory Ltd (email : info@webfactoryltd.com)
|
@@ -29,7 +29,7 @@ if (!function_exists('add_action')) {
|
|
29 |
}
|
30 |
|
31 |
|
32 |
-
define('GMW_VER', '1.
|
33 |
require_once 'gmw-widget.php';
|
34 |
|
35 |
|
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.
|
6 |
Author: Web factory Ltd
|
7 |
+
Version: 1.10
|
8 |
Author URI: http://www.webfactoryltd.com/
|
9 |
|
10 |
Copyright 2013 Web factory Ltd (email : info@webfactoryltd.com)
|
29 |
}
|
30 |
|
31 |
|
32 |
+
define('GMW_VER', '1.10');
|
33 |
require_once 'gmw-widget.php';
|
34 |
|
35 |
|
readme.txt
CHANGED
@@ -1,12 +1,12 @@
|
|
1 |
=== Google Maps Widget ===
|
2 |
Contributors: WebFactory
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=paypal%40webfactoryltd%2ecom&lc=US&item_name=Google%20Maps%20Widget&no_note=0¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHostedGuest
|
4 |
-
Tags: google maps, maps, gmaps, widget, lightbox, map, google map, fancybox,
|
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: 3.7.1
|
9 |
-
Stable tag: 1.
|
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 |
|
@@ -28,6 +28,7 @@ http://www.youtube.com/watch?v=y1siX9ha7Pw&hd=1
|
|
28 |
* pin color
|
29 |
* pin size
|
30 |
* zoom level
|
|
|
31 |
* text above map
|
32 |
* text below map
|
33 |
|
@@ -36,7 +37,7 @@ http://www.youtube.com/watch?v=y1siX9ha7Pw&hd=1
|
|
36 |
* map size - width & height
|
37 |
* map type - road, satellite, map or hybrid
|
38 |
* zoom level
|
39 |
-
* skin
|
40 |
* show/hide address bubble
|
41 |
* show/hide map title
|
42 |
* header text
|
@@ -96,6 +97,10 @@ If you can figure it out open a thread in the support forums.
|
|
96 |
4. Widget options - lightbox map
|
97 |
|
98 |
== Changelog ==
|
|
|
|
|
|
|
|
|
99 |
= 1.05 =
|
100 |
* 2013/11/04
|
101 |
* added Chinese traditional translation; thanks Wyeoh
|
1 |
=== Google Maps Widget ===
|
2 |
Contributors: WebFactory
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=paypal%40webfactoryltd%2ecom&lc=US&item_name=Google%20Maps%20Widget&no_note=0¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHostedGuest
|
4 |
+
Tags: google maps, maps, gmaps, widget, lightbox, map, google map, fancybox, multilingual, sidebar, chinese
|
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: 3.7.1
|
9 |
+
Stable tag: 1.10
|
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 |
|
28 |
* pin color
|
29 |
* pin size
|
30 |
* zoom level
|
31 |
+
* map color scheme - new & old
|
32 |
* text above map
|
33 |
* text below map
|
34 |
|
37 |
* map size - width & height
|
38 |
* map type - road, satellite, map or hybrid
|
39 |
* zoom level
|
40 |
+
* skin - black, white, rounded & squared
|
41 |
* show/hide address bubble
|
42 |
* show/hide map title
|
43 |
* header text
|
97 |
4. Widget options - lightbox map
|
98 |
|
99 |
== Changelog ==
|
100 |
+
= 1.10 =
|
101 |
+
* 2013/11/18
|
102 |
+
* added option for thumbnail map to use the new look/color scheme
|
103 |
+
|
104 |
= 1.05 =
|
105 |
* 2013/11/04
|
106 |
* added Chinese traditional translation; thanks Wyeoh
|