Google Maps Widget – Ultimate Google Maps Plugin - Version 2.65

Version Description

  • 2015/10/05
  • minor bug fixes
  • we'll be soon removing all PO files from the plugin since the strings were merged into the official WP translate project
Download this release

Release Info

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

Code changes from version 2.60 to 2.65

Files changed (3) hide show
  1. gmw-tracking.php +0 -8
  2. google-maps-widget.php +10 -9
  3. readme.txt +6 -1
gmw-tracking.php CHANGED
@@ -15,17 +15,9 @@ if (!defined('ABSPATH')) {
15
  class GMW_tracking {
16
  // set things up
17
  static function init() {
18
- $options = get_option(GMW_OPTIONS);
19
-
20
  self::check_opt_in_out();
21
 
22
- // ask user if he wants to allow tracking
23
- if (is_admin() && !isset($options['allow_tracking'])) {
24
- add_action('admin_notices', array(__CLASS__, 'tracking_notice'));
25
- }
26
-
27
  add_action(GMW_CRON, array(__CLASS__, 'send_data'));
28
- // todo - write this properly, so it doesn't run each time, $force ...
29
  GMW_tracking::setup_cron();
30
  } // init
31
 
15
  class GMW_tracking {
16
  // set things up
17
  static function init() {
 
 
18
  self::check_opt_in_out();
19
 
 
 
 
 
 
20
  add_action(GMW_CRON, array(__CLASS__, 'send_data'));
 
21
  GMW_tracking::setup_cron();
22
  } // init
23
 
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.60
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.60;
44
 
45
  // hook everything up
46
  static function init() {
@@ -238,19 +238,20 @@ class GMW {
238
  $options = get_option(GMW_OPTIONS, array());
239
  $notice = false;
240
 
241
- if ((!isset($options['dismiss_notice_upgrade']) || $options['dismiss_notice_upgrade'] == false) &&
242
- !self::is_activated() &&
243
- (GMW_tracking::count_active_widgets() > 0 || (current_time('timestamp') - $options['first_install']) > (DAY_IN_SECONDS * 3))) {
244
  add_action('admin_notices', array(__CLASS__, 'notice_activate_extra_features'));
245
  $notice = true;
246
  } // show upgrade notice
247
 
248
- if (!$notice &&
249
- (!isset($options['dismiss_notice_rate']) || $options['dismiss_notice_rate'] == false) &&
250
  GMW_tracking::count_active_widgets() > 0 &&
251
- (current_time('timestamp') - $options['first_install']) > (DAY_IN_SECONDS * 20)) {
252
  add_action('admin_notices', array(__CLASS__, 'notice_rate_plugin'));
253
  } // show rate notice
 
 
 
 
254
  } // add_notices
255
 
256
 
@@ -361,7 +362,7 @@ class GMW {
361
  $out .= '<p class="input_row"><input value="' . $name . '" type="text" id="gmw_name" name="gmw_name" placeholder="Your name"><span class="error name" style="display: none;">Please enter your name.</span></p>';
362
  $out .= '<p class="input_row"><input value="' . $current_user->user_email . '" type="text" name="gmw_email" id="gmw_email" placeholder="Your email address"><span style="display: none;" class="error email">Please double check your email address.</span></p>';
363
  $out .= '<p class="center"><a id="gmw_subscribe" href="#" class="button button-primary big-button">Activate extra features</a><br><a href="#" class="" id="gmw_already_subscribed">I already have an activation code</a></p></div>';
364
- $out .= '<div class="footer"><p><b>Why subscribe?</b></p><ul><li>We\'ll never share your email address</li><li>We won\'t spam you or overwhelm with emails</li><li>Be the first to get notified about new features</li><li>You\'ll get all future upgrades for free as well</li><li>You\'ll get discounts for our premium WP plugins</li></ul></div>';
365
  $out .= '</div>'; // dialog subscribe
366
  $out .= '<div id="gmw_dialog_activate"><div class="content"><h3 class="center">' . __('Enter your code and activate extra features', 'google-maps-widget') . '</h3>';
367
  $out .= '<p class="input_row"><input type="text" id="gmw_code" name="gmw_code" placeholder="Your activation code"><span style="display: none;" class="error gmw_code">Please double check the activation code.</span></p><p class="center"><a href="#" class="button button-primary big-button" id="gmw_activate">Activate extra features</a></p></div>';
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.65
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.65';
44
 
45
  // hook everything up
46
  static function init() {
238
  $options = get_option(GMW_OPTIONS, array());
239
  $notice = false;
240
 
241
+ if (empty($options['dismiss_notice_upgrade']) && !self::is_activated()) {
 
 
242
  add_action('admin_notices', array(__CLASS__, 'notice_activate_extra_features'));
243
  $notice = true;
244
  } // show upgrade notice
245
 
246
+ if (!$notice && empty($options['dismiss_notice_rate']) &&
 
247
  GMW_tracking::count_active_widgets() > 0 &&
248
+ (current_time('timestamp') - $options['first_install']) > (DAY_IN_SECONDS * 3)) {
249
  add_action('admin_notices', array(__CLASS__, 'notice_rate_plugin'));
250
  } // show rate notice
251
+
252
+ if (!$notice && !isset($options['allow_tracking']) && ((current_time('timestamp') - $options['first_install']) > (DAY_IN_SECONDS * 7))) {
253
+ add_action('admin_notices', array('GMW_tracking', 'tracking_notice'));
254
+ } // show tracking notice
255
  } // add_notices
256
 
257
 
362
  $out .= '<p class="input_row"><input value="' . $name . '" type="text" id="gmw_name" name="gmw_name" placeholder="Your name"><span class="error name" style="display: none;">Please enter your name.</span></p>';
363
  $out .= '<p class="input_row"><input value="' . $current_user->user_email . '" type="text" name="gmw_email" id="gmw_email" placeholder="Your email address"><span style="display: none;" class="error email">Please double check your email address.</span></p>';
364
  $out .= '<p class="center"><a id="gmw_subscribe" href="#" class="button button-primary big-button">Activate extra features</a><br><a href="#" class="" id="gmw_already_subscribed">I already have an activation code</a></p></div>';
365
+ $out .= '<div class="footer"><p><b>Still not sure?</b></p><ul><li>We\'ll never share your email address</li><li>We won\'t spam you or overwhelm with emails</li><li>Be the first to get notified about new features</li><li>You\'ll get discounts for our premium WP plugins</li></ul></div>';
366
  $out .= '</div>'; // dialog subscribe
367
  $out .= '<div id="gmw_dialog_activate"><div class="content"><h3 class="center">' . __('Enter your code and activate extra features', 'google-maps-widget') . '</h3>';
368
  $out .= '<p class="input_row"><input type="text" id="gmw_code" name="gmw_code" placeholder="Your activation code"><span style="display: none;" class="error gmw_code">Please double check the activation code.</span></p><p class="center"><a href="#" class="button button-primary big-button" id="gmw_activate">Activate extra features</a></p></div>';
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.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
 
@@ -121,6 +121,11 @@ 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.60 =
125
  * 2015/08/31
126
  * added data validation on input fields
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.65
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.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
128
+
129
  = 2.60 =
130
  * 2015/08/31
131
  * added data validation on input fields