Version Description
- 2015/07/27
- updated PHP4 style class constructor to PHP5 one
- lowered cron for tracking to once every 14 days
- did some prep work for the upcoming 4.3 version of WP
Download this release
Release Info
Developer | WebFactory |
Plugin | Google Maps Widget – Ultimate Google Maps Plugin |
Version | 2.50 |
Comparing to | |
See all releases |
Code changes from version 2.45 to 2.50
- gmw-tracking.php +4 -1
- gmw-widget.php +2 -2
- google-maps-widget.php +3 -3
- readme.txt +7 -1
gmw-tracking.php
CHANGED
@@ -35,6 +35,9 @@ class GMW_tracking {
|
|
35 |
$schedules['gmw_weekly'] = array(
|
36 |
'interval' => DAY_IN_SECONDS * 7,
|
37 |
'display' => 'Once a Week');
|
|
|
|
|
|
|
38 |
|
39 |
return $schedules;
|
40 |
} // cron_intervals
|
@@ -52,7 +55,7 @@ class GMW_tracking {
|
|
52 |
|
53 |
if (isset($options['allow_tracking']) && $options['allow_tracking'] === true) {
|
54 |
if (!wp_next_scheduled(GMW_CRON)) {
|
55 |
-
wp_schedule_event(time() + 300, '
|
56 |
}
|
57 |
} else {
|
58 |
self::clear_cron();
|
35 |
$schedules['gmw_weekly'] = array(
|
36 |
'interval' => DAY_IN_SECONDS * 7,
|
37 |
'display' => 'Once a Week');
|
38 |
+
$schedules['gmw_biweekly'] = array(
|
39 |
+
'interval' => DAY_IN_SECONDS * 14,
|
40 |
+
'display' => 'Once every two Weeks');
|
41 |
|
42 |
return $schedules;
|
43 |
} // cron_intervals
|
55 |
|
56 |
if (isset($options['allow_tracking']) && $options['allow_tracking'] === true) {
|
57 |
if (!wp_next_scheduled(GMW_CRON)) {
|
58 |
+
wp_schedule_event(time() + 300, 'gmw_biweekly', GMW_CRON);
|
59 |
}
|
60 |
} else {
|
61 |
self::clear_cron();
|
gmw-widget.php
CHANGED
@@ -21,7 +21,7 @@ class GoogleMapsWidget extends WP_Widget {
|
|
21 |
function GoogleMapsWidget() {
|
22 |
$widget_ops = array('classname' => 'google-maps-widget', 'description' => __('Displays a map image thumbnail with a larger map available in a lightbox.', 'google-maps-widget'));
|
23 |
$control_ops = array('width' => 450, 'height' => 350);
|
24 |
-
|
25 |
} // GoogleMapsWidget
|
26 |
|
27 |
|
@@ -235,7 +235,7 @@ class GoogleMapsWidget extends WP_Widget {
|
|
235 |
$id = str_replace('googlemapswidget-', '', $this->id);
|
236 |
|
237 |
if (!$id || !is_numeric($id)) {
|
238 |
-
echo __('Please save the widget so that the shortcode can be generated.', 'google-maps-widget');
|
239 |
} else {
|
240 |
echo '<p><code>[gmw id="' . $id . '"]</code><br></p>';
|
241 |
echo '<p>' . __('Use the above shortcode to display this Google Maps Widget instance in any page or post. <br>Please note that your theme might style the widget in the post as if it is placed in a sidebar. In that case use the <code>span.gmw-shortcode-widget</code> class to target the shortcode and make necessary changes via CSS.', 'google-maps-widget') . '</p>';
|
21 |
function GoogleMapsWidget() {
|
22 |
$widget_ops = array('classname' => 'google-maps-widget', 'description' => __('Displays a map image thumbnail with a larger map available in a lightbox.', 'google-maps-widget'));
|
23 |
$control_ops = array('width' => 450, 'height' => 350);
|
24 |
+
parent::__construct('GoogleMapsWidget', __('Google Maps Widget', 'google-maps-widget'), $widget_ops, $control_ops);
|
25 |
} // GoogleMapsWidget
|
26 |
|
27 |
|
235 |
$id = str_replace('googlemapswidget-', '', $this->id);
|
236 |
|
237 |
if (!$id || !is_numeric($id)) {
|
238 |
+
echo '<p>' . __('Please save the widget so that the shortcode can be generated.', 'google-maps-widget') . '</p>';
|
239 |
} else {
|
240 |
echo '<p><code>[gmw id="' . $id . '"]</code><br></p>';
|
241 |
echo '<p>' . __('Use the above shortcode to display this Google Maps Widget instance in any page or post. <br>Please note that your theme might style the widget in the post as if it is placed in a sidebar. In that case use the <code>span.gmw-shortcode-widget</code> class to target the shortcode and make necessary changes via CSS.', 'google-maps-widget') . '</p>';
|
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.
|
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.
|
44 |
|
45 |
// hook everything up
|
46 |
static function init() {
|
@@ -365,7 +365,7 @@ class GMW {
|
|
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>';
|
368 |
-
$out .= '<div class="footer"><p><b>FAQ</b></p><ul><li>Already subscribed? Enter your activation code above.</li><li>Didn\'t receive the email? Check your SPAM folder.</li><li>
|
369 |
$out .= '</div>'; // activate screen
|
370 |
$out .= '</div>'; // dialog
|
371 |
|
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.50
|
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.50;
|
44 |
|
45 |
// hook everything up
|
46 |
static function init() {
|
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>';
|
368 |
+
$out .= '<div class="footer"><p><b>FAQ</b></p><ul><li>Already subscribed? Enter your activation code above.</li><li>Didn\'t receive the email? Check your SPAM folder.</li><li>Still not getting the email? Try a different email address.</li><li>Code is valid for an unlimited number of plugin installations.</li></ul></div>';
|
369 |
$out .= '</div>'; // activate screen
|
370 |
$out .= '</div>'; // dialog
|
371 |
|
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.2
|
9 |
-
Stable tag: 2.
|
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,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.45 =
|
125 |
* 2015/06/15
|
126 |
* fixed a bug on notice dismiss action
|
6 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
7 |
Requires at least: 3.3
|
8 |
Tested up to: 4.2
|
9 |
+
Stable tag: 2.50
|
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.50 =
|
125 |
+
* 2015/07/27
|
126 |
+
* updated PHP4 style class constructor to PHP5 one
|
127 |
+
* lowered cron for tracking to once every 14 days
|
128 |
+
* did some prep work for the upcoming 4.3 version of WP
|
129 |
+
|
130 |
= 2.45 =
|
131 |
* 2015/06/15
|
132 |
* fixed a bug on notice dismiss action
|