WP Google Maps - Version 6.3.02

Version Description

  • 2015-11-06 - Low priority =
  • A new theme directory has been created - this allows you to use any map theme or style that you want simply by copying and pasting it's data
Download this release

Release Info

Developer WPGMaps
Plugin Icon 128x128 WP Google Maps
Version 6.3.02
Comparing to
See all releases

Code changes from version 6.3.01 to 6.3.02

cache/timthumb_cacheLastCleanTime.touch ADDED
File without changes
cache/timthumb_int_1feb94dfe4564036dfa309e87c1c70aa.timthumb.txt ADDED
Binary file
cache/timthumb_int_9b31d30bd2ddcfe0c062091cc5c498d7.timthumb.txt ADDED
Binary file
cache/wpgmaps.tmp ADDED
@@ -0,0 +1 @@
 
1
+ Permission Check
js/wpgmaps_tabs.js CHANGED
@@ -35,27 +35,38 @@ jQuery("document").ready(function() {
35
  }
36
  });
37
 
 
 
 
38
 
39
- jQuery(".wpgmza_theme_selection").click(function() {
40
- var tid = jQuery(this).attr('tid');
41
- var style_data = JSON.parse(jQuery("#rb_wpgmza_theme_data_"+tid).val());
42
 
43
- jQuery('.wpgmza_theme_radio').each(function(i, obj) {
44
- jQuery(this).attr('checked', false);
45
- });
46
- jQuery("#rb_wpgmza_theme_"+tid).attr('checked', true);
47
- jQuery('.wpgmza_theme_selection').each(function(i, obj) {
48
- jQuery(this).removeClass("wpgmza_theme_selection_activate");
49
- });
50
 
51
- jQuery("#wpgmza_theme_selection_"+tid).addClass("wpgmza_theme_selection_activate");
52
-
53
-
54
 
 
 
 
 
55
 
 
56
 
57
- MYMAP.map.setOptions({styles: style_data});
58
- });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
59
 
60
 
61
 
35
  }
36
  });
37
 
38
+ jQuery("#wpgmza_preview_theme").click(function() {
39
+ var style_data_orig = jQuery("#wpgmza_styling_json").val();
40
+ var style_data = JSON.parse(style_data_orig);
41
 
 
 
 
42
 
43
+ MYMAP.map.setOptions({styles: style_data});
 
 
 
 
 
 
44
 
45
+ });
 
 
46
 
47
+ jQuery(".wpgmza_theme_selection").click(function() {
48
+ var tid = jQuery(this).attr('tid');
49
+ var style_data_orig = jQuery("#rb_wpgmza_theme_data_"+tid).val();
50
+ var style_data = JSON.parse(style_data_orig);
51
 
52
+ jQuery("#wpgmza_styling_json").val(style_data_orig);
53
 
54
+ jQuery('.wpgmza_theme_radio').each(function(i, obj) {
55
+ jQuery(this).attr('checked', false);
56
+ });
57
+ jQuery("#rb_wpgmza_theme_"+tid).attr('checked', true);
58
+ jQuery('.wpgmza_theme_selection').each(function(i, obj) {
59
+ jQuery(this).removeClass("wpgmza_theme_selection_activate");
60
+ });
61
+
62
+ jQuery("#wpgmza_theme_selection_"+tid).addClass("wpgmza_theme_selection_activate");
63
+
64
+
65
+
66
+
67
+
68
+ MYMAP.map.setOptions({styles: style_data});
69
+ });
70
 
71
 
72
 
