Google Maps Widget – Ultimate Google Maps Plugin - Version 1.60

Version Description

  • 2014/04/17
  • update for WordPress v3.9, widget edit GUI now works in theme customizer
  • if you run into any issues please report them in the support forums
Download this release

Release Info

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

Code changes from version 1.56 to 1.60

Files changed (3) hide show
  1. css/gmw-admin.css +6 -1
  2. google-maps-widget.php +8 -4
  3. readme.txt +7 -2
css/gmw-admin.css CHANGED
@@ -1,6 +1,6 @@
1
  /*
2
  * Google Maps Widget
3
- * (c) Web factory Ltd, 2012
4
  */
5
 
6
  .gmw-label {
@@ -12,6 +12,11 @@
12
  border-bottom: 1px solid #CCCCCC !important;
13
  }
14
 
 
 
 
 
 
15
  /*
16
  * jQuery UI Tabs 1.8.14
17
  *
1
  /*
2
  * Google Maps Widget
3
+ * (c) Web factory Ltd, 2012 - 2014
4
  */
5
 
6
  .gmw-label {
12
  border-bottom: 1px solid #CCCCCC !important;
13
  }
14
 
15
+ .gmw-tabs input.small-text {
16
+ width: 50px;
17
+ padding: 1px 6px;
18
+ }
19
+
20
  /*
21
  * jQuery UI Tabs 1.8.14
22
  *
google-maps-widget.php CHANGED
@@ -4,12 +4,12 @@ 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.56
8
  Author URI: http://www.webfactoryltd.com/
9
  Text Domain: google-maps-widget
10
  Domain Path: lang
11
 
12
- Copyright 2012 - 2014 Web factory Ltd (email : info@webfactoryltd.com)
13
 
14
  This program is free software; you can redistribute it and/or modify
15
  it under the terms of the GNU General Public License, version 2, as
@@ -31,10 +31,11 @@ if (!defined('ABSPATH')) {
31
  }
32
 
33
 
34
- define('GMW_VER', '1.56');
35
  define('GMW_OPTIONS', 'gmw_options');
36
  define('GMW_CRON', 'gmw_cron');
37
 
 
38
  require_once 'gmw-widget.php';
39
  require_once 'gmw-tracking.php';
40
 
@@ -57,6 +58,7 @@ class GMW {
57
 
58
  // enqueue admin scripts
59
  add_action('admin_enqueue_scripts', array(__CLASS__, 'admin_enqueue_scripts'));
 
60
  } else {
61
  // enqueue frontend scripts
62
  add_action('wp_enqueue_scripts', array(__CLASS__, 'enqueue_scripts'));
@@ -176,7 +178,9 @@ class GMW {
176
 
177
  // enqueue CSS and JS scripts on widgets page
178
  static function admin_enqueue_scripts() {
179
- if (self::is_plugin_admin_page()) {
 
 
180
  wp_enqueue_script('jquery-ui-tabs');
181
  wp_enqueue_script('gmw-cookie', plugins_url('js/jquery.cookie.js', __FILE__), array('jquery'), GMW_VER, true);
182
  wp_enqueue_script('gmw-admin', plugins_url('js/gmw-admin.js', __FILE__), array('jquery'), GMW_VER, true);
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.60
8
  Author URI: http://www.webfactoryltd.com/
9
  Text Domain: google-maps-widget
10
  Domain Path: lang
11
 
12
+ Copyright 2012 - 2014 Web factory Ltd (email : gmw@webfactoryltd.com)
13
 
14
  This program is free software; you can redistribute it and/or modify
15
  it under the terms of the GNU General Public License, version 2, as
31
  }
32
 
33
 
34
+ define('GMW_VER', '1.60');
35
  define('GMW_OPTIONS', 'gmw_options');
36
  define('GMW_CRON', 'gmw_cron');
37
 
38
+
39
  require_once 'gmw-widget.php';
40
  require_once 'gmw-tracking.php';
41
 
58
 
59
  // enqueue admin scripts
60
  add_action('admin_enqueue_scripts', array(__CLASS__, 'admin_enqueue_scripts'));
61
+ add_action('customize_controls_enqueue_scripts', array(__CLASS__, 'admin_enqueue_scripts'));
62
  } else {
63
  // enqueue frontend scripts
64
  add_action('wp_enqueue_scripts', array(__CLASS__, 'enqueue_scripts'));
178
 
179
  // enqueue CSS and JS scripts on widgets page
180
  static function admin_enqueue_scripts() {
181
+ global $wp_customize;
182
+
183
+ if (self::is_plugin_admin_page() || isset($wp_customize)) {
184
  wp_enqueue_script('jquery-ui-tabs');
185
  wp_enqueue_script('gmw-cookie', plugins_url('js/jquery.cookie.js', __FILE__), array('jquery'), GMW_VER, true);
186
  wp_enqueue_script('gmw-admin', plugins_url('js/gmw-admin.js', __FILE__), array('jquery'), GMW_VER, true);
readme.txt CHANGED
@@ -5,8 +5,8 @@ Tags: google maps, maps, gmaps, widget, lightbox, map, google map, fancybox, fan
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.8.2
9
- Stable tag: 1.56
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
 
@@ -100,6 +100,11 @@ If you can figure it out open a thread in the support forums.
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
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.9
9
+ Stable tag: 1.60
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
 
100
  4. Widget options - lightbox map
101
 
102
  == Changelog ==
103
+ = 1.60 =
104
+ * 2014/04/17
105
+ * update for WordPress v3.9, widget edit GUI now works in theme customizer
106
+ * if you run into any issues please report them in the support forums
107
+
108
  = 1.55 =
109
  * 2014/04/07
110
  * fixed shortcode handling in map's header & footer