Version Description
- Fixed a Mac Firefox style issue with the WP Google Maps Store Locator
- Fixed a function error in the polyline functions file
Download this release
Release Info
Developer | WPGMaps |
Plugin | WP Google Maps |
Version | 6.0.8 |
Comparing to | |
See all releases |
Code changes from version 6.0.7 to 6.0.8
- base/includes/wp-google-maps-polylines.php +1 -1
- readme.txt +3 -0
- wpGoogleMaps.php +40 -7
base/includes/wp-google-maps-polylines.php
CHANGED
@@ -271,7 +271,7 @@ function wpgmaps_b_admin_edit_polyline_javascript($mapid,$polyid) {
|
|
271 |
|
272 |
|
273 |
|
274 |
-
$poly_array =
|
275 |
|
276 |
$polyoptions = wpgmza_b_return_polyline_options($polyid);
|
277 |
$linecolor = $polyoptions->linecolor;
|
271 |
|
272 |
|
273 |
|
274 |
+
$poly_array = wpgmza_b_return_polyline_array($polyid);
|
275 |
|
276 |
$polyoptions = wpgmza_b_return_polyline_options($polyid);
|
277 |
$linecolor = $polyoptions->linecolor;
|
readme.txt
CHANGED
@@ -98,6 +98,9 @@ Previous versions may cause your blog to slow down. Upgrading to 4.5 will get ri
|
|
98 |
|
99 |
|
100 |
== Changelog ==
|
|
|
|
|
|
|
101 |
|
102 |
= 6.0.7 =
|
103 |
* Upgrading of plugin is now handled correctly
|
98 |
|
99 |
|
100 |
== Changelog ==
|
101 |
+
= 6.0.8 =
|
102 |
+
* Fixed a Mac Firefox style issue with the WP Google Maps Store Locator
|
103 |
+
* Fixed a function error in the polyline functions file
|
104 |
|
105 |
= 6.0.7 =
|
106 |
* Upgrading of plugin is now handled correctly
|
wpGoogleMaps.php
CHANGED
@@ -3,12 +3,16 @@
|
|
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.0.
|
7 |
Author: WP Google Maps
|
8 |
Author URI: http://www.wpgmaps.com
|
9 |
*/
|
10 |
|
11 |
/*
|
|
|
|
|
|
|
|
|
12 |
* 6.0.7
|
13 |
* Upgrades are now handled correctly
|
14 |
*
|
@@ -75,8 +79,8 @@ $wpgmza_tblname_poly = $wpdb->prefix . "wpgmza_polygon";
|
|
75 |
$wpgmza_tblname_polylines = $wpdb->prefix . "wpgmza_polylines";
|
76 |
$wpgmza_tblname_categories = $wpdb->prefix. "wpgmza_categories";
|
77 |
$wpgmza_tblname_category_maps = $wpdb->prefix. "wpgmza_category_maps";
|
78 |
-
$wpgmza_version = "6.0.
|
79 |
-
$wpgmza_p_version = "6.0.
|
80 |
$wpgmza_t = "basic";
|
81 |
define("WPGMAPS", $wpgmza_version);
|
82 |
define("WPGMAPS_DIR",plugin_dir_url(__FILE__));
|
@@ -1763,7 +1767,7 @@ function wpgmaps_sl_user_output_basic($map_id) {
|
|
1763 |
$ret_msg .= " <div style=\"display:block; float:left; width:250px;\"><input type=\"text\" id=\"addressInput\" size=\"20\"/></div>";
|
1764 |
$ret_msg .= " </div>";
|
1765 |
|
1766 |
-
$ret_msg .= " <div style=\"display:block; width:".$map_width.$map_width_type."; height:30px; margin-top:10px;\">";
|
1767 |
$ret_msg .= " <div style=\"display:block; float:left; width:150px;\">".__("Radius","wp-google-maps").":</div>";
|
1768 |
$ret_msg .= " <div style=\"display:block; float:left; width:250px;\">";
|
1769 |
$ret_msg .= " <input type='hidden' value='".$map_other_settings['store_locator_distance']."' name='wpgmza_distance_type' id='wpgmza_distance_type' />";
|
@@ -1798,7 +1802,7 @@ function wpgmaps_sl_user_output_basic($map_id) {
|
|
1798 |
$ret_msg .= " </div>";
|
1799 |
|
1800 |
if (function_exists("wpgmza_register_pro_version")) {
|
1801 |
-
$ret_msg .= " <div style=\"display:block; width:".$map_width.$map_width_type."; clear:both; height:auto; overflow:auto; margin-top:10px; margin-bottom:10px;\">";
|
1802 |
$ret_msg .= " <div style=\"display:block; float:left; width:150px;\">".__("Category","wp-google-maps").":</div>";
|
1803 |
$ret_msg .= " <div style=\"display:block; float:left; \">";
|
1804 |
$ret_msg .= " ".wpgmza_pro_return_category_checkbox_list($map_id)."";
|
@@ -2457,13 +2461,16 @@ function wpgmaps_admin_menu() {
|
|
2457 |
add_submenu_page('wp-google-maps-menu', 'WP Google Maps - Advanced Options', __('Advanced','wp-google-maps'), 'manage_options' , 'wp-google-maps-menu-advanced', 'wpgmaps_menu_advanced_layout');
|
2458 |
}
|
2459 |
add_submenu_page('wp-google-maps-menu', 'WP Google Maps - Settings', __('Settings','wp-google-maps'), 'manage_options' , 'wp-google-maps-menu-settings', 'wpgmaps_menu_settings_layout');
|
2460 |
-
|
2461 |
-
add_dashboard_page( 'WP Google Maps', 'Custom Dashboard', 'read', 'custom-dashboard', 'wpgmza_dashboard' );
|
2462 |
|
2463 |
}
|
2464 |
|
2465 |
|
2466 |
function wpgmaps_menu_layout() {
|
|
|
|
|
|
|
|
|
|
|
2467 |
//check to see if we have write permissions to the plugin folder
|
2468 |
if (!isset($_GET['action'])) {
|
2469 |
wpgmza_map_page();
|
@@ -2889,6 +2896,32 @@ function wpgmza_basic_menu() {
|
|
2889 |
$wpgmza_act_msg = "<div class=\"update-nag\" style=\"padding:5px; \">".__("Add custom icons, titles, descriptions, pictures and links to your markers with the","wp-google-maps")." \"<a href=\"http://www.wpgmaps.com/purchase-professional-version/?utm_source=plugin&utm_medium=link&utm_campaign=below_marker\" title=\"".__("Pro Edition","wp-google-maps")."\" target=\"_BLANK\">".__("Pro Edition","wp-google-maps")."</a>\" ".__("of this plugin for just","wp-google-maps")." <strong>$14.99</strong></div>";
|
2890 |
$wpgmza_csv = "<p><a href=\"http://www.wpgmaps.com/purchase-professional-version/?utm_source=plugin&utm_medium=link&utm_campaign=csv_link\" title=\"".__("Pro Edition","wp-google-maps")."\">".__("Purchase the Pro Edition","wp-google-maps")."</a> ".__("of WP Google Maps and save your markers to a CSV file!","wp-google-maps")."</p>";
|
2891 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2892 |
echo "
|
2893 |
|
2894 |
<div class='wrap'>
|
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.0.8
|
7 |
Author: WP Google Maps
|
8 |
Author URI: http://www.wpgmaps.com
|
9 |
*/
|
10 |
|
11 |
/*
|
12 |
+
* 6.0.8
|
13 |
+
* Fixed a Mac Firefox style issue with the Store Locator
|
14 |
+
* Fixed a function error in the polyline functions file
|
15 |
+
*
|
16 |
* 6.0.7
|
17 |
* Upgrades are now handled correctly
|
18 |
*
|
79 |
$wpgmza_tblname_polylines = $wpdb->prefix . "wpgmza_polylines";
|
80 |
$wpgmza_tblname_categories = $wpdb->prefix. "wpgmza_categories";
|
81 |
$wpgmza_tblname_category_maps = $wpdb->prefix. "wpgmza_category_maps";
|
82 |
+
$wpgmza_version = "6.0.8";
|
83 |
+
$wpgmza_p_version = "6.0.8";
|
84 |
$wpgmza_t = "basic";
|
85 |
define("WPGMAPS", $wpgmza_version);
|
86 |
define("WPGMAPS_DIR",plugin_dir_url(__FILE__));
|
1767 |
$ret_msg .= " <div style=\"display:block; float:left; width:250px;\"><input type=\"text\" id=\"addressInput\" size=\"20\"/></div>";
|
1768 |
$ret_msg .= " </div>";
|
1769 |
|
1770 |
+
$ret_msg .= " <div style=\"display:block; width:".$map_width.$map_width_type."; height:30px; margin-top:10px; clear:both;\">";
|
1771 |
$ret_msg .= " <div style=\"display:block; float:left; width:150px;\">".__("Radius","wp-google-maps").":</div>";
|
1772 |
$ret_msg .= " <div style=\"display:block; float:left; width:250px;\">";
|
1773 |
$ret_msg .= " <input type='hidden' value='".$map_other_settings['store_locator_distance']."' name='wpgmza_distance_type' id='wpgmza_distance_type' />";
|
1802 |
$ret_msg .= " </div>";
|
1803 |
|
1804 |
if (function_exists("wpgmza_register_pro_version")) {
|
1805 |
+
$ret_msg .= " <div style=\"display:block; width:".$map_width.$map_width_type."; clear:both; height:auto; overflow:auto; margin-top:10px; margin-bottom:10px; clear:both;\">";
|
1806 |
$ret_msg .= " <div style=\"display:block; float:left; width:150px;\">".__("Category","wp-google-maps").":</div>";
|
1807 |
$ret_msg .= " <div style=\"display:block; float:left; \">";
|
1808 |
$ret_msg .= " ".wpgmza_pro_return_category_checkbox_list($map_id)."";
|
2461 |
add_submenu_page('wp-google-maps-menu', 'WP Google Maps - Advanced Options', __('Advanced','wp-google-maps'), 'manage_options' , 'wp-google-maps-menu-advanced', 'wpgmaps_menu_advanced_layout');
|
2462 |
}
|
2463 |
add_submenu_page('wp-google-maps-menu', 'WP Google Maps - Settings', __('Settings','wp-google-maps'), 'manage_options' , 'wp-google-maps-menu-settings', 'wpgmaps_menu_settings_layout');
|
|
|
|
|
2464 |
|
2465 |
}
|
2466 |
|
2467 |
|
2468 |
function wpgmaps_menu_layout() {
|
2469 |
+
|
2470 |
+
|
2471 |
+
|
2472 |
+
|
2473 |
+
|
2474 |
//check to see if we have write permissions to the plugin folder
|
2475 |
if (!isset($_GET['action'])) {
|
2476 |
wpgmza_map_page();
|
2896 |
$wpgmza_act_msg = "<div class=\"update-nag\" style=\"padding:5px; \">".__("Add custom icons, titles, descriptions, pictures and links to your markers with the","wp-google-maps")." \"<a href=\"http://www.wpgmaps.com/purchase-professional-version/?utm_source=plugin&utm_medium=link&utm_campaign=below_marker\" title=\"".__("Pro Edition","wp-google-maps")."\" target=\"_BLANK\">".__("Pro Edition","wp-google-maps")."</a>\" ".__("of this plugin for just","wp-google-maps")." <strong>$14.99</strong></div>";
|
2897 |
$wpgmza_csv = "<p><a href=\"http://www.wpgmaps.com/purchase-professional-version/?utm_source=plugin&utm_medium=link&utm_campaign=csv_link\" title=\"".__("Pro Edition","wp-google-maps")."\">".__("Purchase the Pro Edition","wp-google-maps")."</a> ".__("of WP Google Maps and save your markers to a CSV file!","wp-google-maps")."</p>";
|
2898 |
}
|
2899 |
+
|
2900 |
+
|
2901 |
+
|
2902 |
+
/* check if they are using W3 Total Cache and that wp-google-maps appears in the rejected files list */
|
2903 |
+
if (class_exists("W3_Plugin_TotalCache")) {
|
2904 |
+
$wpgmza_w3_check = new W3_Plugin_TotalCache;
|
2905 |
+
if (function_exists("w3_instance")) {
|
2906 |
+
$modules = w3_instance('W3_ModuleStatus');
|
2907 |
+
$cdn_check = $modules->is_enabled('cdn');
|
2908 |
+
if (strpos(esc_textarea(implode("\r\n", $wpgmza_w3_check->_config->get_array('cdn.reject.files'))),'wp-google-maps') !== false) {
|
2909 |
+
$does_cdn_contain_our_plugin = true;
|
2910 |
+
} else { $does_cdn_contain_our_plugin = false; }
|
2911 |
+
|
2912 |
+
|
2913 |
+
|
2914 |
+
if ($cdn_check == 1 && !$does_cdn_contain_our_plugin) {
|
2915 |
+
echo "<div class=\"update-nag\" style=\"padding:5px; \"><h1>".__("Please note","wp-google-maps").":</h1>".__("We've noticed that you are using W3 Total Cache and that you have CDN enabled.<br /><br />In order for the markers to show up on your map, you need to add '<strong><em>{uploads_dir}/wp-google-maps*</strong></em>' to the '<strong>rejected files</strong>' list in the <a href='admin.php?page=w3tc_cdn#advanced'>CDN settings page</a> of W3 Total Cache","wp-google-maps")."</div>";
|
2916 |
+
}
|
2917 |
+
}
|
2918 |
+
|
2919 |
+
|
2920 |
+
}
|
2921 |
+
|
2922 |
+
|
2923 |
+
|
2924 |
+
|
2925 |
echo "
|
2926 |
|
2927 |
<div class='wrap'>
|