Version Description
- Added bicycle layer
- Added traffic layer
- Fixed the bug that was not allowing users to overwrite existing data when uploading a CSV file
Download this release
Release Info
Developer | WPGMaps |
Plugin | WP Google Maps |
Version | 4.22 |
Comparing to | |
See all releases |
Code changes from version 4.21 to 4.22
- readme.txt +5 -0
- screenshot-2.jpg +0 -0
- screenshot-3.jpg +0 -0
- screenshot-4.jpg +0 -0
- screenshot-5.jpg +0 -0
- screenshot-6.jpg +0 -0
- screenshot-7.jpg +0 -0
- wpGoogleMaps.php +27 -9
readme.txt
CHANGED
@@ -78,6 +78,11 @@ Previous versions may cause your blog to slow down. Upgrading to 4.5 will get ri
|
|
78 |
|
79 |
== Changelog ==
|
80 |
|
|
|
|
|
|
|
|
|
|
|
81 |
= 4.21 =
|
82 |
* Fixed FireFox directions box styling error
|
83 |
* Fixed small bugs
|
78 |
|
79 |
== Changelog ==
|
80 |
|
81 |
+
= 4.22 =
|
82 |
+
* Added bicycle layer
|
83 |
+
* Added traffic layer
|
84 |
+
* Fixed the bug that was not allowing users to overwrite existing data when uploading a CSV file
|
85 |
+
|
86 |
= 4.21 =
|
87 |
* Fixed FireFox directions box styling error
|
88 |
* Fixed small bugs
|
screenshot-2.jpg
ADDED
Binary file
|
screenshot-3.jpg
ADDED
Binary file
|
screenshot-4.jpg
ADDED
Binary file
|
screenshot-5.jpg
ADDED
Binary file
|
screenshot-6.jpg
ADDED
Binary file
|
screenshot-7.jpg
ADDED
Binary file
|
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: 4.
|
7 |
Author: WP Google Maps
|
8 |
Author URI: http://www.wpgmaps.com
|
9 |
*/
|
@@ -28,8 +28,8 @@ $wpgmza_p = false;
|
|
28 |
$wpgmza_g = false;
|
29 |
$wpgmza_tblname = $wpdb->prefix . "wpgmza";
|
30 |
$wpgmza_tblname_maps = $wpdb->prefix . "wpgmza_maps";
|
31 |
-
$wpgmza_version = "4.
|
32 |
-
$wpgmza_p_version = "4.
|
33 |
$wpgmza_t = "basic";
|
34 |
|
35 |
add_action('admin_head', 'wpgmaps_head');
|
@@ -75,7 +75,9 @@ function wpgmaps_activate() {
|
|
75 |
"styling_enabled" => "0",
|
76 |
"styling_json" => "",
|
77 |
"active" => "0",
|
78 |
-
"type" => "1"
|
|
|
|
|
79 |
); }
|
80 |
} else {
|
81 |
$rows_affected = $wpdb->insert( $table_name_maps, array( "map_start_lat" => "".$wpgmza_data['map_start_lat']."",
|
@@ -91,7 +93,9 @@ function wpgmaps_activate() {
|
|
91 |
"styling_enabled" => "0",
|
92 |
"styling_json" => "",
|
93 |
"active" => "0",
|
94 |
-
"directions_enabled" => "".$wpgmza_data['directions_enabled'].""
|
|
|
|
|
95 |
) );
|
96 |
delete_option("WPGMZA");
|
97 |
|
@@ -938,6 +942,8 @@ function wpgmaps_head() {
|
|
938 |
if (isset($_POST['wpgmza_savemap'])){
|
939 |
global $wpdb;
|
940 |
|
|
|
|
|
941 |
$map_id = attribute_escape($_POST['wpgmza_id']);
|
942 |
$map_title = attribute_escape($_POST['wpgmza_title']);
|
943 |
$map_height = attribute_escape($_POST['wpgmza_height']);
|
@@ -947,6 +953,9 @@ function wpgmaps_head() {
|
|
947 |
$type = intval($_POST['wpgmza_map_type']);
|
948 |
$alignment = intval($_POST['wpgmza_map_align']);
|
949 |
$directions_enabled = intval($_POST['wpgmza_directions']);
|
|
|
|
|
|
|
950 |
$gps = explode(",",$map_start_location);
|
951 |
$map_start_lat = $gps[0];
|
952 |
$map_start_lng = $gps[1];
|
@@ -961,6 +970,8 @@ function wpgmaps_head() {
|
|
961 |
$data['map_default_type'] = $type;
|
962 |
$data['map_default_alignment'] = $alignment;
|
963 |
$data['map_default_directions'] = $directions_enabled;
|
|
|
|
|
964 |
$data['map_default_marker'] = $map_default_marker;
|
965 |
|
966 |
|
@@ -978,7 +989,9 @@ function wpgmaps_head() {
|
|
978 |
type = %d,
|
979 |
alignment = %d,
|
980 |
directions_enabled = %d,
|
981 |
-
kml = %s
|
|
|
|
|
982 |
WHERE id = %d",
|
983 |
|
984 |
$map_title,
|
@@ -993,10 +1006,12 @@ function wpgmaps_head() {
|
|
993 |
$alignment,
|
994 |
$directions_enabled,
|
995 |
$kml,
|
|
|
|
|
996 |
$map_id)
|
997 |
);
|
998 |
|
999 |
-
|
1000 |
|
1001 |
|
1002 |
update_option('WPGMZA_SETTINGS', $data);
|
@@ -1046,6 +1061,7 @@ function wpgmaps_head() {
|
|
1046 |
$wpgmza_data['wpgmza_settings_map_zoom'] = attribute_escape($_POST['wpgmza_settings_map_zoom']);
|
1047 |
$wpgmza_data['wpgmza_settings_map_pan'] = attribute_escape($_POST['wpgmza_settings_map_pan']);
|
1048 |
$wpgmza_data['wpgmza_settings_map_type'] = attribute_escape($_POST['wpgmza_settings_map_type']);
|
|
|
1049 |
update_option('WPGMZA_OTHER_SETTINGS', $wpgmza_data);
|
1050 |
echo "<div class='updated'>";
|
1051 |
_e("Your settings have been saved.");
|
@@ -1759,7 +1775,7 @@ function wpgmaps_check_permissions() {
|
|
1759 |
|
1760 |
}
|
1761 |
function wpgmaps_permission_warning() {
|
1762 |
-
echo "<div class='error below-h1'>";
|
1763 |
_e("The plugin directory does not have 'write' permissions. Please enable 'write' permissions (755) for ");
|
1764 |
echo "\"".dirname( __FILE__ )."\" ";
|
1765 |
_e("in order for this plugin to work! Please see ");
|
@@ -1767,7 +1783,7 @@ function wpgmaps_permission_warning() {
|
|
1767 |
_e("this page");
|
1768 |
echo "</a> ";
|
1769 |
_e("for help on how to do it.");
|
1770 |
-
echo "</div>";
|
1771 |
}
|
1772 |
|
1773 |
|
@@ -1841,6 +1857,8 @@ function wpgmaps_handle_db() {
|
|
1841 |
`styling_json` mediumtext NOT NULL,
|
1842 |
`active` INT(1) NOT NULL,
|
1843 |
`kml` VARCHAR(700) NOT NULL,
|
|
|
|
|
1844 |
PRIMARY KEY (`id`)
|
1845 |
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
|
1846 |
";
|
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: 4.22
|
7 |
Author: WP Google Maps
|
8 |
Author URI: http://www.wpgmaps.com
|
9 |
*/
|
28 |
$wpgmza_g = false;
|
29 |
$wpgmza_tblname = $wpdb->prefix . "wpgmza";
|
30 |
$wpgmza_tblname_maps = $wpdb->prefix . "wpgmza_maps";
|
31 |
+
$wpgmza_version = "4.22";
|
32 |
+
$wpgmza_p_version = "4.22";
|
33 |
$wpgmza_t = "basic";
|
34 |
|
35 |
add_action('admin_head', 'wpgmaps_head');
|
75 |
"styling_enabled" => "0",
|
76 |
"styling_json" => "",
|
77 |
"active" => "0",
|
78 |
+
"type" => "1",
|
79 |
+
"bicycle" => "1",
|
80 |
+
"traffic" => "1")
|
81 |
); }
|
82 |
} else {
|
83 |
$rows_affected = $wpdb->insert( $table_name_maps, array( "map_start_lat" => "".$wpgmza_data['map_start_lat']."",
|
93 |
"styling_enabled" => "0",
|
94 |
"styling_json" => "",
|
95 |
"active" => "0",
|
96 |
+
"directions_enabled" => "".$wpgmza_data['directions_enabled']."",
|
97 |
+
"bicycle" => "".$wpgmza_data['bicycle']."",
|
98 |
+
"traffic" => "".$wpgmza_data['traffic'].""
|
99 |
) );
|
100 |
delete_option("WPGMZA");
|
101 |
|
942 |
if (isset($_POST['wpgmza_savemap'])){
|
943 |
global $wpdb;
|
944 |
|
945 |
+
|
946 |
+
|
947 |
$map_id = attribute_escape($_POST['wpgmza_id']);
|
948 |
$map_title = attribute_escape($_POST['wpgmza_title']);
|
949 |
$map_height = attribute_escape($_POST['wpgmza_height']);
|
953 |
$type = intval($_POST['wpgmza_map_type']);
|
954 |
$alignment = intval($_POST['wpgmza_map_align']);
|
955 |
$directions_enabled = intval($_POST['wpgmza_directions']);
|
956 |
+
$bicycle_enabled = intval($_POST['wpgmza_bicycle']);
|
957 |
+
$traffic_enabled = intval($_POST['wpgmza_traffic']);
|
958 |
+
|
959 |
$gps = explode(",",$map_start_location);
|
960 |
$map_start_lat = $gps[0];
|
961 |
$map_start_lng = $gps[1];
|
970 |
$data['map_default_type'] = $type;
|
971 |
$data['map_default_alignment'] = $alignment;
|
972 |
$data['map_default_directions'] = $directions_enabled;
|
973 |
+
$data['map_default_bicycle'] = $bicycle_enabled;
|
974 |
+
$data['map_default_traffic'] = $traffic_enabled;
|
975 |
$data['map_default_marker'] = $map_default_marker;
|
976 |
|
977 |
|
989 |
type = %d,
|
990 |
alignment = %d,
|
991 |
directions_enabled = %d,
|
992 |
+
kml = %s,
|
993 |
+
bicycle = %d,
|
994 |
+
traffic = %d
|
995 |
WHERE id = %d",
|
996 |
|
997 |
$map_title,
|
1006 |
$alignment,
|
1007 |
$directions_enabled,
|
1008 |
$kml,
|
1009 |
+
$bicycle_enabled,
|
1010 |
+
$traffic_enabled,
|
1011 |
$map_id)
|
1012 |
);
|
1013 |
|
1014 |
+
//echo $wpdb->print_error();
|
1015 |
|
1016 |
|
1017 |
update_option('WPGMZA_SETTINGS', $data);
|
1061 |
$wpgmza_data['wpgmza_settings_map_zoom'] = attribute_escape($_POST['wpgmza_settings_map_zoom']);
|
1062 |
$wpgmza_data['wpgmza_settings_map_pan'] = attribute_escape($_POST['wpgmza_settings_map_pan']);
|
1063 |
$wpgmza_data['wpgmza_settings_map_type'] = attribute_escape($_POST['wpgmza_settings_map_type']);
|
1064 |
+
$wpgmza_data['wpgmza_settings_map_scroll'] = attribute_escape($_POST['wpgmza_settings_map_scroll']);
|
1065 |
update_option('WPGMZA_OTHER_SETTINGS', $wpgmza_data);
|
1066 |
echo "<div class='updated'>";
|
1067 |
_e("Your settings have been saved.");
|
1775 |
|
1776 |
}
|
1777 |
function wpgmaps_permission_warning() {
|
1778 |
+
echo "<div class='error below-h1'><big>";
|
1779 |
_e("The plugin directory does not have 'write' permissions. Please enable 'write' permissions (755) for ");
|
1780 |
echo "\"".dirname( __FILE__ )."\" ";
|
1781 |
_e("in order for this plugin to work! Please see ");
|
1783 |
_e("this page");
|
1784 |
echo "</a> ";
|
1785 |
_e("for help on how to do it.");
|
1786 |
+
echo "</big></div>";
|
1787 |
}
|
1788 |
|
1789 |
|
1857 |
`styling_json` mediumtext NOT NULL,
|
1858 |
`active` INT(1) NOT NULL,
|
1859 |
`kml` VARCHAR(700) NOT NULL,
|
1860 |
+
`bicycle` INT(10) NOT NULL,
|
1861 |
+
`traffic` INT(10) NOT NULL,
|
1862 |
PRIMARY KEY (`id`)
|
1863 |
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
|
1864 |
";
|