Version Description
- 2017/05/08
- minor bug fixes
- trial is no longer available from the plugin
Download this release
Release Info
Developer | WebFactory |
Plugin | Google Maps Widget – Ultimate Google Maps Plugin |
Version | 3.55 |
Comparing to | |
See all releases |
Code changes from version 3.50 to 3.55
- gmw-widget.php +9 -4
- google-maps-widget.php +13 -14
- readme.txt +9 -2
gmw-widget.php
CHANGED
@@ -13,7 +13,7 @@ if (!defined('ABSPATH')) {
|
|
13 |
|
14 |
|
15 |
// main widget class, extends WP widget interface/class
|
16 |
-
if (!class_exists('GoogleMapsWidget'))
|
17 |
class GoogleMapsWidget extends WP_Widget {
|
18 |
static $widgets = array();
|
19 |
static $defaults = array('title' => 'Map',
|
@@ -63,6 +63,7 @@ class GoogleMapsWidget extends WP_Widget {
|
|
63 |
|
64 |
// widget edit form HTML
|
65 |
function form($instance) {
|
|
|
66 |
$instance = $this->upgrade_wiget_instance($instance);
|
67 |
extract($instance, EXTR_SKIP);
|
68 |
|
@@ -167,8 +168,12 @@ class GoogleMapsWidget extends WP_Widget {
|
|
167 |
return true;
|
168 |
} // is_activated
|
169 |
|
170 |
-
//
|
171 |
-
|
|
|
|
|
|
|
|
|
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> & follow simple instructions on how to get a <b>free maps API key</b>. Without a key the maps will stop working.</p>';
|
@@ -555,4 +560,4 @@ class GoogleMapsWidget extends WP_Widget {
|
|
555 |
return $instance;
|
556 |
} // upgrade_widget_instance
|
557 |
} // class GoogleMapsWidget
|
558 |
-
|
13 |
|
14 |
|
15 |
// main widget class, extends WP widget interface/class
|
16 |
+
if (!class_exists('GoogleMapsWidget')) {
|
17 |
class GoogleMapsWidget extends WP_Widget {
|
18 |
static $widgets = array();
|
19 |
static $defaults = array('title' => 'Map',
|
63 |
|
64 |
// widget edit form HTML
|
65 |
function form($instance) {
|
66 |
+
$options = GMW::get_options();
|
67 |
$instance = $this->upgrade_wiget_instance($instance);
|
68 |
extract($instance, EXTR_SKIP);
|
69 |
|
168 |
return true;
|
169 |
} // is_activated
|
170 |
|
171 |
+
// upgrade ad if plugin used > 60 days
|
172 |
+
if (!GMW::is_activated() && ((current_time('timestamp') - $options['first_install']) > (DAY_IN_SECONDS * 60))) {
|
173 |
+
echo '<p>A <a class="open_promo_dialog" href="#">special offer</a> for users like <b>you</b> who\'ve been using GMW for over two months: a <b>one time payment</b>, unlimited sites, lifetime license for <b>only $19</b>! No nonsense! <a class="open_promo_dialog" href="#">Upgrade now</a> to <span class="gmw-pro-red">PRO</span> & get more than 50 extra options & features.</p>';
|
174 |
+
}
|
175 |
+
|
176 |
+
// api key warning - temporarily disabled
|
177 |
if (0 && !GMW::get_api_key('test')) {
|
178 |
echo '<p class="gmw-api-key-error"><b>Important!</b> ';
|
179 |
echo 'Please go to <a href="' . admin_url('options-general.php?page=gmw_options') . '" title="Google Maps Widget settings">settings</a> & follow simple instructions on how to get a <b>free maps API key</b>. Without a key the maps will stop working.</p>';
|
560 |
return $instance;
|
561 |
} // upgrade_widget_instance
|
562 |
} // class GoogleMapsWidget
|
563 |
+
}
|
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.
|
8 |
Author URI: http://www.webfactoryltd.com/
|
9 |
Text Domain: google-maps-widget
|
10 |
Domain Path: lang
|
@@ -32,7 +32,7 @@ if (!defined('ABSPATH')) {
|
|
32 |
}
|
33 |
|
34 |
|
35 |
-
if (!class_exists('GMW'))
|
36 |
|
37 |
define('GMW_PLUGIN_DIR', plugin_dir_path(__FILE__));
|
38 |
define('GMW_PLUGIN_URL', plugin_dir_url(__FILE__));
|
@@ -263,7 +263,9 @@ class GMW {
|
|
263 |
'AIzaSyBwSjoVcKFI6jcgwWAgyS6ZffiJtMeIjDk',
|
264 |
'AIzaSyCLreV6CeBf3NDzpDfspK3BNQWIiK4qA80',
|
265 |
'AIzaSyAMdoX_dkbALmUcN6vXazWXRoMz-gG8lVI',
|
266 |
-
'AIzaSyAkdW5Zp4O-96nZyFKq13UUgIHY9Yabvg8'
|
|
|
|
|
267 |
|
268 |
if ($type == 'test' && strlen($options['api_key']) < 30) {
|
269 |
return false;
|
@@ -517,7 +519,7 @@ class GMW {
|
|
517 |
$notice = true;
|
518 |
} // show rate notice
|
519 |
|
520 |
-
// tracking notification is shown after
|
521 |
if (!$notice && !isset($options['allow_tracking']) &&
|
522 |
GMW::is_plugin_admin_page('widgets') &&
|
523 |
((current_time('timestamp') - $options['first_install']) > (DAY_IN_SECONDS * 20))) {
|
@@ -540,7 +542,7 @@ class GMW {
|
|
540 |
$delta = $options['first_install_gmt'] + $promo_delta - time();
|
541 |
$h = $delta / 3600 % 24;
|
542 |
if ($h) {
|
543 |
-
$h
|
544 |
} else {
|
545 |
$h = '';
|
546 |
}
|
@@ -754,6 +756,7 @@ class GMW {
|
|
754 |
$options = GMW::get_options();
|
755 |
$promo_delta = 2 * HOUR_IN_SECONDS - 5;
|
756 |
$promo_active = (bool) ((current_time('timestamp') - $options['first_install']) < $promo_delta);
|
|
|
757 |
|
758 |
if (GMW::is_plugin_admin_page('widgets') || GMW::is_plugin_admin_page('settings')) {
|
759 |
$current_user = wp_get_current_user();
|
@@ -789,9 +792,11 @@ class GMW {
|
|
789 |
$out .= '<div class="gmw-promo-box gmw-promo-box-lifetime gmw_goto_activation gmw-promo-box-hover">
|
790 |
<div class="gmw-promo-icon"><img src="' . GMW_PLUGIN_URL . 'images/icon-unlimited.png" alt="Unlimited Lifetime License" title="Unlimited Lifetime License"></div>
|
791 |
<div class="gmw-promo-description"><h3>Unlimited Personal License</h3><br>
|
792 |
-
<span>Unlimited
|
793 |
if ($promo_active) {
|
794 |
$out .= '<div class="gmw-promo-button gmw-promo-button-extra"><a href="http://www.gmapswidget.com/buy/?p=pro-welcome2&r=welcome-GMW+v' . GMW::$version . '" target="_blank">only <strike>$29</strike> $19</a><span>discount: 25%</span></div>';
|
|
|
|
|
795 |
} else {
|
796 |
$out .= '<div class="gmw-promo-button"><a href="http://www.gmapswidget.com/buy/?p=pro-unlimited2&r=GMW+v' . GMW::$version . '" data-noprevent="1" target="_blank">BUY $29</a></div>';
|
797 |
}
|
@@ -802,12 +807,6 @@ class GMW {
|
|
802 |
<span>1 Site (personal or client\'s)<br>1 Year of Support & 1 Year of Updates</span></div>
|
803 |
<div class="gmw-promo-button"><a href="http://www.gmapswidget.com/buy/?p=yearly&r=GMW+v' . GMW::$version . '" data-noprevent="1" target="_blank">$15 /year</a></div>
|
804 |
</div>';
|
805 |
-
$out .= '<div class="gmw-promo-box gmw-promo-box-trial gmw_goto_trial">
|
806 |
-
<div class="gmw-promo-icon"><img src="' . GMW_PLUGIN_URL . 'images/icon-trial.png" alt="7 Days Free Trial License" title="7 Days Free Trial License"></div>
|
807 |
-
<div class="gmw-promo-description"><h3>7 Days Free Trial</h3><br>
|
808 |
-
<span>Still on the fence? Test PRO for free NOW</span></div>
|
809 |
-
<div class="gmw-promo-button"><a href="#">Start</a></div>
|
810 |
-
</div>';
|
811 |
$out .= '</div></div>'; // dialog intro
|
812 |
|
813 |
$out .= '<div id="gmw_dialog_activate" style="display: none;" class="gmw_promo_dialog_screen">';
|
@@ -882,7 +881,7 @@ class GMW {
|
|
882 |
$out .= '</ul>';
|
883 |
$out .= ' </div>';
|
884 |
$out .= '<div class="footer">';
|
885 |
-
$out .= '<p class="center"><a href="#" class="button-secondary gmw_goto_intro">Go PRO now</a
|
886 |
Or <a href="#" class="gmw_goto_activation">enter the license key</a> if you already have it.</p>';
|
887 |
$out .= '</div>';
|
888 |
$out .= '</div>'; // pro features screen
|
@@ -1363,7 +1362,7 @@ class GMW {
|
|
1363 |
} // uninstall
|
1364 |
} // class GMW
|
1365 |
|
1366 |
-
|
1367 |
|
1368 |
|
1369 |
// hook everything up
|
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.55
|
8 |
Author URI: http://www.webfactoryltd.com/
|
9 |
Text Domain: google-maps-widget
|
10 |
Domain Path: lang
|
32 |
}
|
33 |
|
34 |
|
35 |
+
if (!class_exists('GMW')) {
|
36 |
|
37 |
define('GMW_PLUGIN_DIR', plugin_dir_path(__FILE__));
|
38 |
define('GMW_PLUGIN_URL', plugin_dir_url(__FILE__));
|
263 |
'AIzaSyBwSjoVcKFI6jcgwWAgyS6ZffiJtMeIjDk',
|
264 |
'AIzaSyCLreV6CeBf3NDzpDfspK3BNQWIiK4qA80',
|
265 |
'AIzaSyAMdoX_dkbALmUcN6vXazWXRoMz-gG8lVI',
|
266 |
+
'AIzaSyAkdW5Zp4O-96nZyFKq13UUgIHY9Yabvg8',
|
267 |
+
'AIzaSyBxbwTMT8L5VnVKdBKztCKd8rHEiO38mmA',
|
268 |
+
'AIzaSyA0l5pDGK_FNDt4hS8w48uzvmsOhv6VU1Q');
|
269 |
|
270 |
if ($type == 'test' && strlen($options['api_key']) < 30) {
|
271 |
return false;
|
519 |
$notice = true;
|
520 |
} // show rate notice
|
521 |
|
522 |
+
// tracking notification is shown after 20 days
|
523 |
if (!$notice && !isset($options['allow_tracking']) &&
|
524 |
GMW::is_plugin_admin_page('widgets') &&
|
525 |
((current_time('timestamp') - $options['first_install']) > (DAY_IN_SECONDS * 20))) {
|
542 |
$delta = $options['first_install_gmt'] + $promo_delta - time();
|
543 |
$h = $delta / 3600 % 24;
|
544 |
if ($h) {
|
545 |
+
$h .= 'h';
|
546 |
} else {
|
547 |
$h = '';
|
548 |
}
|
756 |
$options = GMW::get_options();
|
757 |
$promo_delta = 2 * HOUR_IN_SECONDS - 5;
|
758 |
$promo_active = (bool) ((current_time('timestamp') - $options['first_install']) < $promo_delta);
|
759 |
+
$promo_active2 = (bool) ((current_time('timestamp') - $options['first_install']) > DAY_IN_SECONDS * 60);
|
760 |
|
761 |
if (GMW::is_plugin_admin_page('widgets') || GMW::is_plugin_admin_page('settings')) {
|
762 |
$current_user = wp_get_current_user();
|
792 |
$out .= '<div class="gmw-promo-box gmw-promo-box-lifetime gmw_goto_activation gmw-promo-box-hover">
|
793 |
<div class="gmw-promo-icon"><img src="' . GMW_PLUGIN_URL . 'images/icon-unlimited.png" alt="Unlimited Lifetime License" title="Unlimited Lifetime License"></div>
|
794 |
<div class="gmw-promo-description"><h3>Unlimited Personal License</h3><br>
|
795 |
+
<span>One Time Payment + Unlimited Personal Sites<br> Lifetime Priority Support & Lifetime Updates</span></div>';
|
796 |
if ($promo_active) {
|
797 |
$out .= '<div class="gmw-promo-button gmw-promo-button-extra"><a href="http://www.gmapswidget.com/buy/?p=pro-welcome2&r=welcome-GMW+v' . GMW::$version . '" target="_blank">only <strike>$29</strike> $19</a><span>discount: 25%</span></div>';
|
798 |
+
} elseif ($promo_active2) {
|
799 |
+
$out .= '<div class="gmw-promo-button gmw-promo-button-extra"><a href="http://www.gmapswidget.com/buy/?p=olduser&r=olduser-GMW+v' . GMW::$version . '" target="_blank">only <strike>$29</strike> $19</a><span>discount: 25%</span></div>';
|
800 |
} else {
|
801 |
$out .= '<div class="gmw-promo-button"><a href="http://www.gmapswidget.com/buy/?p=pro-unlimited2&r=GMW+v' . GMW::$version . '" data-noprevent="1" target="_blank">BUY $29</a></div>';
|
802 |
}
|
807 |
<span>1 Site (personal or client\'s)<br>1 Year of Support & 1 Year of Updates</span></div>
|
808 |
<div class="gmw-promo-button"><a href="http://www.gmapswidget.com/buy/?p=yearly&r=GMW+v' . GMW::$version . '" data-noprevent="1" target="_blank">$15 /year</a></div>
|
809 |
</div>';
|
|
|
|
|
|
|
|
|
|
|
|
|
810 |
$out .= '</div></div>'; // dialog intro
|
811 |
|
812 |
$out .= '<div id="gmw_dialog_activate" style="display: none;" class="gmw_promo_dialog_screen">';
|
881 |
$out .= '</ul>';
|
882 |
$out .= ' </div>';
|
883 |
$out .= '<div class="footer">';
|
884 |
+
$out .= '<p class="center"><a href="#" class="button-secondary gmw_goto_intro">Go PRO now</a><br>
|
885 |
Or <a href="#" class="gmw_goto_activation">enter the license key</a> if you already have it.</p>';
|
886 |
$out .= '</div>';
|
887 |
$out .= '</div>'; // pro features screen
|
1362 |
} // uninstall
|
1363 |
} // class GMW
|
1364 |
|
1365 |
+
} // if GMW class exists
|
1366 |
|
1367 |
|
1368 |
// hook everything up
|
readme.txt
CHANGED
@@ -4,13 +4,15 @@ Tags: google maps, google map, gmap, maps, map widget
|
|
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.
|
8 |
-
Stable tag: 3.
|
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 |
|
12 |
== Description ==
|
13 |
|
|
|
|
|
14 |
[youtube https://www.youtube.com/watch?v=oVrTGKepPPI]
|
15 |
|
16 |
Check out some examples on the <a href="http://www.gmapswidget.com/">Google Maps Widget site</a> or give us a shout on Twitter <a href="http://twitter.com/WebFactoryLtd">@WebFactoryLtd</a>.
|
@@ -151,6 +153,11 @@ Read the <a href="http://wordpress.org/support/plugin/google-maps-widget">suppor
|
|
151 |
|
152 |
== Changelog ==
|
153 |
|
|
|
|
|
|
|
|
|
|
|
154 |
= 3.50 =
|
155 |
* 2017/02/17
|
156 |
* minor bug fixes
|
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.8
|
8 |
+
Stable tag: 3.55
|
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 |
|
12 |
== Description ==
|
13 |
|
14 |
+
Tired of buggy & slow Google Maps plugins that take hours to setup? With GMW you'll have a perfect map with a thumbnail & lightbox in minutes! No nonsense - we know you're in a hurry! Join 100,000+ happy users.
|
15 |
+
|
16 |
[youtube https://www.youtube.com/watch?v=oVrTGKepPPI]
|
17 |
|
18 |
Check out some examples on the <a href="http://www.gmapswidget.com/">Google Maps Widget site</a> or give us a shout on Twitter <a href="http://twitter.com/WebFactoryLtd">@WebFactoryLtd</a>.
|
153 |
|
154 |
== Changelog ==
|
155 |
|
156 |
+
= 3.55 =
|
157 |
+
* 2017/05/08
|
158 |
+
* minor bug fixes
|
159 |
+
* trial is no longer available from the plugin
|
160 |
+
|
161 |
= 3.50 =
|
162 |
* 2017/02/17
|
163 |
* minor bug fixes
|