Google Maps Widget – Ultimate Google Maps Plugin - Version 3.36

Version Description

  • 2016/05/11
  • minor bug fixes
Download this release

Release Info

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

Code changes from version 3.35 to 3.36

Files changed (5) hide show
  1. css/gmw-admin.css +5 -0
  2. gmw-widget.php +1 -2
  3. google-maps-widget.php +10 -7
  4. js/gmw-admin.js +0 -13
  5. readme.txt +9 -4
css/gmw-admin.css CHANGED
@@ -1021,4 +1021,9 @@ ul.ui-tabs-nav{
1021
 
1022
  table.disabled, h3.disabled {
1023
  opacity: 0.5;
 
 
 
 
 
1024
  }
1021
 
1022
  table.disabled, h3.disabled {
1023
  opacity: 0.5;
1024
+ }
1025
+
1026
+ .gmw-promo-box strike {
1027
+ font-weight: normal;
1028
+ font-size: 17px;
1029
  }
gmw-widget.php CHANGED
@@ -152,8 +152,7 @@ class GoogleMapsWidget extends WP_Widget {
152
 
153
  // force update if activated
154
  if (GMW::is_activated()) {
155
- // todo - maybe add a constant
156
- $plugin = plugin_basename(GMW_PLUGIN_DIR . 'google-maps-widget.php');
157
  $update_url = wp_nonce_url(admin_url('update.php?action=upgrade-plugin&plugin=' . urlencode($plugin)), 'upgrade-plugin_' . $plugin );
158
  echo '<p>Google Maps Widget <b class="gmw-pro-red">PRO</b> has been activated! Please <b>click the button below</b> to update plugin files to PRO version. Widget data is not lost and it will not get lost by updating.</p>';
159
  echo '<p><a href="' . esc_url($update_url) . '" class="button button-primary">Update Google Maps Widget</a></p>';
152
 
153
  // force update if activated
154
  if (GMW::is_activated()) {
155
+ $plugin = plugin_basename(GMW_PLUGIN_DIR . GMW_BASE_FILE);
 
156
  $update_url = wp_nonce_url(admin_url('update.php?action=upgrade-plugin&amp;plugin=' . urlencode($plugin)), 'upgrade-plugin_' . $plugin );
157
  echo '<p>Google Maps Widget <b class="gmw-pro-red">PRO</b> has been activated! Please <b>click the button below</b> to update plugin files to PRO version. Widget data is not lost and it will not get lost by updating.</p>';
158
  echo '<p><a href="' . esc_url($update_url) . '" class="button button-primary">Update Google Maps Widget</a></p>';
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.35
8
  Author URI: http://www.webfactoryltd.com/
9
  Text Domain: google-maps-widget
10
  Domain Path: lang
@@ -36,6 +36,7 @@ if (!class_exists('GMW')) :
36
 
37
  define('GMW_PLUGIN_DIR', plugin_dir_path(__FILE__));
38
  define('GMW_PLUGIN_URL', plugin_dir_url(__FILE__));
 
39
 
40
  require_once GMW_PLUGIN_DIR . 'gmw-tracking.php';
41
  require_once GMW_PLUGIN_DIR . 'gmw-widget.php';
@@ -625,6 +626,8 @@ class GMW {
625
  wp_dequeue_style('collapse-admin-css');
626
  wp_dequeue_style('jquery-ui-css');
627
  wp_dequeue_style('tribe-common-admin');
 
 
628
  } // if
629
 
630
  if (GMW::is_plugin_admin_page('plugins')) {
@@ -722,24 +725,24 @@ class GMW {
722
  <div class="header"><p><a href="#" class="gmw_goto_pro">Learn more</a> about <span class="gmw-pro">PRO</span> features.</p>';
723
  if (current_time('timestamp') - $options['first_install'] < $promo_delta) {
724
  $time = date(get_option('time_format'), $options['first_install'] + $promo_delta);
725
- $out .= '<div class="gmw-discount">We\'ve prepared a special <b>25% welcoming discount</b> for you available <b>only until ' . $time . '</b>. Discount has been applied on the unlimited license. Be quick &amp; click the buy button below.</div>';
726
  }
727
  $out .= '</div>'; // header
728
 
729
  $out .= '<div class="gmw-promo-box gmw-promo-box-lifetime gmw_goto_activation gmw-promo-box-hover">
730
  <div class="gmw-promo-icon"><img src="' . GMW_PLUGIN_URL . 'images/icon-unlimited.png" alt="Unlimited Lifetime License" title="Unlimited Lifetime License"></div>
731
  <div class="gmw-promo-description"><h3>Unlimited Lifetime License</h3><br>
732
- <span>Unlimited sites + lifetime support &amp; upgrades</span></div>';
733
  if (current_time('timestamp') - $options['first_install'] < $promo_delta) {
734
- $out .= '<div class="gmw-promo-button gmw-promo-button-extra"><a href="http://www.gmapswidget.com/buy/?p=pro-welcome&r=welcome-GMW+v' . GMW::$version . '" target="_blank">only $19</a><span>discount: 25%</span></div>';
735
  } else {
736
- $out .= '<div class="gmw-promo-button"><a href="http://www.gmapswidget.com/buy/?p=pro-unlimited&r=GMW+v' . GMW::$version . '" data-noprevent="1" target="_blank">BUY $25</a></div>';
737
  }
738
  $out .= '</div>';
739
  $out .= '<div class="gmw-promo-box gmw-promo-box-yearly gmw_goto_activation">
740
  <div class="gmw-promo-icon"><img src="' . GMW_PLUGIN_URL . 'images/icon-yearly.png" alt="Yearly License" title="Yearly License"></div>
741
- <div class="gmw-promo-description"><h3>1 Year License</h3><br>
742
- <span>Unlimited sites + 1 year of support &amp; upgrades</span></div>
743
  <div class="gmw-promo-button"><a href="http://www.gmapswidget.com/buy/?p=yearly&r=GMW+v' . GMW::$version . '" data-noprevent="1" target="_blank">$11 /year</a></div>
744
  </div>';
745
  $out .= '<div class="gmw-promo-box gmw-promo-box-trial gmw_goto_trial">
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.36
8
  Author URI: http://www.webfactoryltd.com/
9
  Text Domain: google-maps-widget
10
  Domain Path: lang
36
 
37
  define('GMW_PLUGIN_DIR', plugin_dir_path(__FILE__));
38
  define('GMW_PLUGIN_URL', plugin_dir_url(__FILE__));
39
+ define('GMW_BASE_FILE', basename(__FILE__));
40
 
41
  require_once GMW_PLUGIN_DIR . 'gmw-tracking.php';
42
  require_once GMW_PLUGIN_DIR . 'gmw-widget.php';
626
  wp_dequeue_style('collapse-admin-css');
627
  wp_dequeue_style('jquery-ui-css');
628
  wp_dequeue_style('tribe-common-admin');
629
+ wp_dequeue_style('file-manager__jquery-ui-css');
630
+ wp_dequeue_style('file-manager__jquery-ui-css-theme');
631
  } // if
632
 
633
  if (GMW::is_plugin_admin_page('plugins')) {
725
  <div class="header"><p><a href="#" class="gmw_goto_pro">Learn more</a> about <span class="gmw-pro">PRO</span> features.</p>';
726
  if (current_time('timestamp') - $options['first_install'] < $promo_delta) {
727
  $time = date(get_option('time_format'), $options['first_install'] + $promo_delta);
728
+ $out .= '<div class="gmw-discount">We\'ve prepared a special <b>25% welcoming discount</b> for you available <b>only until ' . $time . '</b>. Discount has been applied on the unlimited license. Be quick &amp; click the unlimited license below.</div>';
729
  }
730
  $out .= '</div>'; // header
731
 
732
  $out .= '<div class="gmw-promo-box gmw-promo-box-lifetime gmw_goto_activation gmw-promo-box-hover">
733
  <div class="gmw-promo-icon"><img src="' . GMW_PLUGIN_URL . 'images/icon-unlimited.png" alt="Unlimited Lifetime License" title="Unlimited Lifetime License"></div>
734
  <div class="gmw-promo-description"><h3>Unlimited Lifetime License</h3><br>
735
+ <span>Unlimited sites + Lifetime support &amp; upgrades</span></div>';
736
  if (current_time('timestamp') - $options['first_install'] < $promo_delta) {
737
+ $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>$39</strike> $29</a><span>discount: 25%</span></div>';
738
  } else {
739
+ $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 $39</a></div>';
740
  }
741
  $out .= '</div>';
742
  $out .= '<div class="gmw-promo-box gmw-promo-box-yearly gmw_goto_activation">
743
  <div class="gmw-promo-icon"><img src="' . GMW_PLUGIN_URL . 'images/icon-yearly.png" alt="Yearly License" title="Yearly License"></div>
744
+ <div class="gmw-promo-description"><h3>Single Site License</h3><br>
745
+ <span>1 site + 1 year of support &amp; upgrades</span></div>
746
  <div class="gmw-promo-button"><a href="http://www.gmapswidget.com/buy/?p=yearly&r=GMW+v' . GMW::$version . '" data-noprevent="1" target="_blank">$11 /year</a></div>
747
  </div>';
748
  $out .= '<div class="gmw-promo-box gmw-promo-box-trial gmw_goto_trial">
js/gmw-admin.js CHANGED
@@ -75,9 +75,6 @@ jQuery(function($) {
75
  $('.gmw_thumb_link_type', widget).on('change', function(e) {
76
  gmw_change_link_type(widget);
77
  }).trigger('change');
78
- $('.gmw_lightbox_fullscreen', widget).on('change', function(e) {
79
- gmw_change_fullscreen(widget);
80
- }).trigger('change');
81
 
82
  // open address picking map dialog
83
  $('a.gmw-pick-address', widget).on('click', function(e) {
@@ -190,16 +187,6 @@ jQuery(function($) {
190
  } // link_type
191
 
192
 
193
- // show/hide custom lightbox map size
194
- function gmw_change_fullscreen(widget) {
195
- if ($('.gmw_lightbox_fullscreen', widget).val() == '1') {
196
- $('.gmw_lightbox_fullscreen_custom_section', widget).hide();
197
- } else {
198
- $('.gmw_lightbox_fullscreen_custom_section', widget).show();
199
- }
200
- } // fullscreen
201
-
202
-
203
  // show/hide custom pin URL field based on user's pin type choice
204
  function gmw_change_pin_type(widget) {
205
  type = $('.gmw_thumb_pin_type', widget).val();
75
  $('.gmw_thumb_link_type', widget).on('change', function(e) {
76
  gmw_change_link_type(widget);
77
  }).trigger('change');
 
 
 
78
 
79
  // open address picking map dialog
80
  $('a.gmw-pick-address', widget).on('click', function(e) {
187
  } // link_type
188
 
189
 
 
 
 
 
 
 
 
 
 
 
190
  // show/hide custom pin URL field based on user's pin type choice
191
  function gmw_change_pin_type(widget) {
192
  type = $('.gmw_thumb_pin_type', widget).val();
readme.txt CHANGED
@@ -6,15 +6,16 @@ License: GPLv2 or later
6
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
7
  Requires at least: 4.0
8
  Tested up to: 4.5
9
- Stable tag: 3.35
10
 
11
  Displays a single image, super-fast loading Google map in a widget. A larger map with all interactive features is available on click in a lightbox.
12
 
13
  == Description ==
14
 
15
- Check out some examples on the <a href="http://www.gmapswidget.com/">official plugin site</a>, view the [Google Maps Widget video](http://www.youtube.com/watch?v=y1siX9ha7Pw) or give us a shout on Twitter <a href="http://twitter.com/WebFactoryLtd">@WebFactoryLtd</a>.
 
 
16
 
17
- http://www.youtube.com/watch?v=y1siX9ha7Pw&hd=1
18
 
19
  **General widget options**
20
 
@@ -80,7 +81,7 @@ http://www.youtube.com/watch?v=y1siX9ha7Pw&hd=1
80
  * Dutch - Arno
81
  * Ukrainian - Victor Shutovskiy
82
  * Serbian - Ogi Djuraskovic from <a href="http://firstsiteguide.com/">FirstSiteGuide</a>
83
- * Russian - Ivanka from <a href="http://www.coupofy.com/">Coupofy</a>
84
 
85
 
86
  **License info**
@@ -140,6 +141,10 @@ Read the <a href="http://wordpress.org/support/plugin/google-maps-widget">suppor
140
  5. Widget options - Shortcode
141
 
142
  == Changelog ==
 
 
 
 
143
  = 3.35 =
144
  * 2016/04/30
145
  * bug fixes
6
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
7
  Requires at least: 4.0
8
  Tested up to: 4.5
9
+ Stable tag: 3.36
10
 
11
  Displays a single image, super-fast loading Google map in a widget. A larger map with all interactive features is available on click in a lightbox.
12
 
13
  == Description ==
14
 
15
+ [youtube https://www.youtube.com/watch?v=oVrTGKepPPI]
16
+
17
+ 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>.
18
 
 
19
 
20
  **General widget options**
21
 
81
  * Dutch - Arno
82
  * Ukrainian - Victor Shutovskiy
83
  * Serbian - Ogi Djuraskovic from <a href="http://firstsiteguide.com/">FirstSiteGuide</a>
84
+ * Russian - Ivanka
85
 
86
 
87
  **License info**
141
  5. Widget options - Shortcode
142
 
143
  == Changelog ==
144
+ = 3.36 =
145
+ * 2016/05/11
146
+ * minor bug fixes
147
+
148
  = 3.35 =
149
  * 2016/04/30
150
  * bug fixes