Google Maps Widget – Ultimate Google Maps Plugin - Version 2.40

Version Description

  • 2015/05/25
  • few small bugs fixed
  • admin JS completely rebuilt
  • fixed PO file
  • we broke 90,000 installations ;)
Download this release

Release Info

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

Code changes from version 2.35 to 2.40

css/gmw-admin.css CHANGED
@@ -151,7 +151,7 @@ option.promo {
151
  .ui-tabs { position: relative; padding: 0; zoom: 1;margin-top:25px } /* position: relative prevents IE scroll bug (element with position: relative inside container with overflow: auto appear as "fixed") */
152
  .ui-tabs .ui-tabs-nav { margin: 0; padding: 0 0 0 5px; box-sizing: border-box; }
153
  .ui-tabs .ui-tabs-nav li { list-style: none; float: left; position: relative; top: 1px; margin: 0 .2em 1px 0; border-bottom: 0 !important; padding: 0; white-space: nowrap; }
154
- .ui-tabs .ui-tabs-nav li a { text-decoration: none; }
155
  .ui-tabs .ui-tabs-nav li.ui-tabs-selected { margin-bottom: 0; border-bottom: 1px solid white !important; }
156
  .ui-tabs .ui-tabs-nav li.ui-tabs-active { margin-bottom: 0; border-bottom: 1px solid white !important; }
157
  .ui-tabs .ui-tabs-nav li.ui-tabs-active a { outline: none;}
151
  .ui-tabs { position: relative; padding: 0; zoom: 1;margin-top:25px } /* position: relative prevents IE scroll bug (element with position: relative inside container with overflow: auto appear as "fixed") */
152
  .ui-tabs .ui-tabs-nav { margin: 0; padding: 0 0 0 5px; box-sizing: border-box; }
153
  .ui-tabs .ui-tabs-nav li { list-style: none; float: left; position: relative; top: 1px; margin: 0 .2em 1px 0; border-bottom: 0 !important; padding: 0; white-space: nowrap; }
154
+ .ui-tabs .ui-tabs-nav li a { text-decoration: none; outline: none; box-shadow: none; }
155
  .ui-tabs .ui-tabs-nav li.ui-tabs-selected { margin-bottom: 0; border-bottom: 1px solid white !important; }
156
  .ui-tabs .ui-tabs-nav li.ui-tabs-active { margin-bottom: 0; border-bottom: 1px solid white !important; }
157
  .ui-tabs .ui-tabs-nav li.ui-tabs-active a { outline: none;}
gmw-tracking.php CHANGED
@@ -14,7 +14,7 @@ if (!defined('ABSPATH')) {
14
 
15
  class GMW_tracking {
16
  // set things up
17
- public static function init() {
18
  $options = get_option(GMW_OPTIONS);
19
 
20
  self::check_opt_in_out();
@@ -31,7 +31,7 @@ class GMW_tracking {
31
 
32
 
33
  // register additional cron interval
34
- public static function register_cron_intervals($schedules) {
35
  $schedules['gmw_weekly'] = array(
36
  'interval' => DAY_IN_SECONDS * 7,
37
  'display' => 'Once a Week');
@@ -41,13 +41,13 @@ class GMW_tracking {
41
 
42
 
43
  // clear cron scheadule
44
- public static function clear_cron() {
45
  wp_clear_scheduled_hook(GMW_CRON);
46
  } // clear_cron
47
 
48
 
49
  // setup cron job when user allows tracking
50
- public static function setup_cron() {
51
  $options = get_option(GMW_OPTIONS);
52
 
53
  if (isset($options['allow_tracking']) && $options['allow_tracking'] === true) {
@@ -61,7 +61,7 @@ class GMW_tracking {
61
 
62
 
63
  // save user's choice for (not) allowing tracking
64
- public static function check_opt_in_out() {
65
  $options = get_option(GMW_OPTIONS);
66
 
67
  if (isset($_GET['gmw_tracking']) && $_GET['gmw_tracking'] == 'opt_in') {
@@ -80,7 +80,7 @@ class GMW_tracking {
80
 
81
 
82
  // display tracking notice
83
- public static function tracking_notice() {
84
  $optin_url = add_query_arg('gmw_tracking', 'opt_in');
85
  $optout_url = add_query_arg('gmw_tracking', 'opt_out');
86
 
@@ -93,7 +93,7 @@ class GMW_tracking {
93
 
94
 
95
  // send usage data once a week to our server
96
- public static function send_data($force = false) {
97
  $options = get_option(GMW_OPTIONS);
98
 
99
  if ($force == false && (!isset($options['allow_tracking']) || $options['allow_tracking'] !== true)) {
@@ -118,7 +118,7 @@ class GMW_tracking {
118
 
119
 
120
  // get and prepare data that will be sent out
121
- public static function prepare_data() {
122
  $options = get_option(GMW_OPTIONS);
123
  $data = array();
124
  $current_user = wp_get_current_user();
14
 
15
  class GMW_tracking {
16
  // set things up
17
+ static function init() {
18
  $options = get_option(GMW_OPTIONS);
19
 
20
  self::check_opt_in_out();
31
 
32
 
33
  // register additional cron interval
34
+ static function register_cron_intervals($schedules) {
35
  $schedules['gmw_weekly'] = array(
36
  'interval' => DAY_IN_SECONDS * 7,
37
  'display' => 'Once a Week');
41
 
42
 
43
  // clear cron scheadule
44
+ static function clear_cron() {
45
  wp_clear_scheduled_hook(GMW_CRON);
46
  } // clear_cron
47
 
48
 
49
  // setup cron job when user allows tracking
50
+ static function setup_cron() {
51
  $options = get_option(GMW_OPTIONS);
52
 
53
  if (isset($options['allow_tracking']) && $options['allow_tracking'] === true) {
61
 
62
 
63
  // save user's choice for (not) allowing tracking
64
+ static function check_opt_in_out() {
65
  $options = get_option(GMW_OPTIONS);
66
 
67
  if (isset($_GET['gmw_tracking']) && $_GET['gmw_tracking'] == 'opt_in') {
80
 
81
 
82
  // display tracking notice
83
+ static function tracking_notice() {
84
  $optin_url = add_query_arg('gmw_tracking', 'opt_in');
85
  $optout_url = add_query_arg('gmw_tracking', 'opt_out');
86
 
93
 
94
 
95
  // send usage data once a week to our server
96
+ static function send_data($force = false) {
97
  $options = get_option(GMW_OPTIONS);
98
 
99
  if ($force == false && (!isset($options['allow_tracking']) || $options['allow_tracking'] !== true)) {
118
 
119
 
120
  // get and prepare data that will be sent out
121
+ static function prepare_data() {
122
  $options = get_option(GMW_OPTIONS);
123
  $data = array();
124
  $current_user = wp_get_current_user();
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.35
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.35;
44
 
45
  // hook everything up
46
  static function init() {
@@ -72,8 +72,8 @@ class GMW {
72
  // handle dismiss button for all notices
73
  add_action('admin_action_gmw_dismiss_notice', array(__CLASS__, 'dismiss_notice'));
74
 
75
- // ask users to upgrade
76
- self::upgrade_incentive();
77
  } else {
78
  // enqueue frontend scripts
79
  add_action('wp_enqueue_scripts', array(__CLASS__, 'enqueue_scripts'));
@@ -112,13 +112,17 @@ class GMW {
112
  $documentation_link = '<a target="_blank" href="http://www.googlemapswidget.com/documentation/" title="' . __('View Google Maps Widget documentation', 'google-maps-widget') . '">'. __('Documentation', 'google-maps-widget') . '</a>';
113
  $support_link = '<a target="_blank" href="http://wordpress.org/support/plugin/google-maps-widget" title="' . __('Problems? We are here to help!', 'google-maps-widget') . '">' . __('Support', 'google-maps-widget') . '</a>';
114
  $review_link = '<a target="_blank" href="http://wordpress.org/support/view/plugin-reviews/google-maps-widget" title="' . __('If you like it, please review the plugin', 'google-maps-widget') . '">' . __('Review the plugin', 'google-maps-widget') . '</a>';
115
- $donate_link = '<a target="_blank" href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=gordan%40webfactoryltd%2ecom&lc=US&item_name=Google%20Maps%20Widget&no_note=0&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHostedGuest" title="' . __('If you feel we deserve it, buy us coffee', 'google-maps-widget') . '">' . __('Donate', 'google-maps-widget') . '</a>';
 
116
 
117
  if ($file == plugin_basename(__FILE__)) {
118
  $links[] = $documentation_link;
119
  $links[] = $support_link;
120
  $links[] = $review_link;
121
  $links[] = $donate_link;
 
 
 
122
  }
123
 
124
  return $links;
@@ -215,6 +219,10 @@ class GMW {
215
  $options['dismiss_notice_upgrade'] = true;
216
  update_option(GMW_OPTIONS, $options);
217
  }
 
 
 
 
218
 
219
  if ($_GET['redirect']) {
220
  wp_redirect($_GET['redirect']);
@@ -225,28 +233,25 @@ class GMW {
225
  } // dismiss_notice
226
 
227
 
228
- // maybe show upgrade notice
229
- static function upgrade_incentive() {
230
  $options = get_option(GMW_OPTIONS, array());
 
231
 
232
- // if notice has already been dismissed - skip
233
- if (isset($options['dismiss_notice_upgrade']) && $options['dismiss_notice_upgrade'] == true) {
234
- return;
235
- }
236
-
237
- // if extra features are already active - skip
238
- if (self::is_activated()) {
239
- return;
240
- }
241
 
242
- // if there are no widgets and the plugin is used less than 3 days - skip
243
- if (GMW_tracking::count_active_widgets() == 0 &&
244
- (current_time('timestamp') - $options['first_install']) < (DAY_IN_SECONDS * 3)) {
245
- return;
246
- }
247
-
248
- add_action('admin_notices', array(__CLASS__, 'notice_activate_extra_features'));
249
- } // upgrade_incentive
250
 
251
 
252
  // display message to get extra features for GMW
@@ -254,9 +259,9 @@ class GMW {
254
  $activate_url = admin_url('widgets.php?gmw_open_promo_dialog');
255
  $dismiss_url = add_query_arg(array('action' => 'gmw_dismiss_notice', 'notice' => 'upgrade', 'redirect' => $_SERVER['REQUEST_URI']), admin_url('admin.php'));
256
 
257
- // todo detect WP version and add support for "notice is-dismissible"
258
  // todo remove style from HTML
259
- echo '<div id="gmw_activate_notice" class="updated"><p>' . __('<b>Google Maps Widget</b> has extra premium features you can get for <b style="color: #d54e21;">FREE</b>. This is a limited time offer so act now!', 'google-maps-widget');
260
 
261
  echo '<br /><a href="' . esc_url($activate_url) . '" style="vertical-align: baseline; margin-top: 15px;" class="button-primary">' . __('Activate premium features for <b>FREE</b>', 'google-maps-widget') . '</a>';
262
  echo '&nbsp;&nbsp;<a href="' . esc_url($dismiss_url) . '" class="">' . __('Dismiss notice', 'google-maps-widget') . '</a>';
@@ -264,6 +269,21 @@ class GMW {
264
  } // notice_activate_extra_features
265
 
266
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
267
  // enqueue frontend scripts if necessary
268
  static function enqueue_scripts() {
269
  if (is_active_widget(false, false, 'googlemapswidget', true)) {
@@ -291,7 +311,9 @@ class GMW {
291
  'subscribe_duplicate' => __('You are already subscribed to our list. One activation code is valid for all sites so just use the code you already have.', 'google-maps-widget'),
292
  'subscribe_error' => __('Something is not right on our end. Sorry :( Try again later.', 'google-maps-widget'),
293
  'activate_ok' => __('Superb! Extra features are active ;)', 'google-maps-widget'),
294
- 'dialog_title' => __('GOOGLE MAPS WIDGET - Activate Extra Features', 'google-maps-widget'));
 
 
295
  wp_localize_script('gmw-admin', 'gmw', $js_localize);
296
  } // if
297
  } // admin_enqueue_scripts
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.40
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.40;
44
 
45
  // hook everything up
46
  static function init() {
72
  // handle dismiss button for all notices
73
  add_action('admin_action_gmw_dismiss_notice', array(__CLASS__, 'dismiss_notice'));
74
 
75
+ // display various notices
76
+ self::add_notices();
77
  } else {
78
  // enqueue frontend scripts
79
  add_action('wp_enqueue_scripts', array(__CLASS__, 'enqueue_scripts'));
112
  $documentation_link = '<a target="_blank" href="http://www.googlemapswidget.com/documentation/" title="' . __('View Google Maps Widget documentation', 'google-maps-widget') . '">'. __('Documentation', 'google-maps-widget') . '</a>';
113
  $support_link = '<a target="_blank" href="http://wordpress.org/support/plugin/google-maps-widget" title="' . __('Problems? We are here to help!', 'google-maps-widget') . '">' . __('Support', 'google-maps-widget') . '</a>';
114
  $review_link = '<a target="_blank" href="http://wordpress.org/support/view/plugin-reviews/google-maps-widget" title="' . __('If you like it, please review the plugin', 'google-maps-widget') . '">' . __('Review the plugin', 'google-maps-widget') . '</a>';
115
+ $donate_link = '<a target="_blank" href="https://www.paypal.com/cgi-bin/webscr?business=gordan@webfactoryltd.com&cmd=_xclick&currency_code=USD&amount=&item_name=Google%20Maps%20Widget%20Donation" title="' . __('If you feel we deserve it, buy us coffee', 'google-maps-widget') . '">' . __('Donate', 'google-maps-widget') . '</a>';
116
+ $activate_link = '<a href="' . esc_url(admin_url('widgets.php?gmw_open_promo_dialog')) . '">' . __('Activate premium features for <b>FREE</b>', 'google-maps-widget') . '</a>';
117
 
118
  if ($file == plugin_basename(__FILE__)) {
119
  $links[] = $documentation_link;
120
  $links[] = $support_link;
121
  $links[] = $review_link;
122
  $links[] = $donate_link;
123
+ if (!self::is_activated()) {
124
+ $links[] = $activate_link;
125
+ }
126
  }
127
 
128
  return $links;
219
  $options['dismiss_notice_upgrade'] = true;
220
  update_option(GMW_OPTIONS, $options);
221
  }
222
+ if (isset($_GET['notice']) && $_GET['notice'] == 'rate') {
223
+ $options['dismiss_notice_rate'] = true;
224
+ update_option(GMW_OPTIONS, $options);
225
+ }
226
 
227
  if ($_GET['redirect']) {
228
  wp_redirect($_GET['redirect']);
233
  } // dismiss_notice
234
 
235
 
236
+ // maybe show some notices
237
+ static function add_notices() {
238
  $options = get_option(GMW_OPTIONS, array());
239
+ $notice = false;
240
 
241
+ if ((!isset($options['dismiss_notice_upgrade']) || $options['dismiss_notice_upgrade'] == false) &&
242
+ !self::is_activated() &&
243
+ (GMW_tracking::count_active_widgets() > 0 || (current_time('timestamp') - $options['first_install']) > (DAY_IN_SECONDS * 3))) {
244
+ add_action('admin_notices', array(__CLASS__, 'notice_activate_extra_features'));
245
+ $notice = true;
246
+ } // show upgrade notice
 
 
 
247
 
248
+ if (!$notice &&
249
+ (!isset($options['dismiss_notice_rate']) || $options['dismiss_notice_rate'] == false) &&
250
+ GMW_tracking::count_active_widgets() > 0 &&
251
+ (current_time('timestamp') - $options['first_install']) > (DAY_IN_SECONDS * 30)) {
252
+ add_action('admin_notices', array(__CLASS__, 'notice_rate_plugin'));
253
+ } // show rate notice
254
+ } // add_notices
 
255
 
256
 
257
  // display message to get extra features for GMW
259
  $activate_url = admin_url('widgets.php?gmw_open_promo_dialog');
260
  $dismiss_url = add_query_arg(array('action' => 'gmw_dismiss_notice', 'notice' => 'upgrade', 'redirect' => $_SERVER['REQUEST_URI']), admin_url('admin.php'));
261
 
262
+ // todo detect WP version and add support for "is-dismissible"
263
  // todo remove style from HTML
264
+ echo '<div id="gmw_activate_notice" class="updated notice"><p>' . __('<b>Google Maps Widget</b> has extra premium features you can get for <b style="color: #d54e21;">FREE</b>. This is a limited time offer so act now!', 'google-maps-widget');
265
 
266
  echo '<br /><a href="' . esc_url($activate_url) . '" style="vertical-align: baseline; margin-top: 15px;" class="button-primary">' . __('Activate premium features for <b>FREE</b>', 'google-maps-widget') . '</a>';
267
  echo '&nbsp;&nbsp;<a href="' . esc_url($dismiss_url) . '" class="">' . __('Dismiss notice', 'google-maps-widget') . '</a>';
269
  } // notice_activate_extra_features
270
 
271
 
272
+ // display message to get extra features for GMW
273
+ static function notice_rate_plugin() {
274
+ $rate_url = 'https://wordpress.org/support/view/plugin-reviews/google-maps-widget?rate=5#postform';
275
+ $dismiss_url = add_query_arg(array('action' => 'gmw_dismiss_notice', 'notice' => 'rate', 'redirect' => $_SERVER['REQUEST_URI']), admin_url('admin.php'));
276
+
277
+ // todo detect WP version and add support for "is-dismissible"
278
+ // todo remove style from HTML
279
+ echo '<div id="gmw_rate_notice" class="updated notice"><p>' . __('Hi! We saw you\'ve been using <b>Google Maps Widget</b> for some time and wanted to ask for your help to make the plugin even better.<br>We don\'t need money :), just a minute of your time to rate the plugin. Thank you!', 'google-maps-widget');
280
+
281
+ echo '<br /><a target="_blank" href="' . esc_url($rate_url) . '" style="vertical-align: baseline; margin-top: 15px;" class="button-primary">' . __('Help us out &amp; rate the plugin', 'google-maps-widget') . '</a>';
282
+ echo '&nbsp;&nbsp;<a href="' . esc_url($dismiss_url) . '" class="">' . __('Dismiss notice', 'google-maps-widget') . '</a>';
283
+ echo '</p></div>';
284
+ } // notice_rate_plugin
285
+
286
+
287
  // enqueue frontend scripts if necessary
288
  static function enqueue_scripts() {
289
  if (is_active_widget(false, false, 'googlemapswidget', true)) {
311
  'subscribe_duplicate' => __('You are already subscribed to our list. One activation code is valid for all sites so just use the code you already have.', 'google-maps-widget'),
312
  'subscribe_error' => __('Something is not right on our end. Sorry :( Try again later.', 'google-maps-widget'),
313
  'activate_ok' => __('Superb! Extra features are active ;)', 'google-maps-widget'),
314
+ 'dialog_title' => __('GOOGLE MAPS WIDGET - Activate Extra Features', 'google-maps-widget'),
315
+ 'undocumented_error' => __('An undocumented error has occured. Please refresh the page and try again.', 'google-maps-widget'),
316
+ 'id_base' => 'googlemapswidget');
317
  wp_localize_script('gmw-admin', 'gmw', $js_localize);
318
  } // if
319
  } // admin_enqueue_scripts
js/gmw-admin.js CHANGED
@@ -3,40 +3,75 @@
3
  * (c) Web factory Ltd, 2012 - 2015
4
  */
5
 
 
6
  jQuery(function($) {
7
- // open promo dialog on load
8
- if (window.location.search.search('gmw_open_promo_dialog') != -1) {
9
- gmw_open_promo_dialog();
10
- }
 
 
 
 
 
 
 
 
 
11
 
12
- $('.gmw-tabs').each(function(i, el) {
13
- change_pin_type(el);
14
- change_link_type(el);
15
- $('.gmw_thumb_pin_type', el).on('change', function() { change_pin_type(el) });
16
- $('.gmw_thumb_link_type', el).on('change', function() { change_link_type(el) });
17
- $('.gmw_thumb_color_scheme', el).on('change', function() { gmw_promo_option_change(el, '.gmw_thumb_color_scheme') });
18
- $('.gmw_lightbox_skin', el).on('change', function() { gmw_promo_option_change(el, '.gmw_lightbox_skin') });
19
-
20
- el_id = $(el).attr('id');
21
- $(el).tabs({ active: get_active_tab(el_id),
22
- activate: function(event, ui) { save_active_tab(this); }
 
 
 
 
 
 
23
  });
24
- });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
25
 
26
  // get active tab index from cookie
27
- function get_active_tab(el_id) {
28
  id = parseInt(0 + $.cookie(el_id), 10);
 
 
 
29
 
30
  return id;
31
  } // get_active_tab
32
 
 
33
  // save active tab index to cookie
34
- function save_active_tab(elem) {
35
  $.cookie($(elem).attr('id'), $(elem).tabs('option', 'active'), { expires: 30 });
36
  } // save_active_tab
37
 
 
38
  // show/hide custom link field based on user's link type choice
39
- function change_link_type(widget) {
40
  if ($('.gmw_thumb_link_type', widget).val() == 'custom') {
41
  $('.gmw_thumb_link_section', widget).show();
42
  } else {
@@ -44,8 +79,9 @@ jQuery(function($) {
44
  }
45
  } // link_type
46
 
 
47
  // show/hide custom pin URL field based on user's pin type choice
48
- function change_pin_type(widget) {
49
  if ($('.gmw_thumb_pin_type', widget).val() == 'custom') {
50
  $('.gmw_thumb_pin_type_custom_section', widget).show();
51
  $('.gmw_thumb_pin_type_predefined_section', widget).hide();
@@ -55,6 +91,14 @@ jQuery(function($) {
55
  }
56
  } // pin_type
57
 
 
 
 
 
 
 
 
 
58
  // opens promo dialog when special value is selected in widget's options
59
  function gmw_promo_option_change(widget, el) {
60
  if (($(el, widget).val()) == '-1') {
@@ -64,28 +108,22 @@ jQuery(function($) {
64
  }
65
  } // promo_option_change
66
 
67
- // open promo/activation dialog
68
- $('.open_promo_dialog').on('click', function(e) {
69
- gmw_open_promo_dialog(this);
70
 
71
- e.preventDefault();
72
- return false;
73
- });
74
-
75
- // button in dialog
76
  $('#gmw_already_subscribed').on('click', function(e) {
 
77
  $('#gmw_dialog_subscribe').hide();
78
  $('#gmw_dialog_activate').show();
79
 
80
- e.preventDefault();
81
  return false;
82
- });
83
 
84
- // button in dialog
 
85
  $('#gmw_subscribe').on('click', function(e) {
86
  e.preventDefault();
87
 
88
- $err = 0;
89
  $('#gmw_promo_dialog input.error').removeClass('error');
90
  $('#gmw_promo_dialog span.error').hide();
91
 
@@ -94,8 +132,8 @@ jQuery(function($) {
94
  $('#gmw_promo_dialog span.error.name').show();
95
  $('#gmw_name').focus().select();
96
 
97
- $err = 1;
98
- }
99
 
100
  re = /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
101
  if (!re.test($('#gmw_email').val())) {
@@ -105,7 +143,7 @@ jQuery(function($) {
105
  return false;
106
  }
107
 
108
- if ($err) {
109
  return false;
110
  }
111
 
@@ -121,20 +159,22 @@ jQuery(function($) {
121
  } else {
122
  alert(gmw.subscribe_error);
123
  }
124
- }, 'json');
 
 
125
 
126
  return false;
127
- });
 
128
 
129
- // button in dialog
130
- // check code and activate
131
  $('#gmw_activate').on('click', function(e) {
132
  e.preventDefault();
133
 
134
  $('#gmw_promo_dialog input.error').removeClass('error');
135
  $('#gmw_promo_dialog span.error').hide();
136
 
137
- $.post(ajaxurl, { action: 'gmw_activate', 'code': $('#gmw_code').val()}, function(data) { console.log(data);
138
  if (data && data.success == true) {
139
  alert(gmw.activate_ok);
140
  if ($('#gmw_promo_dialog').data('widget-id')) {
@@ -148,10 +188,13 @@ jQuery(function($) {
148
  $('#gmw_promo_dialog span.error.gmw_code').show();
149
  $('#gmw_code').focus().select();
150
  }
151
- }, 'json');
 
 
152
 
153
  return false;
154
- });
 
155
 
156
  // open promo/activation dialog
157
  function gmw_open_promo_dialog(widget) {
@@ -165,36 +208,11 @@ jQuery(function($) {
165
  'title': gmw.dialog_title,
166
  'autoOpen': false,
167
  'closeOnEscape': true,
168
- close: function(event, ui) { $('#gmw_promo_dialog').data('widget-id', '') }
169
  }).dialog('open');
170
 
171
  if (widget) {
172
  $('#gmw_promo_dialog').data('widget-id', $(widget).parents('div.widget').attr('id'));
173
  }
174
  } // open_promo_dialog
175
-
176
- // re-tab on GUI rebuild
177
- $('div[id*="googlemapswidget"]').ajaxSuccess(function(event, request, option) {
178
- $('.gmw-tabs').each(function(i, el) {
179
- change_pin_type(el);
180
- change_link_type(el);
181
- $('.gmw_thumb_pin_type', el).on('change', function() { change_pin_type(el) });
182
- $('.gmw_thumb_link_type', el).on('change', function() { change_link_type(el) });
183
- $('.gmw_thumb_color_scheme', el).on('change', function() { gmw_promo_option_change(el, '.gmw_thumb_color_scheme'); });
184
- $('.gmw_lightbox_skin', el).on('change', function() { gmw_promo_option_change(el, '.gmw_lightbox_skin') });
185
-
186
- el_id = $(el).attr('id');
187
- $(el).tabs({ active: get_active_tab(el_id),
188
- activate: function(event, ui) { save_active_tab(this); }
189
- });
190
- });
191
-
192
- // todo fix multiple actions on single selector
193
- $('.open_promo_dialog').on('click', function(e) {
194
- gmw_open_promo_dialog(this);
195
-
196
- e.preventDefault();
197
- return false;
198
- });
199
- });
200
  }); // onload
3
  * (c) Web factory Ltd, 2012 - 2015
4
  */
5
 
6
+
7
  jQuery(function($) {
8
+ // init JS for each active widget
9
+ $(".widget-liquid-right [id*='" + gmw.id_base + "'].widget, .inactive-sidebar [id*='" + gmw.id_base + "'].widget").each(function (i, widget) {
10
+ gmw_init_widget_ui(widget);
11
+ }); // foreach GMW active widget
12
+
13
+ // re-init JS on widget update and add
14
+ $(document).on('widget-updated', function(event, widget) {
15
+ gmw_init_widget_ui(widget);
16
+ });
17
+ $(document).on('widget-added', function(event, widget) {
18
+ gmw_init_widget_ui(widget);
19
+ });
20
+
21
 
22
+ // init JS UI for an individual GMW
23
+ function gmw_init_widget_ui(widget) {
24
+ gmw_change_pin_type(widget);
25
+ gmw_change_link_type(widget);
26
+
27
+ // handle dropdown fields that have dependant fields
28
+ $('.gmw_thumb_pin_type', widget).on('change', function(e) {
29
+ gmw_change_pin_type(widget);
30
+ });
31
+ $('.gmw_thumb_link_type', widget).on('change', function(e) {
32
+ gmw_change_link_type(widget);
33
+ });
34
+ $('.gmw_thumb_color_scheme', widget).on('change', function(e) {
35
+ gmw_promo_option_change(widget, '.gmw_thumb_color_scheme');
36
+ });
37
+ $('.gmw_lightbox_skin', widget).on('change', function(e) {
38
+ gmw_promo_option_change(widget, '.gmw_lightbox_skin');
39
  });
40
+
41
+ // open promo/activation dialog
42
+ $('.open_promo_dialog', widget).on('click', function(e) {
43
+ e.preventDefault();
44
+ gmw_open_promo_dialog(this);
45
+
46
+ return false;
47
+ });
48
+
49
+ // init tabs
50
+ $('.gmw-tabs', widget).tabs({ active: gmw_get_active_tab($('.gmw-tabs', widget).attr('id')),
51
+ activate: function(event, ui) { gmw_save_active_tab(this); }
52
+ });
53
+ } // gmw_init_widget_ui
54
+
55
 
56
  // get active tab index from cookie
57
+ function gmw_get_active_tab(el_id) {
58
  id = parseInt(0 + $.cookie(el_id), 10);
59
+ if (isNaN(id) === true) {
60
+ id = 0;
61
+ }
62
 
63
  return id;
64
  } // get_active_tab
65
 
66
+
67
  // save active tab index to cookie
68
+ function gmw_save_active_tab(elem) {
69
  $.cookie($(elem).attr('id'), $(elem).tabs('option', 'active'), { expires: 30 });
70
  } // save_active_tab
71
 
72
+
73
  // show/hide custom link field based on user's link type choice
74
+ function gmw_change_link_type(widget) {
75
  if ($('.gmw_thumb_link_type', widget).val() == 'custom') {
76
  $('.gmw_thumb_link_section', widget).show();
77
  } else {
79
  }
80
  } // link_type
81
 
82
+
83
  // show/hide custom pin URL field based on user's pin type choice
84
+ function gmw_change_pin_type(widget) {
85
  if ($('.gmw_thumb_pin_type', widget).val() == 'custom') {
86
  $('.gmw_thumb_pin_type_custom_section', widget).show();
87
  $('.gmw_thumb_pin_type_predefined_section', widget).hide();
91
  }
92
  } // pin_type
93
 
94
+
95
+ // extra features related functions
96
+ // open promo dialog on load
97
+ if (window.location.search.search('gmw_open_promo_dialog') != -1) {
98
+ gmw_open_promo_dialog();
99
+ }
100
+
101
+
102
  // opens promo dialog when special value is selected in widget's options
103
  function gmw_promo_option_change(widget, el) {
104
  if (($(el, widget).val()) == '-1') {
108
  }
109
  } // promo_option_change
110
 
 
 
 
111
 
112
+ // already subscribed button in dialog
 
 
 
 
113
  $('#gmw_already_subscribed').on('click', function(e) {
114
+ e.preventDefault();
115
  $('#gmw_dialog_subscribe').hide();
116
  $('#gmw_dialog_activate').show();
117
 
 
118
  return false;
119
+ }); // already subscribed click
120
 
121
+
122
+ // subscribe button in dialog
123
  $('#gmw_subscribe').on('click', function(e) {
124
  e.preventDefault();
125
 
126
+ err = false;
127
  $('#gmw_promo_dialog input.error').removeClass('error');
128
  $('#gmw_promo_dialog span.error').hide();
129
 
132
  $('#gmw_promo_dialog span.error.name').show();
133
  $('#gmw_name').focus().select();
134
 
135
+ err = true;
136
+ } // check name
137
 
138
  re = /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
139
  if (!re.test($('#gmw_email').val())) {
143
  return false;
144
  }
145
 
146
+ if (err) {
147
  return false;
148
  }
149
 
159
  } else {
160
  alert(gmw.subscribe_error);
161
  }
162
+ }, 'json').fail(function() {
163
+ alert(gmw.undocumented_error);
164
+ });
165
 
166
  return false;
167
+ }); // subscribe click
168
+
169
 
170
+ // check code and activate button in dialog
 
171
  $('#gmw_activate').on('click', function(e) {
172
  e.preventDefault();
173
 
174
  $('#gmw_promo_dialog input.error').removeClass('error');
175
  $('#gmw_promo_dialog span.error').hide();
176
 
177
+ $.post(ajaxurl, { action: 'gmw_activate', 'code': $('#gmw_code').val()}, function(data) {
178
  if (data && data.success == true) {
179
  alert(gmw.activate_ok);
180
  if ($('#gmw_promo_dialog').data('widget-id')) {
188
  $('#gmw_promo_dialog span.error.gmw_code').show();
189
  $('#gmw_code').focus().select();
190
  }
191
+ }, 'json').fail(function() {
192
+ alert(gmw.undocumented_error);
193
+ });
194
 
195
  return false;
196
+ }); // activate button click
197
+
198
 
199
  // open promo/activation dialog
200
  function gmw_open_promo_dialog(widget) {
208
  'title': gmw.dialog_title,
209
  'autoOpen': false,
210
  'closeOnEscape': true,
211
+ close: function(event, ui) { $('#gmw_promo_dialog').data('widget-id', ''); }
212
  }).dialog('open');
213
 
214
  if (widget) {
215
  $('#gmw_promo_dialog').data('widget-id', $(widget).parents('div.widget').attr('id'));
216
  }
217
  } // open_promo_dialog
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
218
  }); // onload
lang/google-maps-widget.pot CHANGED
@@ -1,352 +1,458 @@
1
- # Copyright (C) 2014 Google Maps Widget
2
  # This file is distributed under the same license as the Google Maps Widget package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Google Maps Widget 2.15\n"
6
- "Report-Msgid-Bugs-To: http://wordpress.org/tag/google-maps-widget\n"
7
- "POT-Creation-Date: \n"
8
- "PO-Revision-Date: 2015-03-01 19:16+0100\n"
9
- "Last-Translator: Web factory Ltd <info@webfactoryltd.com>\n"
10
- "Language-Team: LANGUAGE <gmw@webfactoryltd.com>\n"
11
- "Language: en_US\n"
12
  "MIME-Version: 1.0\n"
13
  "Content-Type: text/plain; charset=UTF-8\n"
14
  "Content-Transfer-Encoding: 8bit\n"
15
- "Plural-Forms: nplurals=2; plural=(n != 1);\n"
16
- "X-Generator: Poedit 1.7.3\n"
 
17
 
18
- # google-maps-widget.php:199
19
  msgid ""
20
- " Shortcode <i>[gmw]</i> is already in use by another plugin or theme. Please "
21
- "deactivate that theme or plugin."
 
 
 
22
  msgstr ""
23
 
24
- msgid "0 - entire world"
 
25
  msgstr ""
26
 
27
- # gmw-widget.php:235
28
- msgid "Activate extra features &amp; options"
29
  msgstr ""
30
 
31
- # gmw-widget.php:178
32
- msgid "Add more schemes for free"
 
33
  msgstr ""
34
 
35
- # gmw-widget.php:210
36
- msgid "Add more skins for free"
 
 
37
  msgstr ""
38
 
39
- msgid "Address"
 
40
  msgstr ""
41
 
42
- # gmw-widget.php:214
43
- msgid "Address Bubble"
44
  msgstr ""
45
 
46
- # gmw-widget.php:120
47
- msgid "Apple"
48
  msgstr ""
49
 
50
- msgid "Black"
 
51
  msgstr ""
52
 
53
- msgid "Blue"
 
 
 
 
 
54
  msgstr ""
55
 
 
 
 
 
 
56
  msgid "Brown"
57
  msgstr ""
58
 
59
- # google-maps-widget.php:200
60
- msgid "Check your inbox. Email with activation code is on its way."
61
  msgstr ""
62
 
63
- msgid "Click to open larger map"
 
64
  msgstr ""
65
 
66
- # gmw-widget.php:174
67
- msgid "Color Scheme"
68
  msgstr ""
69
 
70
- msgid "Configure Google Maps Widget"
 
71
  msgstr ""
72
 
73
- msgid "Custom"
 
74
  msgstr ""
75
 
76
- # gmw-widget.php:113
77
- # gmw-widget.php:171
78
- msgid "Custom URL"
79
  msgstr ""
80
 
81
- msgid "Dark"
 
82
  msgstr ""
83
 
84
- # gmw-widget.php:116
85
- msgid "Default"
86
  msgstr ""
87
 
88
- msgid "Disable link"
 
89
  msgstr ""
90
 
91
- msgid "Displays a map image thumbnail with a larger map available in a lightbox."
 
92
  msgstr ""
93
 
94
- # gmw-widget.php:106
95
- msgid "Do not show map title on lightbox"
96
  msgstr ""
97
 
98
- #, fuzzy
99
- msgid "Documentation"
100
- msgstr "Documentation"
101
 
102
- msgid "Donate"
 
103
  msgstr ""
104
 
105
- # google-maps-widget.php:247
106
- msgid "Enter your code and activate extra features"
107
  msgstr ""
108
 
109
- msgid "Footer Text"
 
110
  msgstr ""
111
 
112
- # google-maps-widget.php:204
113
- msgid "GOOGLE MAPS WIDGET - Activate Extra Features"
114
  msgstr ""
115
 
116
- msgid "Google Maps Widget"
 
117
  msgstr ""
118
 
119
- # google-maps-widget.php:132
120
- msgid ""
121
- "Google Maps Widget <b>requires WordPress version 3.3</b> or higher to function "
122
- "properly. You are using WordPress version %s. Please <a href=\"%s\">update it</a>."
123
  msgstr ""
124
 
125
- # google-maps-widget.php:199
126
- msgid "Google Maps Widget shortcode is not active!"
127
  msgstr ""
128
 
129
- msgid "Gray"
 
130
  msgstr ""
131
 
132
- msgid "Green"
 
133
  msgstr ""
134
 
135
- msgid "Header Text"
 
136
  msgstr ""
137
 
138
- # gmw-widget.php:103
139
- msgid "Hide"
140
  msgstr ""
141
 
142
- msgid "Hybrid"
 
143
  msgstr ""
144
 
145
- msgid "If you feel we deserve it, buy us coffee"
 
146
  msgstr ""
147
 
148
- msgid "If you like it, please review the plugin"
 
149
  msgstr ""
150
 
151
- # gmw-widget.php:252
152
- msgid ""
153
- "If you subscribe to our mailing list we'll instantly activate additional features "
154
- "in the plugin! At the moment those features are: shortcode support, 3 additional "
155
- "thumbnail map skins and 2 additional lightbox skins. More <i>activate by "
156
- "subscribing</i> features will be available soon!"
157
  msgstr ""
158
 
159
- # gmw-widget.php:130
160
- msgid "Info &amp; Support"
161
  msgstr ""
162
 
163
- msgid "Large (default)"
 
164
  msgstr ""
165
 
166
- msgid "Light (default)"
 
167
  msgstr ""
168
 
169
- msgid "Lightbox (default)"
 
170
  msgstr ""
171
 
172
- # gmw-widget.php:206
173
- msgid "Lightbox Skin"
174
  msgstr ""
175
 
 
176
  msgid "Lightbox map"
177
  msgstr ""
178
 
179
- msgid "Link To"
 
180
  msgstr ""
181
 
182
- msgid "Map"
 
183
  msgstr ""
184
 
 
185
  msgid "Map Size"
186
  msgstr ""
187
 
188
- # gmw-widget.php:219
189
- msgid "Map Title"
190
- msgstr ""
191
-
192
  msgid "Map Type"
193
  msgstr ""
194
 
195
- msgid "Medium"
 
196
  msgstr ""
197
 
198
- msgid "New York, USA"
 
199
  msgstr ""
200
 
201
- msgid "Orange"
 
202
  msgstr ""
203
 
204
- # gmw-widget.php:122
205
- msgid "Paper"
206
  msgstr ""
207
 
208
- msgid "Pin Color"
 
209
  msgstr ""
210
 
211
- # gmw-widget.php:158
212
- msgid "Pin Image URL"
213
  msgstr ""
214
 
215
- msgid "Pin Size"
 
216
  msgstr ""
217
 
218
- msgid "Pin Type"
 
219
  msgstr ""
220
 
221
- # gmw-widget.php:238
222
- msgid "Please save the widget so that the shortcode can be generated."
223
  msgstr ""
224
 
225
- msgid "Predefined (default)"
 
226
  msgstr ""
227
 
228
- msgid "Problems? We are here to help!"
 
229
  msgstr ""
230
 
231
- msgid "Purple"
 
232
  msgstr ""
233
 
234
- # gmw-widget.php:243
235
- msgid "Rate the plugin &amp; spread the word"
236
  msgstr ""
237
 
238
- msgid "Red (default)"
 
239
  msgstr ""
240
 
241
- # gmw-widget.php:117
242
- msgid "Refreshed by Google"
243
  msgstr ""
244
 
245
- msgid "Review the plugin"
 
246
  msgstr ""
247
 
248
- msgid "Road (default)"
 
249
  msgstr ""
250
 
251
- # gmw-widget.php:124
252
- msgid "Rounded"
 
 
 
 
 
253
  msgstr ""
254
 
255
- msgid "Satellite"
 
256
  msgstr ""
257
 
258
- # gmw-widget.php:130
259
- msgid "Shortcode"
260
  msgstr ""
261
 
262
- # gmw-widget.php:104
263
- msgid "Show (default)"
 
 
 
 
264
  msgstr ""
265
 
266
- # gmw-widget.php:107
267
- msgid "Show map title on lightbox (default)"
268
  msgstr ""
269
 
270
- msgid "Small"
 
 
 
271
  msgstr ""
272
 
273
- # google-maps-widget.php:202
274
- msgid "Something is not right on our end. Sorry :( Try again later."
275
  msgstr ""
276
 
277
- # gmw-widget.php:240
278
  msgid ""
279
- "Subscribe and <a class=\"open_promo_dialog\" href=\"#\">activate extra features</"
280
- "a>."
 
281
  msgstr ""
282
 
283
- # gmw-widget.php:250
284
- msgid ""
285
- "Subscribe to our newsletter and <a href=\"#\" class=\"open_promo_dialog\">get "
286
- "extra features</a> <b>for free</b>."
287
  msgstr ""
288
 
289
- # google-maps-widget.php:241
290
- msgid ""
291
- "Subscribe to our newsletter<br>and get extra features &amp; options <b>for FREE</"
292
- "b>!"
293
  msgstr ""
294
 
295
- # google-maps-widget.php:203
296
- msgid "Superb! Extra features are active ;)"
297
  msgstr ""
298
 
299
- #, fuzzy
300
- msgid "Support"
301
- msgstr "Support"
302
 
303
- msgid "Terrain"
 
304
  msgstr ""
305
 
306
- msgid "Text Above Map"
 
307
  msgstr ""
308
 
309
- msgid "Text Below Map"
 
310
  msgstr ""
311
 
312
- msgid "Thumbnail map"
 
313
  msgstr ""
314
 
315
- msgid "Tiny"
 
316
  msgstr ""
317
 
318
- msgid "Title"
 
319
  msgstr ""
320
 
321
- # gmw-widget.php:241
322
  msgid ""
323
- "Use the above shortcode to display this Google Maps Widget instance in any page "
324
- "or post. <br>Please note that your theme might style the widget in the post as if "
325
- "it is placed in a sidebar. In that case use the <code>span.gmw-shortcode-widget</"
326
- "code> class to target the shortcode and make necessary changes via CSS."
327
  msgstr ""
328
 
329
- msgid "View Google Maps Widget documentation"
 
330
  msgstr ""
331
 
332
- msgid "White"
 
 
 
333
  msgstr ""
334
 
335
- msgid "Widgets"
 
 
 
336
  msgstr ""
337
 
338
- msgid "Yellow"
 
339
  msgstr ""
340
 
341
- # google-maps-widget.php:201
 
 
 
 
 
 
 
 
342
  msgid ""
343
  "You are already subscribed to our list. One activation code is valid for all "
344
  "sites so just use the code you already have."
345
  msgstr ""
346
 
347
- # gmw-widget.php:238
348
- msgid "You've already subscribed and activated extra features. Thank you!"
349
  msgstr ""
350
 
351
- msgid "Zoom Level"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
352
  msgstr ""
1
+ # Copyright (C) 2015 Google Maps Widget
2
  # This file is distributed under the same license as the Google Maps Widget package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Google Maps Widget 2.40\n"
6
+ "Report-Msgid-Bugs-To: http://wordpress.org/support/plugin/google-maps-"
7
+ "widget\n"
8
+ "POT-Creation-Date: 2015-05-25 10:45:03+00:00\n"
 
 
 
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
+ "PO-Revision-Date: 2015-05-25 12:40+0\n"
13
+ "Last-Translator: Gordan <gmw@webfactoryltd.com>\n"
14
+ "Language-Team: WebFactory <gmw@webfactoryltd.com>\n"
15
 
16
+ #: gmw-tracking.php:88
17
  msgid ""
18
+ "Please help us improve <strong>Google Maps Widget</strong> by allowing us to "
19
+ "track anonymous usage data. Absolutely <strong>no sensitive data is tracked</"
20
+ "strong> (<a href=\"http://www.googlemapswidget.com/plugin-tracking-info/\" "
21
+ "target=\"_blank\">complete disclosure &amp; details of our tracking policy</"
22
+ "a>)."
23
  msgstr ""
24
 
25
+ #: gmw-tracking.php:89
26
+ msgid "Allow"
27
  msgstr ""
28
 
29
+ #: gmw-tracking.php:90
30
+ msgid "Do not allow tracking"
31
  msgstr ""
32
 
33
+ #: gmw-widget.php:22
34
+ msgid ""
35
+ "Displays a map image thumbnail with a larger map available in a lightbox."
36
  msgstr ""
37
 
38
+ #. #-#-#-#-# plugin.pot (Google Maps Widget 2.35) #-#-#-#-#
39
+ #. Plugin Name of the plugin/theme
40
+ #: gmw-widget.php:24
41
+ msgid "Google Maps Widget"
42
  msgstr ""
43
 
44
+ #: gmw-widget.php:31
45
+ msgid "Map"
46
  msgstr ""
47
 
48
+ #: gmw-widget.php:32
49
+ msgid "New York, USA"
50
  msgstr ""
51
 
52
+ #: gmw-widget.php:69 gmw-widget.php:74
53
+ msgid "Road (default)"
54
  msgstr ""
55
 
56
+ #: gmw-widget.php:70 gmw-widget.php:75
57
+ msgid "Satellite"
58
  msgstr ""
59
 
60
+ #: gmw-widget.php:71 gmw-widget.php:76
61
+ msgid "Terrain"
62
+ msgstr ""
63
+
64
+ #: gmw-widget.php:72 gmw-widget.php:77
65
+ msgid "Hybrid"
66
  msgstr ""
67
 
68
+ #: gmw-widget.php:79
69
+ msgid "Black"
70
+ msgstr ""
71
+
72
+ #: gmw-widget.php:80
73
  msgid "Brown"
74
  msgstr ""
75
 
76
+ #: gmw-widget.php:81
77
+ msgid "Green"
78
  msgstr ""
79
 
80
+ #: gmw-widget.php:82
81
+ msgid "Purple"
82
  msgstr ""
83
 
84
+ #: gmw-widget.php:83
85
+ msgid "Yellow"
86
  msgstr ""
87
 
88
+ #: gmw-widget.php:84 gmw-widget.php:123
89
+ msgid "Blue"
90
  msgstr ""
91
 
92
+ #: gmw-widget.php:85 gmw-widget.php:121
93
+ msgid "Gray"
94
  msgstr ""
95
 
96
+ #: gmw-widget.php:86
97
+ msgid "Orange"
 
98
  msgstr ""
99
 
100
+ #: gmw-widget.php:87
101
+ msgid "Red (default)"
102
  msgstr ""
103
 
104
+ #: gmw-widget.php:88
105
+ msgid "White"
106
  msgstr ""
107
 
108
+ #: gmw-widget.php:90
109
+ msgid "Tiny"
110
  msgstr ""
111
 
112
+ #: gmw-widget.php:91
113
+ msgid "Small"
114
  msgstr ""
115
 
116
+ #: gmw-widget.php:92
117
+ msgid "Medium"
118
  msgstr ""
119
 
120
+ #: gmw-widget.php:93
121
+ msgid "Large (default)"
122
+ msgstr ""
123
 
124
+ #: gmw-widget.php:95
125
+ msgid "0 - entire world"
126
  msgstr ""
127
 
128
+ #: gmw-widget.php:100
129
+ msgid "Light (default)"
130
  msgstr ""
131
 
132
+ #: gmw-widget.php:101
133
+ msgid "Dark"
134
  msgstr ""
135
 
136
+ #: gmw-widget.php:103
137
+ msgid "Hide"
138
  msgstr ""
139
 
140
+ #: gmw-widget.php:104
141
+ msgid "Show (default)"
142
  msgstr ""
143
 
144
+ #: gmw-widget.php:106
145
+ msgid "Do not show map title on lightbox"
 
 
146
  msgstr ""
147
 
148
+ #: gmw-widget.php:107
149
+ msgid "Show map title on lightbox (default)"
150
  msgstr ""
151
 
152
+ #: gmw-widget.php:109
153
+ msgid "Predefined (default)"
154
  msgstr ""
155
 
156
+ #: gmw-widget.php:110
157
+ msgid "Custom"
158
  msgstr ""
159
 
160
+ #: gmw-widget.php:112
161
+ msgid "Lightbox (default)"
162
  msgstr ""
163
 
164
+ #: gmw-widget.php:113 gmw-widget.php:171
165
+ msgid "Custom URL"
166
  msgstr ""
167
 
168
+ #: gmw-widget.php:114
169
+ msgid "Disable link"
170
  msgstr ""
171
 
172
+ #: gmw-widget.php:116
173
+ msgid "Default"
174
  msgstr ""
175
 
176
+ #: gmw-widget.php:117
177
+ msgid "Refreshed by Google"
178
  msgstr ""
179
 
180
+ #: gmw-widget.php:120
181
+ msgid "Apple"
 
 
 
 
182
  msgstr ""
183
 
184
+ #: gmw-widget.php:122
185
+ msgid "Paper"
186
  msgstr ""
187
 
188
+ #: gmw-widget.php:124
189
+ msgid "Rounded"
190
  msgstr ""
191
 
192
+ #: gmw-widget.php:127
193
+ msgid "Title"
194
  msgstr ""
195
 
196
+ #: gmw-widget.php:128
197
+ msgid "Address"
198
  msgstr ""
199
 
200
+ #: gmw-widget.php:130
201
+ msgid "Thumbnail map"
202
  msgstr ""
203
 
204
+ #: gmw-widget.php:130
205
  msgid "Lightbox map"
206
  msgstr ""
207
 
208
+ #: gmw-widget.php:130
209
+ msgid "Shortcode"
210
  msgstr ""
211
 
212
+ #: gmw-widget.php:130
213
+ msgid "Info &amp; Support"
214
  msgstr ""
215
 
216
+ #: gmw-widget.php:133 gmw-widget.php:191
217
  msgid "Map Size"
218
  msgstr ""
219
 
220
+ #: gmw-widget.php:138 gmw-widget.php:196
 
 
 
221
  msgid "Map Type"
222
  msgstr ""
223
 
224
+ #: gmw-widget.php:143
225
+ msgid "Pin Type"
226
  msgstr ""
227
 
228
+ #: gmw-widget.php:148
229
+ msgid "Pin Color"
230
  msgstr ""
231
 
232
+ #: gmw-widget.php:153
233
+ msgid "Pin Size"
234
  msgstr ""
235
 
236
+ #: gmw-widget.php:158
237
+ msgid "Pin Image URL"
238
  msgstr ""
239
 
240
+ #: gmw-widget.php:161 gmw-widget.php:201
241
+ msgid "Zoom Level"
242
  msgstr ""
243
 
244
+ #: gmw-widget.php:166
245
+ msgid "Link To"
246
  msgstr ""
247
 
248
+ #: gmw-widget.php:174
249
+ msgid "Color Scheme"
250
  msgstr ""
251
 
252
+ #: gmw-widget.php:178
253
+ msgid "Add more schemes for FREE"
254
  msgstr ""
255
 
256
+ #: gmw-widget.php:182
257
+ msgid "Text Above Map"
258
  msgstr ""
259
 
260
+ #: gmw-widget.php:185
261
+ msgid "Text Below Map"
262
  msgstr ""
263
 
264
+ #: gmw-widget.php:206
265
+ msgid "Lightbox Skin"
266
  msgstr ""
267
 
268
+ #: gmw-widget.php:210
269
+ msgid "Add more skins for FREE"
270
  msgstr ""
271
 
272
+ #: gmw-widget.php:214
273
+ msgid "Address Bubble"
274
  msgstr ""
275
 
276
+ #: gmw-widget.php:219
277
+ msgid "Map Title"
278
  msgstr ""
279
 
280
+ #: gmw-widget.php:224
281
+ msgid "Header Text"
282
  msgstr ""
283
 
284
+ #: gmw-widget.php:227
285
+ msgid "Footer Text"
286
  msgstr ""
287
 
288
+ #: gmw-widget.php:238
289
+ msgid "Please save the widget so that the shortcode can be generated."
290
  msgstr ""
291
 
292
+ #: gmw-widget.php:241
293
+ msgid ""
294
+ "Use the above shortcode to display this Google Maps Widget instance in any "
295
+ "page or post. <br>Please note that your theme might style the widget in the "
296
+ "post as if it is placed in a sidebar. In that case use the <code>span.gmw-"
297
+ "shortcode-widget</code> class to target the shortcode and make necessary "
298
+ "changes via CSS."
299
  msgstr ""
300
 
301
+ #: gmw-widget.php:249 google-maps-widget.php:113
302
+ msgid "Support"
303
  msgstr ""
304
 
305
+ #: gmw-widget.php:251
306
+ msgid "Activate extra features &amp; options"
307
  msgstr ""
308
 
309
+ #: gmw-widget.php:252
310
+ msgid ""
311
+ "If you subscribe to our mailing list we'll instantly activate additional "
312
+ "features in the plugin! At the moment those features are: shortcode support, "
313
+ "3 additional thumbnail map skins and 2 additional lightbox skins. More "
314
+ "<i>activate by subscribing</i> features will be available soon!"
315
  msgstr ""
316
 
317
+ #: gmw-widget.php:254
318
+ msgid "You've already subscribed and activated extra features. Thank you!"
319
  msgstr ""
320
 
321
+ #: gmw-widget.php:256
322
+ msgid ""
323
+ "Subscribe and <a class=\"open_promo_dialog\" href=\"#\">activate extra "
324
+ "features</a>."
325
  msgstr ""
326
 
327
+ #: gmw-widget.php:259
328
+ msgid "Rate the plugin &amp; spread the word"
329
  msgstr ""
330
 
331
+ #: gmw-widget.php:266
332
  msgid ""
333
+ "Click to <a href=\"#\" class=\"open_promo_dialog\">get extra premium "
334
+ "features</a> for Google Maps Widget! For <b><span style=\"color: #d54e21;"
335
+ "\">FREE</span></b>."
336
  msgstr ""
337
 
338
+ #: gmw-widget.php:368 gmw-widget.php:374
339
+ msgid "Click to open larger map"
 
 
340
  msgstr ""
341
 
342
+ #: google-maps-widget.php:103
343
+ msgid "Configure Google Maps Widget"
 
 
344
  msgstr ""
345
 
346
+ #: google-maps-widget.php:103
347
+ msgid "Widgets"
348
  msgstr ""
349
 
350
+ #: google-maps-widget.php:112
351
+ msgid "View Google Maps Widget documentation"
352
+ msgstr ""
353
 
354
+ #: google-maps-widget.php:112
355
+ msgid "Documentation"
356
  msgstr ""
357
 
358
+ #: google-maps-widget.php:113
359
+ msgid "Problems? We are here to help!"
360
  msgstr ""
361
 
362
+ #: google-maps-widget.php:114
363
+ msgid "If you like it, please review the plugin"
364
  msgstr ""
365
 
366
+ #: google-maps-widget.php:114
367
+ msgid "Review the plugin"
368
  msgstr ""
369
 
370
+ #: google-maps-widget.php:115
371
+ msgid "If you feel we deserve it, buy us coffee"
372
  msgstr ""
373
 
374
+ #: google-maps-widget.php:115
375
+ msgid "Donate"
376
  msgstr ""
377
 
378
+ #: google-maps-widget.php:138
379
  msgid ""
380
+ "Google Maps Widget <b>requires WordPress version 3.3</b> or higher to "
381
+ "function properly. You are using WordPress version %s. Please <a href=\"%s"
382
+ "\">update it</a>."
 
383
  msgstr ""
384
 
385
+ #: google-maps-widget.php:205
386
+ msgid "Google Maps Widget shortcode is not active!"
387
  msgstr ""
388
 
389
+ #: google-maps-widget.php:205
390
+ msgid ""
391
+ " Shortcode <i>[gmw]</i> is already in use by another plugin or theme. Please "
392
+ "deactivate that theme or plugin."
393
  msgstr ""
394
 
395
+ #: google-maps-widget.php:259
396
+ msgid ""
397
+ "<b>Google Maps Widget</b> has extra premium features you can get for <b "
398
+ "style=\"color: #d54e21;\">FREE</b>. This is a limited time offer so act now!"
399
  msgstr ""
400
 
401
+ #: google-maps-widget.php:261
402
+ msgid "Activate premium features for <b>FREE</b>"
403
  msgstr ""
404
 
405
+ #: google-maps-widget.php:262
406
+ msgid "Dismiss notice"
407
+ msgstr ""
408
+
409
+ #: google-maps-widget.php:290
410
+ msgid "Check your inbox. Email with activation code is on its way."
411
+ msgstr ""
412
+
413
+ #: google-maps-widget.php:291
414
  msgid ""
415
  "You are already subscribed to our list. One activation code is valid for all "
416
  "sites so just use the code you already have."
417
  msgstr ""
418
 
419
+ #: google-maps-widget.php:292
420
+ msgid "Something is not right on our end. Sorry :( Try again later."
421
  msgstr ""
422
 
423
+ #: google-maps-widget.php:293
424
+ msgid "Superb! Extra features are active ;)"
425
+ msgstr ""
426
+
427
+ #: google-maps-widget.php:294
428
+ msgid "GOOGLE MAPS WIDGET - Activate Extra Features"
429
+ msgstr ""
430
+
431
+ #: google-maps-widget.php:338
432
+ msgid ""
433
+ "Fill out the form and<br>get extra features &amp; options <b>for FREE</b> "
434
+ "instantly!"
435
+ msgstr ""
436
+
437
+ #: google-maps-widget.php:344
438
+ msgid "Enter your code and activate extra features"
439
+ msgstr ""
440
+
441
+ #. Plugin URI of the plugin/theme
442
+ msgid "http://www.googlemapswidget.com/"
443
+ msgstr ""
444
+
445
+ #. Description of the plugin/theme
446
+ msgid ""
447
+ "Display a single-image super-fast loading Google map in a widget. A larger, "
448
+ "full featured map is available on click in a lightbox. Includes shortcode "
449
+ "support and numerous options."
450
+ msgstr ""
451
+
452
+ #. Author of the plugin/theme
453
+ msgid "Web factory Ltd"
454
+ msgstr ""
455
+
456
+ #. Author URI of the plugin/theme
457
+ msgid "http://www.webfactoryltd.com/"
458
  msgstr ""
readme.txt CHANGED
@@ -1,11 +1,12 @@
1
  === Google Maps Widget ===
2
  Contributors: WebFactory
3
- Tags: google maps, maps, gmaps, widget, lightbox, map, google map, fancybox, fancybox2, multilingual, sidebar, chinese, shortcode, gmw, fast
 
4
  License: GPLv2 or later
5
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
6
  Requires at least: 3.3
7
  Tested up to: 4.2
8
- Stable tag: 2.35
9
 
10
  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.
11
 
@@ -119,6 +120,13 @@ If you can't figure it out open a thread in the support forums.
119
  6. Widget options - info & support
120
 
121
  == Changelog ==
 
 
 
 
 
 
 
122
  = 2.35 =
123
  * 2015/04/27
124
  * few small bugs fixed
1
  === Google Maps Widget ===
2
  Contributors: WebFactory
3
+ Tags: address, best google maps, best maps, chinese, cross-browser, custom google map, custom google maps, custom marker, custom marker icons, directions, easy map, fancybox, fancybox2, fast, fully documented, gecode, geo, gmaps, gmw, google map, google map plugin, google map shortcode, google map widget, google maps, google maps api, google maps builder, google maps directions, google maps plugin, google maps v3, google maps widget, googlemaps, latitude, lightbox, location, location by address, location by latitude/longitude, longitude, map, map directions, map marker, map markers, map plugin, map shortcode, map styles, map widget, maps, marker, marker icons, multilingual, pin, place, placemarker, post map, posts, reverse geocode, shortcode, sidebar, streetview, traffic/bike lanes, widget, widget map, wp google map, wp google maps, wp map, wp maps
4
+ Donate link: https://www.paypal.com/cgi-bin/webscr?business=gordan@webfactoryltd.com&cmd=_xclick&currency_code=USD&amount=&item_name=Google%20Maps%20Widget%20Donation
5
  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.40
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
 
120
  6. Widget options - info & support
121
 
122
  == Changelog ==
123
+ = 2.40 =
124
+ * 2015/05/25
125
+ * few small bugs fixed
126
+ * admin JS completely rebuilt
127
+ * fixed PO file
128
+ * we broke 90,000 installations ;)
129
+
130
  = 2.35 =
131
  * 2015/04/27
132
  * few small bugs fixed