Version Description
- 2014/04/07
- fixed shortcode handling in map's header & footer
- added Ukrainian translation - thank you Victor Shutovskiy!
Download this release
Release Info
Developer | WebFactory |
Plugin | Google Maps Widget – Ultimate Google Maps Plugin |
Version | 1.55 |
Comparing to | |
See all releases |
Code changes from version 1.50 to 1.55
- css/gmw.css +6 -3
- gmw-widget.php +4 -5
- google-maps-widget.php +5 -5
- lang/google-maps-widget-uk_UK.mo +0 -0
- readme.txt +7 -1
css/gmw.css
CHANGED
@@ -5,11 +5,14 @@
|
|
5 |
|
6 |
.gmw-header, .gmw-footer {
|
7 |
padding: 5px;
|
|
|
8 |
}
|
9 |
.gmw-map iframe {
|
10 |
border: none;
|
|
|
|
|
11 |
}
|
12 |
-
|
13 |
/*
|
14 |
Colorbox Core Style:
|
15 |
The following CSS is consistent between example themes and should not be altered.
|
@@ -27,7 +30,7 @@
|
|
27 |
.cboxIframe{width:100%; height:100%; display:block; border:0; padding:0; margin:0;}
|
28 |
#colorbox, #cboxContent, #cboxLoadedContent{box-sizing:content-box; -moz-box-sizing:content-box; -webkit-box-sizing:content-box;}
|
29 |
|
30 |
-
/*
|
31 |
User Style:
|
32 |
Change the following styles to modify the appearance of Colorbox. They are
|
33 |
ordered & tabbed in a way that represents the nesting of the generated HTML.
|
@@ -45,7 +48,7 @@
|
|
45 |
|
46 |
/* these elements are buttons, and may need to have additional styles reset to avoid unwanted base styles */
|
47 |
#cboxPrevious, #cboxNext, #cboxSlideshow, #cboxClose {border:0; padding:0; margin:0; overflow:visible; text-indent:-9999px; width:20px; height:20px; position:absolute; top:-20px; background:url(../images/controls.png) no-repeat 0 0;}
|
48 |
-
|
49 |
/* avoid outlines on :active (mouseclick), but preserve outlines on :focus (tabbed navigating) */
|
50 |
#cboxPrevious:active, #cboxNext:active, #cboxSlideshow:active, #cboxClose:active {outline:0;}
|
51 |
|
5 |
|
6 |
.gmw-header, .gmw-footer {
|
7 |
padding: 5px;
|
8 |
+
font-style: italic;
|
9 |
}
|
10 |
.gmw-map iframe {
|
11 |
border: none;
|
12 |
+
margin: 0;
|
13 |
+
padding: 0;
|
14 |
}
|
15 |
+
|
16 |
/*
|
17 |
Colorbox Core Style:
|
18 |
The following CSS is consistent between example themes and should not be altered.
|
30 |
.cboxIframe{width:100%; height:100%; display:block; border:0; padding:0; margin:0;}
|
31 |
#colorbox, #cboxContent, #cboxLoadedContent{box-sizing:content-box; -moz-box-sizing:content-box; -webkit-box-sizing:content-box;}
|
32 |
|
33 |
+
/*
|
34 |
User Style:
|
35 |
Change the following styles to modify the appearance of Colorbox. They are
|
36 |
ordered & tabbed in a way that represents the nesting of the generated HTML.
|
48 |
|
49 |
/* these elements are buttons, and may need to have additional styles reset to avoid unwanted base styles */
|
50 |
#cboxPrevious, #cboxNext, #cboxSlideshow, #cboxClose {border:0; padding:0; margin:0; overflow:visible; text-indent:-9999px; width:20px; height:20px; position:absolute; top:-20px; background:url(../images/controls.png) no-repeat 0 0;}
|
51 |
+
|
52 |
/* avoid outlines on :active (mouseclick), but preserve outlines on :focus (tabbed navigating) */
|
53 |
#cboxPrevious:active, #cboxNext:active, #cboxSlideshow:active, #cboxClose:active {outline:0;}
|
54 |
|
gmw-widget.php
CHANGED
@@ -46,6 +46,7 @@ class GoogleMapsWidget extends WP_Widget {
|
|
46 |
'lightbox_footer' => ''));
|
47 |
|
48 |
// todo - use extract() to make code nicer
|
|
|
49 |
$title = $instance['title'];
|
50 |
$address = $instance['address'];
|
51 |
$thumb_pin_color = $instance['thumb_pin_color'];
|
@@ -277,14 +278,13 @@ class GoogleMapsWidget extends WP_Widget {
|
|
277 |
$instance['thumb_new_colors'] = 'false';
|
278 |
}
|
279 |
|
280 |
-
$title = empty($instance['title'])
|
281 |
if (!empty($title)) {
|
282 |
$out .= $before_title . $title . $after_title;
|
283 |
}
|
284 |
|
285 |
if (isset($instance['thumb_header']) && $instance['thumb_header']) {
|
286 |
-
$tmp .= wpautop($instance['thumb_header']);
|
287 |
-
// todo, test - do_shortcode
|
288 |
}
|
289 |
$tmp .= '<p>';
|
290 |
if ($instance['thumb_link_type'] == 'lightbox') {
|
@@ -302,8 +302,7 @@ class GoogleMapsWidget extends WP_Widget {
|
|
302 |
}
|
303 |
$tmp .= '</p>';
|
304 |
if (isset($instance['thumb_footer']) && $instance['thumb_footer']) {
|
305 |
-
$tmp .= wpautop($instance['thumb_footer']);
|
306 |
-
// todo, test - do_shortcode
|
307 |
}
|
308 |
$out .= apply_filters('google_maps_widget_content', $tmp);
|
309 |
|
46 |
'lightbox_footer' => ''));
|
47 |
|
48 |
// todo - use extract() to make code nicer
|
49 |
+
// extract($instance, EXTR_SKIP); - not very smart, other plugins can add keys to $instance
|
50 |
$title = $instance['title'];
|
51 |
$address = $instance['address'];
|
52 |
$thumb_pin_color = $instance['thumb_pin_color'];
|
278 |
$instance['thumb_new_colors'] = 'false';
|
279 |
}
|
280 |
|
281 |
+
$title = empty($instance['title'])? ' ' : apply_filters('widget_title', $instance['title']);
|
282 |
if (!empty($title)) {
|
283 |
$out .= $before_title . $title . $after_title;
|
284 |
}
|
285 |
|
286 |
if (isset($instance['thumb_header']) && $instance['thumb_header']) {
|
287 |
+
$tmp .= wpautop(do_shortcode($instance['thumb_header']));
|
|
|
288 |
}
|
289 |
$tmp .= '<p>';
|
290 |
if ($instance['thumb_link_type'] == 'lightbox') {
|
302 |
}
|
303 |
$tmp .= '</p>';
|
304 |
if (isset($instance['thumb_footer']) && $instance['thumb_footer']) {
|
305 |
+
$tmp .= wpautop(do_shortcode($instance['thumb_footer']));
|
|
|
306 |
}
|
307 |
$out .= apply_filters('google_maps_widget_content', $tmp);
|
308 |
|
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 |
Text Domain: google-maps-widget
|
10 |
Domain Path: lang
|
@@ -31,7 +31,7 @@ if (!defined('ABSPATH')) {
|
|
31 |
}
|
32 |
|
33 |
|
34 |
-
define('GMW_VER', '1.
|
35 |
define('GMW_OPTIONS', 'gmw_options');
|
36 |
define('GMW_CRON', 'gmw_cron');
|
37 |
|
@@ -89,7 +89,7 @@ class GMW {
|
|
89 |
|
90 |
// add links to plugin's description in plugins table
|
91 |
static function plugin_meta_links($links, $file) {
|
92 |
-
// todo - write proper docs
|
93 |
//$documentation_link = '<a target="_blank" href="' . plugin_dir_url(__FILE__) . '#" title="' . __('View Google Maps Widget documentation', 'google-maps-widget') . '">'. __('Documentation', 'google-maps-widget') . '</a>';
|
94 |
$support_link = '<a target="_blank" href="http://wordpress.org/support/plugin/google-maps-widget" title="' . __('Problems? We are here to help!', 'google-maps-widget') . '">' . __('Support', 'google-maps-widget') . '</a>';
|
95 |
$review_link = '<a target="_blank" href="http://wordpress.org/support/view/plugin-reviews/google-maps-widget" title="' . __('If you like it, please review the plugin', 'google-maps-widget') . '">' . __('Review the plugin', 'google-maps-widget') . '</a>';
|
@@ -151,11 +151,11 @@ class GMW {
|
|
151 |
|
152 |
$out .= '<div class="gmw-dialog" style="display: none;" data-map-height="' . $widget['height'] . '" data-map-width="' . $widget['width'] . '" data-map-skin="' . $widget['skin'] . '" data-map-iframe-url="' . $map_url . '" id="gmw-dialog-' . $widget['id'] . '" title="' . esc_attr($widget['title']) . '">';
|
153 |
if ($widget['header']) {
|
154 |
-
$out .= '<div class="gmw-header"
|
155 |
}
|
156 |
$out .= '<div class="gmw-map"></div>';
|
157 |
if ($widget['footer']) {
|
158 |
-
$out .= '<div class="gmw-footer"
|
159 |
}
|
160 |
$out .= "</div>\n";
|
161 |
} // foreach $widgets
|
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.55
|
8 |
Author URI: http://www.webfactoryltd.com/
|
9 |
Text Domain: google-maps-widget
|
10 |
Domain Path: lang
|
31 |
}
|
32 |
|
33 |
|
34 |
+
define('GMW_VER', '1.55');
|
35 |
define('GMW_OPTIONS', 'gmw_options');
|
36 |
define('GMW_CRON', 'gmw_cron');
|
37 |
|
89 |
|
90 |
// add links to plugin's description in plugins table
|
91 |
static function plugin_meta_links($links, $file) {
|
92 |
+
// todo - write proper docs someday :(
|
93 |
//$documentation_link = '<a target="_blank" href="' . plugin_dir_url(__FILE__) . '#" title="' . __('View Google Maps Widget documentation', 'google-maps-widget') . '">'. __('Documentation', 'google-maps-widget') . '</a>';
|
94 |
$support_link = '<a target="_blank" href="http://wordpress.org/support/plugin/google-maps-widget" title="' . __('Problems? We are here to help!', 'google-maps-widget') . '">' . __('Support', 'google-maps-widget') . '</a>';
|
95 |
$review_link = '<a target="_blank" href="http://wordpress.org/support/view/plugin-reviews/google-maps-widget" title="' . __('If you like it, please review the plugin', 'google-maps-widget') . '">' . __('Review the plugin', 'google-maps-widget') . '</a>';
|
151 |
|
152 |
$out .= '<div class="gmw-dialog" style="display: none;" data-map-height="' . $widget['height'] . '" data-map-width="' . $widget['width'] . '" data-map-skin="' . $widget['skin'] . '" data-map-iframe-url="' . $map_url . '" id="gmw-dialog-' . $widget['id'] . '" title="' . esc_attr($widget['title']) . '">';
|
153 |
if ($widget['header']) {
|
154 |
+
$out .= '<div class="gmw-header">' . wpautop(do_shortcode($widget['header'])) . '</div>';
|
155 |
}
|
156 |
$out .= '<div class="gmw-map"></div>';
|
157 |
if ($widget['footer']) {
|
158 |
+
$out .= '<div class="gmw-footer">' . wpautop(do_shortcode($widget['footer'])) . '</div>';
|
159 |
}
|
160 |
$out .= "</div>\n";
|
161 |
} // foreach $widgets
|
lang/google-maps-widget-uk_UK.mo
ADDED
Binary file
|
readme.txt
CHANGED
@@ -6,7 +6,7 @@ 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.8.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 |
|
@@ -59,6 +59,7 @@ The plugin was voted on the <a href="http://themesplugins.com/Plugin-detail/goog
|
|
59 |
* Chinese simplified - Wyeoh
|
60 |
* Chinese traditional - Wyeoh
|
61 |
* Dutch - Arno
|
|
|
62 |
|
63 |
== Installation ==
|
64 |
|
@@ -99,6 +100,11 @@ If you can figure it out open a thread in the support forums.
|
|
99 |
4. Widget options - lightbox map
|
100 |
|
101 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
102 |
= 1.50 =
|
103 |
* 2014/03/25
|
104 |
* minor bug fixes
|
6 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
7 |
Requires at least: 3.3
|
8 |
Tested up to: 3.8.1
|
9 |
+
Stable tag: 1.55
|
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 |
|
59 |
* Chinese simplified - Wyeoh
|
60 |
* Chinese traditional - Wyeoh
|
61 |
* Dutch - Arno
|
62 |
+
* Ukrainian - Victor Shutovskiy
|
63 |
|
64 |
== Installation ==
|
65 |
|
100 |
4. Widget options - lightbox map
|
101 |
|
102 |
== Changelog ==
|
103 |
+
= 1.55 =
|
104 |
+
* 2014/04/07
|
105 |
+
* fixed shortcode handling in map's header & footer
|
106 |
+
* added Ukrainian translation - thank you Victor Shutovskiy!
|
107 |
+
|
108 |
= 1.50 =
|
109 |
* 2014/03/25
|
110 |
* minor bug fixes
|