Google Maps Widget – Ultimate Google Maps Plugin - Version 2.70

Version Description

  • 2015/10/12
  • fixed a nasty bug with shortcode rendering (thanks Hey You!)
  • JS and CSS fixes for widget UI in the theme customizer
Download this release

Release Info

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

Code changes from version 2.66 to 2.70

Files changed (4) hide show
  1. css/gmw-admin.css +17 -0
  2. google-maps-widget.php +13 -7
  3. js/gmw-admin.js +1 -1
  4. readme.txt +7 -2
css/gmw-admin.css CHANGED
@@ -187,6 +187,23 @@ input:required:invalid {
187
  text-shadow: 0 1px 0 #FFFFFF;
188
  }
189
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
190
  ul.ui-tabs-nav{
191
  float: left;
192
  border-bottom: 1px solid #e5e5e5;
187
  text-shadow: 0 1px 0 #FFFFFF;
188
  }
189
 
190
+ /* fixes for customizer */
191
+ #customize-theme-controls .ui-tabs ul.ui-tabs-nav li {
192
+ margin: 0 0 -1px 2px;
193
+ }
194
+ #customize-theme-controls .ui-tabs .ui-tabs-nav li a {
195
+ padding: 0 4px;
196
+ }
197
+ #customize-theme-controls .ui-tabs .ui-tabs-nav li.ui-tabs-active {
198
+ border-bottom: 3px solid white !important;
199
+ }
200
+ #customize-theme-controls .ui-tabs .ui-tabs-panel {
201
+ min-width: 440px;
202
+ }
203
+ #available-widgets-list [class*=googlemapswidget] .widget-title:before{
204
+ content: "\f230";
205
+ }
206
+
207
  ul.ui-tabs-nav{
208
  float: left;
209
  border-bottom: 1px solid #e5e5e5;
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.66
8
  Author URI: http://www.webfactoryltd.com/
9
  Text Domain: google-maps-widget
10
  Domain Path: lang
@@ -40,7 +40,7 @@ require_once 'gmw-tracking.php';
40
 
41
 
42
  class GMW {
43
- static $version = '2.66';
44
 
45
  // hook everything up
46
  static function init() {
@@ -487,25 +487,31 @@ class GMW {
487
  // shortcode support for any GMW instance
488
  static function do_shortcode($atts, $content = null) {
489
  if (!self::is_activated()) {
490
- return;
491
  }
492
 
493
  global $wp_widget_factory;
 
494
  $atts = shortcode_atts(array('id' => 0), $atts);
495
  $id = (int) $atts['id'];
496
  $widgets = get_option('widget_googlemapswidget');
497
 
498
- if (!$id || !isset($widgets[$id]) || empty($widgets[$id])) {
499
- echo '<span class="gmw-error">Google Maps Widget shortcode error - please double-check the widget ID.</span>';
500
  } else {
501
  $widget_args = $widgets[$id];
502
  $widget_instance['widget_id'] = 'googlemapswidget-' . $id;
503
  $widget_instance['widget_name'] = 'Google Maps Widget';
504
 
505
- echo '<span class="gmw-shortcode-widget">';
 
506
  the_widget('GoogleMapsWidget', $widget_args, $widget_instance);
507
- echo '</span>';
 
 
508
  }
 
 
509
  } // do_shortcode
510
 
511
 
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.70
8
  Author URI: http://www.webfactoryltd.com/
9
  Text Domain: google-maps-widget
10
  Domain Path: lang
40
 
41
 
42
  class GMW {
43
+ static $version = '2.70';
44
 
45
  // hook everything up
46
  static function init() {
487
  // shortcode support for any GMW instance
488
  static function do_shortcode($atts, $content = null) {
489
  if (!self::is_activated()) {
490
+ return '';
491
  }
492
 
493
  global $wp_widget_factory;
494
+ $out = '';
495
  $atts = shortcode_atts(array('id' => 0), $atts);
496
  $id = (int) $atts['id'];
497
  $widgets = get_option('widget_googlemapswidget');
498
 
499
+ if (!$id || empty($widgets[$id])) {
500
+ $out .= '<span class="gmw-error">Google Maps Widget shortcode error - please double-check the widget ID.</span>';
501
  } else {
502
  $widget_args = $widgets[$id];
503
  $widget_instance['widget_id'] = 'googlemapswidget-' . $id;
504
  $widget_instance['widget_name'] = 'Google Maps Widget';
505
 
506
+ $out .= '<span class="gmw-shortcode-widget">';
507
+ ob_start();
508
  the_widget('GoogleMapsWidget', $widget_args, $widget_instance);
509
+ $out .= ob_get_contents();
510
+ ob_end_clean();
511
+ $out .= '</span>';
512
  }
513
+
514
+ return $out;
515
  } // do_shortcode
516
 
517
 
js/gmw-admin.js CHANGED
@@ -6,7 +6,7 @@
6
 
7
  jQuery(function($) {
8
  // init JS for each active widget
9
- $(".widget-liquid-right [id*='" + gmw.id_base + "'].widget, .inactive-sidebar [id*='" + gmw.id_base + "'].widget").each(function (i, widget) {
10
  gmw_init_widget_ui(widget);
11
  }); // foreach GMW active widget
12
 
6
 
7
  jQuery(function($) {
8
  // init JS for each active widget
9
+ $(".widget-liquid-right [id*='" + gmw.id_base + "'].widget, .inactive-sidebar [id*='" + gmw.id_base + "'].widget, #accordion-panel-widgets [id*='" + gmw.id_base + "'].customize-control-widget_form").each(function (i, widget) {
10
  gmw_init_widget_ui(widget);
11
  }); // foreach GMW active widget
12
 
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: 4.3
9
- Stable tag: 2.66
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
 
@@ -121,7 +121,12 @@ If you can't figure it out open a thread in the support forums.
121
  6. Widget options - info & support
122
 
123
  == Changelog ==
124
- = 2.65 =
 
 
 
 
 
125
  * 2015/10/05
126
  * minor bug fixes
127
  * we'll be soon removing all PO files from the plugin since the strings were merged into the official WP translate project
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.70
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
 
121
  6. Widget options - info & support
122
 
123
  == Changelog ==
124
+ = 2.70 =
125
+ * 2015/10/12
126
+ * fixed a nasty bug with shortcode rendering (thanks Hey You!)
127
+ * JS and CSS fixes for widget UI in the theme customizer
128
+
129
+ = 2.66 =
130
  * 2015/10/05
131
  * minor bug fixes
132
  * we'll be soon removing all PO files from the plugin since the strings were merged into the official WP translate project