readme.txt CHANGED
@@ -24,6 +24,7 @@ The [WP Google Maps Pro Version](http://www.wpgmaps.com/purchase-professional-ve
24
  * Responsive maps
25
  * Edit your map markers with the click of a button
26
  * 9 popular map themes to choose from
 
27
  * Drag map markers to an exact location
28
  * Google Maps Streetview supported
29
  * UTF-8 character support
@@ -205,6 +206,9 @@ Please upgrade your version of WP Google Maps to version 6.0.27 as it includes m
205
 
206
  == Changelog ==
207
 
 
 
 
208
  = 6.3.01 - 2015-10-06 - Low priority =
209
  * Added 3 new google maps custom themes
210
  * Corrected internationalization
24
  * Responsive maps
25
  * Edit your map markers with the click of a button
26
  * 9 popular map themes to choose from
27
+ * Create or add your own map theme
28
  * Drag map markers to an exact location
29
  * Google Maps Streetview supported
30
  * UTF-8 character support
206
 
207
  == Changelog ==
208
 
209
+ = 6.3.02 - 2015-11-06 - Low priority =
210
+ * A new theme directory has been created - this allows you to use any map theme or style that you want simply by copying and pasting it's data
211
+
212
  = 6.3.01 - 2015-10-06 - Low priority =
213
  * Added 3 new google maps custom themes
214
  * Corrected internationalization
wpGoogleMaps.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: WP Google Maps
4
  Plugin URI: http://www.wpgmaps.com
5
  Description: The easiest to use Google Maps plugin! Create custom Google Maps with high quality markers containing locations, descriptions, images and links. Add your customized map to your WordPress posts and/or pages quickly and easily with the supplied shortcode. No fuss.
6
- Version: 6.3.01
7
  Author: WP Google Maps
8
  Author URI: http://www.wpgmaps.com
9
  Text Domain: wp-google-maps
@@ -11,6 +11,9 @@ Domain Path: /languages
11
  */
12
 
13
  /*
 
 
 
14
  * 6.3.01 - 2015-10-06 - Low priority
15
  * Added 3 new google map custom themes
16
  * Corrected internationalization
@@ -198,8 +201,8 @@ $wpgmza_tblname_poly = $wpdb->prefix . "wpgmza_polygon";
198
  $wpgmza_tblname_polylines = $wpdb->prefix . "wpgmza_polylines";
199
  $wpgmza_tblname_categories = $wpdb->prefix. "wpgmza_categories";
200
  $wpgmza_tblname_category_maps = $wpdb->prefix. "wpgmza_category_maps";
201
- $wpgmza_version = "6.3.01";
202
- $wpgmza_p_version = "6.3.01";
203
  $wpgmza_t = "basic";
204
  define("WPGMAPS", $wpgmza_version);
205
  define("WPGMAPS_DIR",plugin_dir_url(__FILE__));
@@ -2925,6 +2928,7 @@ function wpgmaps_head() {
2925
  if (isset($_POST['wpgmza_store_locator_restrict'])) { $other_settings['wpgmza_store_locator_restrict'] = sanitize_text_field($_POST['wpgmza_store_locator_restrict']); }
2926
 
2927
 
 
2928
  $other_settings['map_max_zoom'] = sanitize_text_field($map_max_zoom);
2929
  /* deprecated in 6.2.0
2930
 
@@ -2944,6 +2948,10 @@ function wpgmaps_head() {
2944
  $other_settings['wpgmza_theme_selection'] = $theme;
2945
  }
2946
 
 
 
 
 
2947
  $other_settings_data = maybe_serialize($other_settings);
2948
 
2949
  $data['map_default_starting_lat'] = $map_start_lat;
@@ -3237,7 +3245,6 @@ function wpgmaps_head() {
3237
  if (isset($_POST['wpgmza_marker_xml_url'])) { update_option("wpgmza_xml_url",sanitize_text_field($_POST['wpgmza_marker_xml_url'])); }
3238
  if (isset($_POST['wpgmza_access_level'])) { $wpgmza_data['wpgmza_settings_access_level'] = sanitize_text_field($_POST['wpgmza_access_level']); }
3239
  if (isset($_POST['wpgmza_settings_marker_pull'])) { $wpgmza_data['wpgmza_settings_marker_pull'] = sanitize_text_field($_POST['wpgmza_settings_marker_pull']); }
3240
-
3241
  update_option('WPGMZA_OTHER_SETTINGS', $wpgmza_data);
3242
  echo "<div class='updated'>";
3243
  _e("Your settings have been saved.","wp-google-maps");
@@ -4557,7 +4564,7 @@ function wpgmza_basic_menu() {
4557
  <table class='' id='wpgmaps_theme_table'>
4558
 
4559
  <tr>
4560
- <td>
4561
  <img src=\"".WPGMAPS_DIR."/images/theme_0.jpg\" title=\"Default\" id=\"wpgmza_theme_selection_0\" width=\"200\" class=\"wpgmza_theme_selection ".$wpgmza_theme_class[0]."\" tid=\"0\">
4562
  <img src=\"".WPGMAPS_DIR."/images/theme_1.jpg\" title=\"Blue\" id=\"wpgmza_theme_selection_1\" width=\"200\" class=\"wpgmza_theme_selection ".$wpgmza_theme_class[1]."\" tid=\"1\">
4563
  <img src=\"".WPGMAPS_DIR."/images/theme_2.jpg\" title=\"Apple Maps\" id=\"wpgmza_theme_selection_2\" width=\"200\" class=\"wpgmza_theme_selection ".$wpgmza_theme_class[2]."\" tid=\"2\">
@@ -4586,10 +4593,21 @@ function wpgmza_basic_menu() {
4586
  <textarea name=\"wpgmza_theme_data_7\" id=\"rb_wpgmza_theme_data_7\" class=\"wpgmza_hide_input\">[{\"featureType\":\"administrative.locality\",\"elementType\":\"all\",\"stylers\":[{\"hue\":\"#2c2e33\"},{\"saturation\":7},{\"lightness\":19},{\"visibility\":\"on\"}]},{\"featureType\":\"landscape\",\"elementType\":\"all\",\"stylers\":[{\"hue\":\"#ffffff\"},{\"saturation\":-100},{\"lightness\":100},{\"visibility\":\"simplified\"}]},{\"featureType\":\"poi\",\"elementType\":\"all\",\"stylers\":[{\"hue\":\"#ffffff\"},{\"saturation\":-100},{\"lightness\":100},{\"visibility\":\"off\"}]},{\"featureType\":\"road\",\"elementType\":\"geometry\",\"stylers\":[{\"hue\":\"#bbc0c4\"},{\"saturation\":-93},{\"lightness\":31},{\"visibility\":\"simplified\"}]},{\"featureType\":\"road\",\"elementType\":\"labels\",\"stylers\":[{\"hue\":\"#bbc0c4\"},{\"saturation\":-93},{\"lightness\":31},{\"visibility\":\"on\"}]},{\"featureType\":\"road.arterial\",\"elementType\":\"labels\",\"stylers\":[{\"hue\":\"#bbc0c4\"},{\"saturation\":-93},{\"lightness\":-2},{\"visibility\":\"simplified\"}]},{\"featureType\":\"road.local\",\"elementType\":\"geometry\",\"stylers\":[{\"hue\":\"#e9ebed\"},{\"saturation\":-90},{\"lightness\":-8},{\"visibility\":\"simplified\"}]},{\"featureType\":\"transit\",\"elementType\":\"all\",\"stylers\":[{\"hue\":\"#e9ebed\"},{\"saturation\":10},{\"lightness\":69},{\"visibility\":\"on\"}]},{\"featureType\":\"water\",\"elementType\":\"all\",\"stylers\":[{\"hue\":\"#e9ebed\"},{\"saturation\":-78},{\"lightness\":67},{\"visibility\":\"simplified\"}]}]</textarea>
4587
  <textarea name=\"wpgmza_theme_data_8\" id=\"rb_wpgmza_theme_data_8\" class=\"wpgmza_hide_input\">[{\"featureType\":\"administrative\",\"stylers\":[{\"visibility\":\"off\"}]},{\"featureType\":\"poi\",\"stylers\":[{\"visibility\":\"simplified\"}]},{\"featureType\":\"road\",\"elementType\":\"labels\",\"stylers\":[{\"visibility\":\"simplified\"}]},{\"featureType\":\"water\",\"stylers\":[{\"visibility\":\"simplified\"}]},{\"featureType\":\"transit\",\"stylers\":[{\"visibility\":\"simplified\"}]},{\"featureType\":\"landscape\",\"stylers\":[{\"visibility\":\"simplified\"}]},{\"featureType\":\"road.highway\",\"stylers\":[{\"visibility\":\"off\"}]},{\"featureType\":\"road.local\",\"stylers\":[{\"visibility\":\"on\"}]},{\"featureType\":\"road.highway\",\"elementType\":\"geometry\",\"stylers\":[{\"visibility\":\"on\"}]},{\"featureType\":\"water\",\"stylers\":[{\"color\":\"#84afa3\"},{\"lightness\":52}]},{\"stylers\":[{\"saturation\":-17},{\"gamma\":0.36}]},{\"featureType\":\"transit.line\",\"elementType\":\"geometry\",\"stylers\":[{\"color\":\"#3f518c\"}]}]</textarea>
4588
  </td>
 
 
 
 
 
 
 
4589
 
4590
  </tr>
4591
  <tr>
4592
- <td><p>Need more control over the design of your map? Create advanced map styles with the <a href='http://www.wpgmaps.com/purchase-professional-version/?utm_source=plugin&utm_medium=link&utm_campaign=morethemes_1' target='_BLANK'>Pro add-on</a> + <a href='http://www.wpgmaps.com/gold-add-on/?utm_source=plugin&utm_medium=link&utm_campaign=morethemes_2' target='_BLANK'>Gold add-on</a>.</p></td>
 
 
 
 
4593
  </tr>
4594
  </table>
4595
 
3
  Plugin Name: WP Google Maps
4
  Plugin URI: http://www.wpgmaps.com
5
  Description: The easiest to use Google Maps plugin! Create custom Google Maps with high quality markers containing locations, descriptions, images and links. Add your customized map to your WordPress posts and/or pages quickly and easily with the supplied shortcode. No fuss.
6
+ Version: 6.3.02
7
  Author: WP Google Maps
8
  Author URI: http://www.wpgmaps.com
9
  Text Domain: wp-google-maps
11
  */
12
 
13
  /*
14
+ * 6.3.02 - 2015-11-06 - Low priority
15
+ * A new theme directory has been created - this allows you to use any map theme or style that you want simply by copying and pasting it's data
16
+ *
17
  * 6.3.01 - 2015-10-06 - Low priority
18
  * Added 3 new google map custom themes
19
  * Corrected internationalization
201
  $wpgmza_tblname_polylines = $wpdb->prefix . "wpgmza_polylines";
202
  $wpgmza_tblname_categories = $wpdb->prefix. "wpgmza_categories";
203
  $wpgmza_tblname_category_maps = $wpdb->prefix. "wpgmza_category_maps";
204
+ $wpgmza_version = "6.3.02";
205
+ $wpgmza_p_version = "6.3.02";
206
  $wpgmza_t = "basic";
207
  define("WPGMAPS", $wpgmza_version);
208
  define("WPGMAPS_DIR",plugin_dir_url(__FILE__));
2928
  if (isset($_POST['wpgmza_store_locator_restrict'])) { $other_settings['wpgmza_store_locator_restrict'] = sanitize_text_field($_POST['wpgmza_store_locator_restrict']); }
2929
 
2930
 
2931
+
2932
  $other_settings['map_max_zoom'] = sanitize_text_field($map_max_zoom);
2933
  /* deprecated in 6.2.0
2934
 
2948
  $other_settings['wpgmza_theme_selection'] = $theme;
2949
  }
2950
 
2951
+ /* overwrite theme data if a custom theme is selected */
2952
+ if (isset($_POST['wpgmza_styling_json'])) { $other_settings['wpgmza_theme_data'] = sanitize_text_field($_POST['wpgmza_styling_json']); }
2953
+
2954
+
2955
  $other_settings_data = maybe_serialize($other_settings);
2956
 
2957
  $data['map_default_starting_lat'] = $map_start_lat;
3245
  if (isset($_POST['wpgmza_marker_xml_url'])) { update_option("wpgmza_xml_url",sanitize_text_field($_POST['wpgmza_marker_xml_url'])); }
3246
  if (isset($_POST['wpgmza_access_level'])) { $wpgmza_data['wpgmza_settings_access_level'] = sanitize_text_field($_POST['wpgmza_access_level']); }
3247
  if (isset($_POST['wpgmza_settings_marker_pull'])) { $wpgmza_data['wpgmza_settings_marker_pull'] = sanitize_text_field($_POST['wpgmza_settings_marker_pull']); }
 
3248
  update_option('WPGMZA_OTHER_SETTINGS', $wpgmza_data);
3249
  echo "<div class='updated'>";
3250
  _e("Your settings have been saved.","wp-google-maps");
4564
  <table class='' id='wpgmaps_theme_table'>
4565
 
4566
  <tr>
4567
+ <td width='50%'>
4568
  <img src=\"".WPGMAPS_DIR."/images/theme_0.jpg\" title=\"Default\" id=\"wpgmza_theme_selection_0\" width=\"200\" class=\"wpgmza_theme_selection ".$wpgmza_theme_class[0]."\" tid=\"0\">
4569
  <img src=\"".WPGMAPS_DIR."/images/theme_1.jpg\" title=\"Blue\" id=\"wpgmza_theme_selection_1\" width=\"200\" class=\"wpgmza_theme_selection ".$wpgmza_theme_class[1]."\" tid=\"1\">
4570
  <img src=\"".WPGMAPS_DIR."/images/theme_2.jpg\" title=\"Apple Maps\" id=\"wpgmza_theme_selection_2\" width=\"200\" class=\"wpgmza_theme_selection ".$wpgmza_theme_class[2]."\" tid=\"2\">
4593
  <textarea name=\"wpgmza_theme_data_7\" id=\"rb_wpgmza_theme_data_7\" class=\"wpgmza_hide_input\">[{\"featureType\":\"administrative.locality\",\"elementType\":\"all\",\"stylers\":[{\"hue\":\"#2c2e33\"},{\"saturation\":7},{\"lightness\":19},{\"visibility\":\"on\"}]},{\"featureType\":\"landscape\",\"elementType\":\"all\",\"stylers\":[{\"hue\":\"#ffffff\"},{\"saturation\":-100},{\"lightness\":100},{\"visibility\":\"simplified\"}]},{\"featureType\":\"poi\",\"elementType\":\"all\",\"stylers\":[{\"hue\":\"#ffffff\"},{\"saturation\":-100},{\"lightness\":100},{\"visibility\":\"off\"}]},{\"featureType\":\"road\",\"elementType\":\"geometry\",\"stylers\":[{\"hue\":\"#bbc0c4\"},{\"saturation\":-93},{\"lightness\":31},{\"visibility\":\"simplified\"}]},{\"featureType\":\"road\",\"elementType\":\"labels\",\"stylers\":[{\"hue\":\"#bbc0c4\"},{\"saturation\":-93},{\"lightness\":31},{\"visibility\":\"on\"}]},{\"featureType\":\"road.arterial\",\"elementType\":\"labels\",\"stylers\":[{\"hue\":\"#bbc0c4\"},{\"saturation\":-93},{\"lightness\":-2},{\"visibility\":\"simplified\"}]},{\"featureType\":\"road.local\",\"elementType\":\"geometry\",\"stylers\":[{\"hue\":\"#e9ebed\"},{\"saturation\":-90},{\"lightness\":-8},{\"visibility\":\"simplified\"}]},{\"featureType\":\"transit\",\"elementType\":\"all\",\"stylers\":[{\"hue\":\"#e9ebed\"},{\"saturation\":10},{\"lightness\":69},{\"visibility\":\"on\"}]},{\"featureType\":\"water\",\"elementType\":\"all\",\"stylers\":[{\"hue\":\"#e9ebed\"},{\"saturation\":-78},{\"lightness\":67},{\"visibility\":\"simplified\"}]}]</textarea>
4594
  <textarea name=\"wpgmza_theme_data_8\" id=\"rb_wpgmza_theme_data_8\" class=\"wpgmza_hide_input\">[{\"featureType\":\"administrative\",\"stylers\":[{\"visibility\":\"off\"}]},{\"featureType\":\"poi\",\"stylers\":[{\"visibility\":\"simplified\"}]},{\"featureType\":\"road\",\"elementType\":\"labels\",\"stylers\":[{\"visibility\":\"simplified\"}]},{\"featureType\":\"water\",\"stylers\":[{\"visibility\":\"simplified\"}]},{\"featureType\":\"transit\",\"stylers\":[{\"visibility\":\"simplified\"}]},{\"featureType\":\"landscape\",\"stylers\":[{\"visibility\":\"simplified\"}]},{\"featureType\":\"road.highway\",\"stylers\":[{\"visibility\":\"off\"}]},{\"featureType\":\"road.local\",\"stylers\":[{\"visibility\":\"on\"}]},{\"featureType\":\"road.highway\",\"elementType\":\"geometry\",\"stylers\":[{\"visibility\":\"on\"}]},{\"featureType\":\"water\",\"stylers\":[{\"color\":\"#84afa3\"},{\"lightness\":52}]},{\"stylers\":[{\"saturation\":-17},{\"gamma\":0.36}]},{\"featureType\":\"transit.line\",\"elementType\":\"geometry\",\"stylers\":[{\"color\":\"#3f518c\"}]}]</textarea>
4595
  </td>
4596
+ <td width='50%'>
4597
+ <h3>".__("Or use a custom theme","wp-google-maps")."</h3>
4598
+ <p><a href='http://www.wpgmaps.com/map-themes/?utm_source=plugin&utm_medium=link&utm_campaign=browse_themes' title='' target='_BLANK' class='button button-primary'>".__("Browse the theme directory","wp-google-maps")."</a></p>
4599
+ <p>".__("Paste your custom theme data here:","wp-google-maps")."</p>
4600
+ <textarea name=\"wpgmza_styling_json\" id=\"wpgmza_styling_json\" rows=\"8\" cols=\"40\">".stripslashes($other_settings_data['wpgmza_theme_data'])."</textarea>
4601
+ <p><a href='javascript:void(0);' title='".__("Preview","wp-google-maps")."' class='button button-seconday' id='wpgmza_preview_theme'>".__("Preview","wp-google-maps")."</a></p>
4602
+ </td>
4603
 
4604
  </tr>
4605
  <tr>
4606
+ <td>
4607
+ <p>
4608
+
4609
+ </p>
4610
+ </td>
4611
  </tr>
4612
  </table>
4613