Google Maps Widget – Ultimate Google Maps Plugin - Version 1.25

Version Description

  • 2014/01/03
  • preparations for opt-in plugin usage tracking
  • Spanish translation updated; thanks Jesus!
Download this release

Release Info

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

Code changes from version 1.21 to 1.25

gmw-widget.php CHANGED
@@ -194,7 +194,7 @@ class GoogleMapsWidget extends WP_Widget {
194
 
195
  echo '</div>'; // lightbox tab
196
  echo '</div>'; // tabs
197
- echo '<p><i>' . __('If you like the plugin give us a shout. Thanks!', 'google-maps-widget') . '<a title="WebFactory on Twitter" target="_blank" href="http://twitter.com/WebFactoryLtd">@WebFactoryLtd</a></i></p>';
198
  }
199
 
200
  function update($new_instance, $old_instance) {
194
 
195
  echo '</div>'; // lightbox tab
196
  echo '</div>'; // tabs
197
+ echo '<p><i>' . __('If you like the plugin give us a shout. Thanks!', 'google-maps-widget') . ' <a title="WebFactory on Twitter" target="_blank" href="http://twitter.com/WebFactoryLtd">@WebFactoryLtd</a></i></p>';
198
  }
199
 
200
  function update($new_instance, $old_instance) {
google-maps-widget.php CHANGED
@@ -4,10 +4,10 @@ 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.
6
  Author: Web factory Ltd
7
- Version: 1.21
8
  Author URI: http://www.webfactoryltd.com/
9
 
10
- Copyright 2013 Web factory Ltd (email : info@webfactoryltd.com)
11
 
12
  This program is free software; you can redistribute it and/or modify
13
  it under the terms of the GNU General Public License, version 2, as
@@ -29,7 +29,7 @@ if (!function_exists('add_action')) {
29
  }
30
 
31
 
32
- define('GMW_VER', '1.20');
33
  require_once 'gmw-widget.php';
34
 
35
 
@@ -240,10 +240,23 @@ class GMW {
240
 
241
  return $data;
242
  } // get_coordinates
 
 
 
 
 
 
 
 
 
 
 
 
243
  } // class GMW
244
 
245
 
246
  // hook everything up
 
247
  add_action('init', array('GMW', 'init'));
248
  add_action('plugins_loaded', array('GMW', 'plugins_loaded'));
249
  add_action('widgets_init', array('GMW', 'widgets_init'));
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.
6
  Author: Web factory Ltd
7
+ Version: 1.25
8
  Author URI: http://www.webfactoryltd.com/
9
 
10
+ Copyright 2013 - 2014 Web factory Ltd (email : info@webfactoryltd.com)
11
 
12
  This program is free software; you can redistribute it and/or modify
13
  it under the terms of the GNU General Public License, version 2, as
29
  }
30
 
31
 
32
+ define('GMW_VER', '1.25');
33
  require_once 'gmw-widget.php';
34
 
35
 
240
 
241
  return $data;
242
  } // get_coordinates
243
+
244
+ // track a few things on plugin activation
245
+ // NO DATA is sent anywhere!
246
+ static function activate() {
247
+ $options = get_option('gmw_options');
248
+
249
+ if (!isset($options['first_version']) || !isset($options['first_install'])) {
250
+ $options['first_version'] = GMW_VER;
251
+ $options['first_install'] = current_time('timestamp');
252
+ update_option('gmw_options', $options);
253
+ }
254
+ } // activate
255
  } // class GMW
256
 
257
 
258
  // hook everything up
259
+ register_activation_hook(__FILE__, array('GMW', 'activate'));
260
  add_action('init', array('GMW', 'init'));
261
  add_action('plugins_loaded', array('GMW', 'plugins_loaded'));
262
  add_action('widgets_init', array('GMW', 'widgets_init'));
lang/google-maps-widget-es_ES.mo CHANGED
Binary file
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: 3.8
9
- Stable tag: 1.21
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
 
@@ -98,6 +98,11 @@ If you can figure it out open a thread in the support forums.
98
  4. Widget options - lightbox map
99
 
100
  == Changelog ==
 
 
 
 
 
101
  = 1.20 =
102
  * 2013/12/17
103
  * WP v3.8 update
6
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
7
  Requires at least: 3.3
8
  Tested up to: 3.8
9
+ Stable tag: 1.25
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
 
98
  4. Widget options - lightbox map
99
 
100
  == Changelog ==
101
+ = 1.25 =
102
+ * 2014/01/03
103
+ * preparations for opt-in plugin usage tracking
104
+ * Spanish translation updated; thanks Jesus!
105
+
106
  = 1.20 =
107
  * 2013/12/17
108
  * WP v3.8 update