Version Description
- 2017/01/16
- minor bug fixes
Download this release
Release Info
| Developer | WebFactory |
| Plugin | |
| Version | 3.49 |
| Comparing to | |
| See all releases | |
Code changes from version 3.47 to 3.49
- css/gmw-admin.css +22 -0
- google-maps-widget.php +25 -17
- js/gmw-admin.js +47 -0
- readme.txt +5 -2
css/gmw-admin.css
CHANGED
|
@@ -43,6 +43,10 @@
|
|
| 43 |
display: inline-block;
|
| 44 |
}
|
| 45 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 46 |
.control-panel-widgets span.label-holder {
|
| 47 |
}
|
| 48 |
|
|
@@ -70,6 +74,11 @@
|
|
| 70 |
border-radius: 0;
|
| 71 |
}
|
| 72 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 73 |
.gmw-tabs .select2-container--default .select2-selection--multiple ul {
|
| 74 |
margin-bottom: -5px;
|
| 75 |
}
|
|
@@ -1037,4 +1046,17 @@ table.disabled, h3.disabled {
|
|
| 1037 |
.gmw-promo-box strike {
|
| 1038 |
font-weight: normal;
|
| 1039 |
font-size: 17px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1040 |
}
|
| 43 |
display: inline-block;
|
| 44 |
}
|
| 45 |
|
| 46 |
+
#gmw_activate_notice b {
|
| 47 |
+
font-weight: bold;
|
| 48 |
+
}
|
| 49 |
+
|
| 50 |
.control-panel-widgets span.label-holder {
|
| 51 |
}
|
| 52 |
|
| 74 |
border-radius: 0;
|
| 75 |
}
|
| 76 |
|
| 77 |
+
.select2-container .select2-search__field:not([placeholder='']) {
|
| 78 |
+
width: 100% !important;
|
| 79 |
+
margin-right: 100000px;
|
| 80 |
+
}
|
| 81 |
+
|
| 82 |
.gmw-tabs .select2-container--default .select2-selection--multiple ul {
|
| 83 |
margin-bottom: -5px;
|
| 84 |
}
|
| 1046 |
.gmw-promo-box strike {
|
| 1047 |
font-weight: normal;
|
| 1048 |
font-size: 17px;
|
| 1049 |
+
}
|
| 1050 |
+
|
| 1051 |
+
@media screen and (max-width: 782px) {
|
| 1052 |
+
.gmw-label.label-holder {
|
| 1053 |
+
display: none;
|
| 1054 |
+
}
|
| 1055 |
+
|
| 1056 |
+
.ui-tabs .ui-tabs-nav li a {
|
| 1057 |
+
padding: 0 2px;
|
| 1058 |
+
}
|
| 1059 |
+
.ui-tabs ul.ui-tabs-nav li {
|
| 1060 |
+
margin: 0;
|
| 1061 |
+
}
|
| 1062 |
}
|
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
|
|
@@ -529,17 +529,24 @@ class GMW {
|
|
| 529 |
|
| 530 |
// display message to get pro features for GMW
|
| 531 |
static function notice_upgrade() {
|
| 532 |
-
$promo_delta = 2 * HOUR_IN_SECONDS;
|
| 533 |
$options = GMW::get_options();
|
| 534 |
$activate_url = admin_url('options-general.php?page=gmw_options&gmw_open_promo_dialog');
|
| 535 |
$dismiss_url = add_query_arg(array('action' => 'gmw_dismiss_notice', 'notice' => 'upgrade', 'redirect' => urlencode($_SERVER['REQUEST_URI'])), admin_url('admin.php'));
|
| 536 |
|
| 537 |
echo '<div id="gmw_activate_notice" class="updated notice"><p>' . __('<b>Google Maps Widget <span style="color: #d54e21;">PRO</span></b> has more than 50 extra features & options. Our support is super fast & friendly and with the unlimited license you can install GMW on as many sites as you need.</p>', 'google-maps-widget');
|
| 538 |
-
|
| 539 |
if (current_time('timestamp') - $options['first_install'] < $promo_delta) {
|
| 540 |
-
$
|
| 541 |
-
|
| 542 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
}
|
|
@@ -745,7 +752,7 @@ class GMW {
|
|
| 745 |
static function admin_dialogs_markup() {
|
| 746 |
$out = '';
|
| 747 |
$options = GMW::get_options();
|
| 748 |
-
$promo_delta =
|
| 749 |
$promo_active = (bool) ((current_time('timestamp') - $options['first_install']) < $promo_delta);
|
| 750 |
|
| 751 |
if (GMW::is_plugin_admin_page('widgets') || GMW::is_plugin_admin_page('settings')) {
|
|
@@ -762,8 +769,10 @@ class GMW {
|
|
| 762 |
<div class="content">
|
| 763 |
<div class="header"><p><a href="#" class="gmw_goto_pro">Learn more</a> about <span class="gmw-pro">PRO</span> features or <a href="#" class="gmw_goto_activation">enter your license key</a></p>';
|
| 764 |
if ($promo_active) {
|
| 765 |
-
$
|
| 766 |
-
$
|
|
|
|
|
|
|
| 767 |
}
|
| 768 |
$out .= '</div>'; // header
|
| 769 |
|
|
@@ -794,8 +803,8 @@ class GMW {
|
|
| 794 |
<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>
|
| 795 |
</div>';
|
| 796 |
$out .= '<div class="gmw-promo-box gmw-promo-box-trial gmw_goto_trial">
|
| 797 |
-
<div class="gmw-promo-icon"><img src="' . GMW_PLUGIN_URL . 'images/icon-trial.png" alt="
|
| 798 |
-
<div class="gmw-promo-description"><h3>
|
| 799 |
<span>Still on the fence? Test PRO for free NOW</span></div>
|
| 800 |
<div class="gmw-promo-button"><a href="#">Start</a></div>
|
| 801 |
</div>';
|
|
@@ -896,7 +905,7 @@ class GMW {
|
|
| 896 |
<span style="display: none;" class="error email">Please double check your email address.</span>
|
| 897 |
</p>';
|
| 898 |
$out .= '<p class="center">
|
| 899 |
-
<a id="gmw_start_trial" href="#" class="button button-primary">Start my
|
| 900 |
<p class="center">Or <a href="#" class="gmw_goto_intro">go PRO now</a></p>
|
| 901 |
</p>';
|
| 902 |
$out .= '</div>'; // before_trial
|
|
@@ -917,7 +926,6 @@ class GMW {
|
|
| 917 |
|
| 918 |
$out .= '<div class="footer">
|
| 919 |
<ul class="gmw-faq-ul">
|
| 920 |
-
<li>Check your email for a special <b>25% discount coupon</b></li>
|
| 921 |
<li>We\'ll never share your email address</li>
|
| 922 |
<li>We hate spam too, so we never send it</li>
|
| 923 |
</ul>
|
|
@@ -1302,10 +1310,10 @@ class GMW {
|
|
| 1302 |
$options = GMW::get_options();
|
| 1303 |
|
| 1304 |
if (!isset($options['first_version']) || !isset($options['first_install'])) {
|
| 1305 |
-
$
|
| 1306 |
-
$
|
| 1307 |
-
$
|
| 1308 |
-
GMW::set_options($
|
| 1309 |
}
|
| 1310 |
|
| 1311 |
// force plugin update for PRO users
|
| 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.49
|
| 8 |
Author URI: http://www.webfactoryltd.com/
|
| 9 |
Text Domain: google-maps-widget
|
| 10 |
Domain Path: lang
|
| 529 |
|
| 530 |
// display message to get pro features for GMW
|
| 531 |
static function notice_upgrade() {
|
| 532 |
+
$promo_delta = 2 * HOUR_IN_SECONDS - 5;
|
| 533 |
$options = GMW::get_options();
|
| 534 |
$activate_url = admin_url('options-general.php?page=gmw_options&gmw_open_promo_dialog');
|
| 535 |
$dismiss_url = add_query_arg(array('action' => 'gmw_dismiss_notice', 'notice' => 'upgrade', 'redirect' => urlencode($_SERVER['REQUEST_URI'])), admin_url('admin.php'));
|
| 536 |
|
| 537 |
echo '<div id="gmw_activate_notice" class="updated notice"><p>' . __('<b>Google Maps Widget <span style="color: #d54e21;">PRO</span></b> has more than 50 extra features & options. Our support is super fast & friendly and with the unlimited license you can install GMW on as many sites as you need.</p>', 'google-maps-widget');
|
| 538 |
+
|
| 539 |
if (current_time('timestamp') - $options['first_install'] < $promo_delta) {
|
| 540 |
+
$delta = $options['first_install_gmt'] + $promo_delta - time();
|
| 541 |
+
$h = $delta / 3600 % 24;
|
| 542 |
+
if ($h) {
|
| 543 |
+
$h += 'h';
|
| 544 |
+
} else {
|
| 545 |
+
$h = '';
|
| 546 |
+
}
|
| 547 |
+
$min = $delta / 60 % 60;
|
| 548 |
+
echo '<p>We\'ve prepared a special <b>25% welcoming discount</b> available only for another <b class="gmw-countdown" data-endtime="' . ($options['first_install_gmt'] + $promo_delta) . '" style="font-weight: bold;">' . $h . ' ' . $min . 'min</b>.</p>';
|
| 549 |
+
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!</a>';
|
| 550 |
} else {
|
| 551 |
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>';
|
| 552 |
}
|
| 752 |
static function admin_dialogs_markup() {
|
| 753 |
$out = '';
|
| 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')) {
|
| 769 |
<div class="content">
|
| 770 |
<div class="header"><p><a href="#" class="gmw_goto_pro">Learn more</a> about <span class="gmw-pro">PRO</span> features or <a href="#" class="gmw_goto_activation">enter your license key</a></p>';
|
| 771 |
if ($promo_active) {
|
| 772 |
+
$delta = $options['first_install_gmt'] + $promo_delta - time();
|
| 773 |
+
$h = $delta / 3600 % 24;
|
| 774 |
+
$min = $delta / 60 % 60;
|
| 775 |
+
$out .= '<div class="gmw-discount">We\'ve prepared a special <b>25% welcoming discount</b> available only for another <b class="gmw-countdown" data-endtime="' . ($options['first_install_gmt'] + $promo_delta) . '">' . $h . 'h ' . $min . 'min 0sec</b>. Discounts have been applied on the unlimited licenses below.</div>';
|
| 776 |
}
|
| 777 |
$out .= '</div>'; // header
|
| 778 |
|
| 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>';
|
| 905 |
<span style="display: none;" class="error email">Please double check your email address.</span>
|
| 906 |
</p>';
|
| 907 |
$out .= '<p class="center">
|
| 908 |
+
<a id="gmw_start_trial" href="#" class="button button-primary">Start my 7 days free trial</a>
|
| 909 |
<p class="center">Or <a href="#" class="gmw_goto_intro">go PRO now</a></p>
|
| 910 |
</p>';
|
| 911 |
$out .= '</div>'; // before_trial
|
| 926 |
|
| 927 |
$out .= '<div class="footer">
|
| 928 |
<ul class="gmw-faq-ul">
|
|
|
|
| 929 |
<li>We\'ll never share your email address</li>
|
| 930 |
<li>We hate spam too, so we never send it</li>
|
| 931 |
</ul>
|
| 1310 |
$options = GMW::get_options();
|
| 1311 |
|
| 1312 |
if (!isset($options['first_version']) || !isset($options['first_install'])) {
|
| 1313 |
+
$options['first_version'] = GMW::$version;
|
| 1314 |
+
$options['first_install_gmt'] = time();
|
| 1315 |
+
$options['first_install'] = current_time('timestamp');
|
| 1316 |
+
GMW::set_options($options);
|
| 1317 |
}
|
| 1318 |
|
| 1319 |
// force plugin update for PRO users
|
js/gmw-admin.js
CHANGED
|
@@ -566,8 +566,55 @@ jQuery(function($) {
|
|
| 566 |
|
| 567 |
return false;
|
| 568 |
}); // test api key
|
|
|
|
|
|
|
| 569 |
}); // onload
|
| 570 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 571 |
|
| 572 |
/*!
|
| 573 |
* jQuery Cookie Plugin v1.3.1
|
| 566 |
|
| 567 |
return false;
|
| 568 |
}); // test api key
|
| 569 |
+
|
| 570 |
+
|
| 571 |
}); // onload
|
| 572 |
|
| 573 |
+
if (!Date.now) {
|
| 574 |
+
Date.now = function() { return new Date().getTime(); }
|
| 575 |
+
}
|
| 576 |
+
|
| 577 |
+
function gmw_update_timer() {
|
| 578 |
+
out = '';
|
| 579 |
+
timer = jQuery('.gmw-countdown');
|
| 580 |
+
|
| 581 |
+
if (timer.length == 0) {
|
| 582 |
+
clearInterval(gmw_countdown_interval);
|
| 583 |
+
}
|
| 584 |
+
|
| 585 |
+
now = Math.round(new Date().getTime()/1000);
|
| 586 |
+
timer_end = jQuery(timer).data('endtime');
|
| 587 |
+
delta = timer_end - now;
|
| 588 |
+
seconds = Math.floor( (delta) % 60 );
|
| 589 |
+
minutes = Math.floor( (delta/60) % 60 );
|
| 590 |
+
hours = Math.floor( (delta/(60*60)) % 24 );
|
| 591 |
+
|
| 592 |
+
if (delta <= 0) {
|
| 593 |
+
clearInterval(gmw_countdown_interval);
|
| 594 |
+
}
|
| 595 |
+
|
| 596 |
+
if (hours) {
|
| 597 |
+
out += hours + 'h ';
|
| 598 |
+
}
|
| 599 |
+
if (minutes || out) {
|
| 600 |
+
out += minutes + 'min ';
|
| 601 |
+
}
|
| 602 |
+
if (seconds || out) {
|
| 603 |
+
out += seconds + 'sec';
|
| 604 |
+
}
|
| 605 |
+
if (delta <= 0 || !out) {
|
| 606 |
+
out = 'discount is no longer available';
|
| 607 |
+
}
|
| 608 |
+
|
| 609 |
+
jQuery(timer).html(out);
|
| 610 |
+
|
| 611 |
+
return true;
|
| 612 |
+
} // gmw_update_timer
|
| 613 |
+
|
| 614 |
+
if (jQuery('.gmw-countdown').length) {
|
| 615 |
+
gmw_countdown_interval = setInterval(gmw_update_timer, 1000);
|
| 616 |
+
}
|
| 617 |
+
|
| 618 |
|
| 619 |
/*!
|
| 620 |
* jQuery Cookie Plugin v1.3.1
|
readme.txt
CHANGED
|
@@ -5,7 +5,7 @@ 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.
|
| 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 |
|
|
@@ -76,7 +76,6 @@ Check out some examples on the <a href="http://www.gmapswidget.com/">Google Maps
|
|
| 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 :)
|
|
@@ -152,6 +151,10 @@ Read the <a href="http://wordpress.org/support/plugin/google-maps-widget">suppor
|
|
| 152 |
|
| 153 |
== Changelog ==
|
| 154 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 155 |
= 3.47 =
|
| 156 |
* 2017/01/03
|
| 157 |
* minor bug fixes
|
| 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.49
|
| 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 |
|
| 76 |
* <a href="http://www.indexwp.com/google-maps-widget/">IndexWP</a> calls it a "handy map plugin"
|
| 77 |
|
| 78 |
|
|
|
|
| 79 |
**Translators (thank you!)**
|
| 80 |
|
| 81 |
* English - original :)
|
| 151 |
|
| 152 |
== Changelog ==
|
| 153 |
|
| 154 |
+
= 3.49 =
|
| 155 |
+
* 2017/01/16
|
| 156 |
+
* minor bug fixes
|
| 157 |
+
|
| 158 |
= 3.47 =
|
| 159 |
* 2017/01/03
|
| 160 |
* minor bug fixes
|
