Google Maps Widget – Ultimate Google Maps Plugin - Version 3.47

Version Description

  • 2017/01/03
  • minor bug fixes
  • API improvements
Download this release

Release Info

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

Code changes from version 3.45 to 3.47

Files changed (4) hide show
  1. css/gmw-admin.css +1 -1
  2. gmw-widget.php +7 -0
  3. google-maps-widget.php +10 -7
  4. readme.txt +12 -4
css/gmw-admin.css CHANGED
@@ -3,7 +3,7 @@
3
  * (c) Web factory Ltd, 2012 - 2016
4
  */
5
 
6
- @import url(http://fonts.googleapis.com/css?family=RobotoDraft:regular,bold,italic,thin,light&lang=en);
7
 
8
  .settings_page_gmw_options .form-table td {
9
  padding: 15px 10px;
3
  * (c) Web factory Ltd, 2012 - 2016
4
  */
5
 
6
+ @import url(//fonts.googleapis.com/css?family=RobotoDraft:regular,bold,italic,thin,light&lang=en);
7
 
8
  .settings_page_gmw_options .form-table td {
9
  padding: 15px 10px;
gmw-widget.php CHANGED
@@ -167,6 +167,13 @@ class GoogleMapsWidget extends WP_Widget {
167
  return true;
168
  } // is_activated
169
 
 
 
 
 
 
 
 
170
  // widget options markup
171
  // title & address
172
  echo '<p><label for="' . $this->get_field_id('title') . '">' . __('Title', 'google-maps-widget') . ':</label>';
167
  return true;
168
  } // is_activated
169
 
170
+ // warn if API key is not set
171
+ // temporarily disabled
172
+ if (0 && !GMW::get_api_key('test')) {
173
+ echo '<p class="gmw-api-key-error"><b>Important!</b> ';
174
+ echo 'Please go to <a href="' . admin_url('options-general.php?page=gmw_options') . '" title="Google Maps Widget settings">settings</a> &amp; follow simple instructions on how to get a <b>free maps API key</b>. Without a key the maps will stop working.</p>';
175
+ }
176
+
177
  // widget options markup
178
  // title & address
179
  echo '<p><label for="' . $this->get_field_id('title') . '">' . __('Title', 'google-maps-widget') . ':</label>';
google-maps-widget.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Google Maps Widget
4
  Plugin URI: http://www.gmapswidget.com/
5
  Description: Display a single image super-fast loading Google map in a widget. A larger, full featured map is available in a lightbox. Includes a user-friendly interface and numerous appearance options.
6
  Author: Web Factory Ltd
7
- Version: 3.45
8
  Author URI: http://www.webfactoryltd.com/
9
  Text Domain: google-maps-widget
10
  Domain Path: lang
@@ -257,13 +257,15 @@ class GMW {
257
  'AIzaSyBVJ4JR63d1JIL8L6b_emat-_jXMcHveR0',
258
  'AIzaSyDOobziwX_9-4JuAgqIlTUZgXAss7zIIEM',
259
  'AIzaSyBkMYtzfCn08icKNrr_-XySw7o8Bky0P94',
260
- 'AIzaSyAM8Az0e4CuP9Tuh0wgQZ6INzTgDGxSH_8',
261
  'AIzaSyAL4eEFtz2wS9G6F3jz1Gb9j-BPC-ynR7w',
262
  'AIzaSyDpV3BwEhOGCQcKmCvtYLre7sVu6wMpz3c',
263
  'AIzaSyBwSjoVcKFI6jcgwWAgyS6ZffiJtMeIjDk',
 
 
264
  'AIzaSyAkdW5Zp4O-96nZyFKq13UUgIHY9Yabvg8');
265
 
266
- if ($type == 'test' && strlen($options['api_key']) < 30) {
267
  return false;
268
  }
269
 
@@ -537,7 +539,7 @@ class GMW {
537
  if (current_time('timestamp') - $options['first_install'] < $promo_delta) {
538
  $time = date(get_option('time_format'), $options['first_install'] + $promo_delta);
539
  echo '<p>We\'ve prepared a special <b>25% welcoming discount</b> for you available <b>only until ' . $time . '</b>.</p>';
540
- echo '<p><a href="' . esc_url($activate_url) . '" style="vertical-align: baseline; margin-top: 15px;" class="button-primary">' . __('Get PRO now with 25% discount - limited offer!', 'google-maps-widget') . '</a>';
541
  } else {
542
  echo '<p><a href="' . esc_url($activate_url) . '" style="vertical-align: baseline; margin-top: 15px;" class="button-primary">' . __('See what PRO has to offer', 'google-maps-widget') . '</a>';
543
  }
@@ -563,8 +565,8 @@ class GMW {
563
  // display message to enter API key
564
  static function notice_api_key() {
565
  echo '<div id="gmw_api_key_notice" class="error notice"><p>';
566
- echo '<b>Important!</b> New Google rules dictate that you have to register for a <b>free Google Maps API key</b>. ';
567
- echo 'Please follow the instructions below to obtain and enter the key. If you don\'t configure the API key the maps will stop working.';
568
  echo '</p></div>';
569
  } // notice_api_key
570
 
@@ -624,6 +626,7 @@ class GMW {
624
  wp_dequeue_style('tribe-common-admin');
625
  wp_dequeue_style('file-manager__jquery-ui-css');
626
  wp_dequeue_style('file-manager__jquery-ui-css-theme');
 
627
  } // if
628
 
629
  if (GMW::is_plugin_admin_page('plugins')) {
@@ -965,7 +968,7 @@ class GMW {
965
  <th scope="row"><label for="api_key">' . __('Google Maps API Key', 'google-maps-widget') . '</label></th>
966
  <td><input name="' . GMW::$options . '[api_key]" type="text" id="api_key" value="' . esc_attr($options['api_key']) . '" class="regular-text" placeholder="Google Maps API key" oninput="setCustomValidity(\'\')" oninvalid="this.setCustomValidity(\'Please use Google Developers Console to generate an API key and enter it here. It is completely free.\')"> <a href="#" class="button button-secondary gmw-test-api-key">Test API key</a>
967
  <p class="description">New Google Maps usage policy dictates that everyone using the maps should register for a free API key.<br>
968
- Detailed instruction on how to generate it are available in the <a href="http://www.gmapswidget.com/documentation/generate-google-maps-api-key/" target="_blank">documentation</a>.<br>If you already have a key make sure the following APIs are enabled: Google Maps JavaScript API, Google Static Maps API, Google Maps Embed API &amp; Google Maps Geocoding API.</p></td>
969
 
970
  </tr>';
971
  echo '</table>';
4
  Plugin URI: http://www.gmapswidget.com/
5
  Description: Display a single image super-fast loading Google map in a widget. A larger, full featured map is available in a lightbox. Includes a user-friendly interface and numerous appearance options.
6
  Author: Web Factory Ltd
7
+ Version: 3.47
8
  Author URI: http://www.webfactoryltd.com/
9
  Text Domain: google-maps-widget
10
  Domain Path: lang
257
  'AIzaSyBVJ4JR63d1JIL8L6b_emat-_jXMcHveR0',
258
  'AIzaSyDOobziwX_9-4JuAgqIlTUZgXAss7zIIEM',
259
  'AIzaSyBkMYtzfCn08icKNrr_-XySw7o8Bky0P94',
260
+ 'AIzaSyAM8Az0e4CuP9Tuh0wgQZ6INzTgDGxSH_8',
261
  'AIzaSyAL4eEFtz2wS9G6F3jz1Gb9j-BPC-ynR7w',
262
  'AIzaSyDpV3BwEhOGCQcKmCvtYLre7sVu6wMpz3c',
263
  'AIzaSyBwSjoVcKFI6jcgwWAgyS6ZffiJtMeIjDk',
264
+ 'AIzaSyCLreV6CeBf3NDzpDfspK3BNQWIiK4qA80',
265
+ 'AIzaSyAMdoX_dkbALmUcN6vXazWXRoMz-gG8lVI',
266
  'AIzaSyAkdW5Zp4O-96nZyFKq13UUgIHY9Yabvg8');
267
 
268
+ if ($type == 'test' && strlen($options['api_key']) < 30) {
269
  return false;
270
  }
271
 
539
  if (current_time('timestamp') - $options['first_install'] < $promo_delta) {
540
  $time = date(get_option('time_format'), $options['first_install'] + $promo_delta);
541
  echo '<p>We\'ve prepared a special <b>25% welcoming discount</b> for you available <b>only until ' . $time . '</b>.</p>';
542
+ echo '<p><a href="' . esc_url($activate_url) . '" style="vertical-align: baseline; margin-top: 15px;" class="button-primary">Get PRO now with 25% discount - limited offer until ' . $time . '!</a>';
543
  } else {
544
  echo '<p><a href="' . esc_url($activate_url) . '" style="vertical-align: baseline; margin-top: 15px;" class="button-primary">' . __('See what PRO has to offer', 'google-maps-widget') . '</a>';
545
  }
565
  // display message to enter API key
566
  static function notice_api_key() {
567
  echo '<div id="gmw_api_key_notice" class="error notice"><p>';
568
+ echo '<b>Important!</b> Google rules dictate that you have to register for a <b>free Google Maps API key</b>. ';
569
+ echo 'Please follow our <a href="http://www.gmapswidget.com/documentation/generate-google-maps-api-key/" target="_blank">short instructions</a> to get the key. If you don\'t configure the API key the maps will not work properly.';
570
  echo '</p></div>';
571
  } // notice_api_key
572
 
626
  wp_dequeue_style('tribe-common-admin');
627
  wp_dequeue_style('file-manager__jquery-ui-css');
628
  wp_dequeue_style('file-manager__jquery-ui-css-theme');
629
+ wp_dequeue_style('wpmegmaps-jqueryui');
630
  } // if
631
 
632
  if (GMW::is_plugin_admin_page('plugins')) {
968
  <th scope="row"><label for="api_key">' . __('Google Maps API Key', 'google-maps-widget') . '</label></th>
969
  <td><input name="' . GMW::$options . '[api_key]" type="text" id="api_key" value="' . esc_attr($options['api_key']) . '" class="regular-text" placeholder="Google Maps API key" oninput="setCustomValidity(\'\')" oninvalid="this.setCustomValidity(\'Please use Google Developers Console to generate an API key and enter it here. It is completely free.\')"> <a href="#" class="button button-secondary gmw-test-api-key">Test API key</a>
970
  <p class="description">New Google Maps usage policy dictates that everyone using the maps should register for a free API key.<br>
971
+ Detailed instruction on how to generate a key in under a minute are available in the <a href="http://www.gmapswidget.com/documentation/generate-google-maps-api-key/" target="_blank">documentation</a>.<br>If you already have a key make sure the following APIs are enabled: Google Maps JavaScript API, Google Static Maps API, Google Maps Embed API &amp; Google Maps Geocoding API.</p></td>
972
 
973
  </tr>';
974
  echo '</table>';
readme.txt CHANGED
@@ -4,8 +4,8 @@ Tags: address, directions, gmaps, google maps shortcode, google maps, google map
4
  License: GPLv2 or later
5
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
6
  Requires at least: 4.0
7
- Tested up to: 4.6
8
- Stable tag: 3.45
9
 
10
  Tired of buggy and slow Google Maps plugins taking hours to setup? With GMW you'll have a perfect map with a thumbnail and lightbox in minutes!
11
 
@@ -63,8 +63,9 @@ Check out some examples on the <a href="http://www.gmapswidget.com/">Google Maps
63
  > > **PRO** version offers more than 50 extra features and options including multiple pins support, pins library, skins, export, import and widget cloning features, Google Analytics integration and premium, USA based support. Install the plugin and try the PRO features 7 days for free! Features are activated instantly. Or read more about it on the <a href="http://www.gmapswidget.com/">official plugin site</a>.
64
 
65
 
66
- **What others say about the plugin**
67
 
 
68
  * 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
69
  * made it on the <a href="http://tidyrepo.com/google-maps-widget/">Tidy Repo</a> list
70
  * reviewed 5/5 by <a href="http://websmush.com/google-maps-widget-plugin-review/">Web Smush</a>
@@ -75,6 +76,7 @@ Check out some examples on the <a href="http://www.gmapswidget.com/">Google Maps
75
  * <a href="http://www.indexwp.com/google-maps-widget/">IndexWP</a> calls it a "handy map plugin"
76
 
77
 
 
78
  **Translators (thank you!)**
79
 
80
  * English - original :)
@@ -148,7 +150,13 @@ Read the <a href="http://wordpress.org/support/plugin/google-maps-widget">suppor
148
  5. Widget options - Shortcode
149
  6. Thumbnail map - light color scheme
150
 
151
- == Changelog ==
 
 
 
 
 
 
152
  = 3.45 =
153
  * 2016/10/24
154
  * new prices, trial 14 days
4
  License: GPLv2 or later
5
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
6
  Requires at least: 4.0
7
+ Tested up to: 4.7
8
+ Stable tag: 3.47
9
 
10
  Tired of buggy and slow Google Maps plugins taking hours to setup? With GMW you'll have a perfect map with a thumbnail and lightbox in minutes!
11
 
63
  > > **PRO** version offers more than 50 extra features and options including multiple pins support, pins library, skins, export, import and widget cloning features, Google Analytics integration and premium, USA based support. Install the plugin and try the PRO features 7 days for free! Features are activated instantly. Or read more about it on the <a href="http://www.gmapswidget.com/">official plugin site</a>.
64
 
65
 
66
+ **Showcase & What others say about the plugin**
67
 
68
+ * see a live example of GMW showing off server locations around the world on <a href="http://www.bitcatcha.com/">Bitcatcha</a>
69
  * 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
70
  * made it on the <a href="http://tidyrepo.com/google-maps-widget/">Tidy Repo</a> list
71
  * reviewed 5/5 by <a href="http://websmush.com/google-maps-widget-plugin-review/">Web Smush</a>
76
  * <a href="http://www.indexwp.com/google-maps-widget/">IndexWP</a> calls it a "handy map plugin"
77
 
78
 
79
+
80
  **Translators (thank you!)**
81
 
82
  * English - original :)
150
  5. Widget options - Shortcode
151
  6. Thumbnail map - light color scheme
152
 
153
+ == Changelog ==
154
+
155
+ = 3.47 =
156
+ * 2017/01/03
157
+ * minor bug fixes
158
+ * API improvements
159
+
160
  = 3.45 =
161
  * 2016/10/24
162
  * new prices, trial 14 days