Version Description
- Fixed: Minor bugs
Download this release
Release Info
Developer | webdorado |
Plugin | WD Google Maps – Google Maps builder Plugin |
Version | 1.0.11 |
Comparing to | |
See all releases |
Code changes from version 1.0.10 to 1.0.11
- admin/controllers/GMWDControllerMaps_gmwd.php +4 -1
- admin/models/GMWDModelMaps_gmwd.php +4 -0
- admin/models/GMWDModelMarkers_gmwd.php +2 -0
- admin/models/GMWDModelPolygons_gmwd.php +1 -0
- admin/models/GMWDModelPolylines_gmwd.php +1 -0
- admin/views/GMWDViewMaps_gmwd.php +3 -3
- gmwd_admin_class.php +1 -1
- js/maps_gmwd.js +11 -12
- readme.txt +4 -1
- wd-google-maps.php +1 -1
admin/controllers/GMWDControllerMaps_gmwd.php
CHANGED
@@ -231,7 +231,10 @@ class GMWDControllerMaps_gmwd extends GMWDController{
|
|
231 |
|
232 |
$data = array();
|
233 |
$format = array();
|
234 |
-
foreach($_data as $key => $value){
|
|
|
|
|
|
|
235 |
$data[$key] = esc_html($value);
|
236 |
$format[] = $data_types[$key];
|
237 |
}
|
231 |
|
232 |
$data = array();
|
233 |
$format = array();
|
234 |
+
foreach($_data as $key => $value){
|
235 |
+
if($key == "title" || $key == "address"){
|
236 |
+
$value = str_replace("@@@",'"',$value);
|
237 |
+
}
|
238 |
$data[$key] = esc_html($value);
|
239 |
$format[] = $data_types[$key];
|
240 |
}
|
admin/models/GMWDModelMaps_gmwd.php
CHANGED
@@ -48,6 +48,8 @@ class GMWDModelMaps_gmwd extends GMWDModel {
|
|
48 |
$row_markers = array();
|
49 |
foreach($markers as $marker){
|
50 |
$marker->description = "";
|
|
|
|
|
51 |
$row_markers[$marker->id] = $marker;
|
52 |
}
|
53 |
$row->markers = $row_markers;
|
@@ -68,6 +70,7 @@ class GMWDModelMaps_gmwd extends GMWDModel {
|
|
68 |
$row->polygons_count = count($all_polygons);
|
69 |
$row_polygons = array();
|
70 |
foreach($polygons as $polygon){
|
|
|
71 |
$row_polygons[$polygon->id] = $polygon;
|
72 |
}
|
73 |
$row->polygons = $row_polygons;
|
@@ -89,6 +92,7 @@ class GMWDModelMaps_gmwd extends GMWDModel {
|
|
89 |
$row->polylines = $row_polylines;
|
90 |
$row_all_polylines = array();
|
91 |
foreach($all_polylines as $polyline){
|
|
|
92 |
$row_all_polylines[$polyline->id] = $polyline;
|
93 |
}
|
94 |
$row->all_polylines = $row_all_polylines;
|
48 |
$row_markers = array();
|
49 |
foreach($markers as $marker){
|
50 |
$marker->description = "";
|
51 |
+
$marker->title = str_replace(array('"', '"'),"@@@",$marker->title);
|
52 |
+
$marker->address = str_replace(array('"', '"'),"@@@",$marker->address);
|
53 |
$row_markers[$marker->id] = $marker;
|
54 |
}
|
55 |
$row->markers = $row_markers;
|
70 |
$row->polygons_count = count($all_polygons);
|
71 |
$row_polygons = array();
|
72 |
foreach($polygons as $polygon){
|
73 |
+
$polygon->title = str_replace(array('"', '"'),"@@@",$polygon->title);
|
74 |
$row_polygons[$polygon->id] = $polygon;
|
75 |
}
|
76 |
$row->polygons = $row_polygons;
|
92 |
$row->polylines = $row_polylines;
|
93 |
$row_all_polylines = array();
|
94 |
foreach($all_polylines as $polyline){
|
95 |
+
$polyline->title = str_replace(array('"', '"'),"@@@",$polyline->title);
|
96 |
$row_all_polylines[$polyline->id] = $polyline;
|
97 |
}
|
98 |
$row->all_polylines = $row_all_polylines;
|
admin/models/GMWDModelMarkers_gmwd.php
CHANGED
@@ -22,6 +22,8 @@ class GMWDModelMarkers_gmwd extends GMWDModel {
|
|
22 |
if(isset($_POST["data"]) && $_POST["data"] != "{}"){
|
23 |
$row = json_decode(htmlspecialchars_decode(stripslashes($_POST["data"])));
|
24 |
$row = json_decode($row);
|
|
|
|
|
25 |
if(isset($_GET["dublicated"]) && $_GET["dublicated"] == 1){
|
26 |
$row->id = "";
|
27 |
}
|
22 |
if(isset($_POST["data"]) && $_POST["data"] != "{}"){
|
23 |
$row = json_decode(htmlspecialchars_decode(stripslashes($_POST["data"])));
|
24 |
$row = json_decode($row);
|
25 |
+
$row->title = str_replace("@@@",'"',$row->title);
|
26 |
+
$row->address = str_replace("@@@",'"',$row->address);
|
27 |
if(isset($_GET["dublicated"]) && $_GET["dublicated"] == 1){
|
28 |
$row->id = "";
|
29 |
}
|
admin/models/GMWDModelPolygons_gmwd.php
CHANGED
@@ -22,6 +22,7 @@ class GMWDModelPolygons_gmwd extends GMWDModel {
|
|
22 |
if(isset($_POST["data"]) && $_POST["data"] != "{}"){
|
23 |
$row = json_decode(htmlspecialchars_decode(stripslashes($_POST["data"])));
|
24 |
$row = json_decode($row);
|
|
|
25 |
if(isset($_GET["dublicated"]) && $_GET["dublicated"] == 1){
|
26 |
$row->id = "";
|
27 |
}
|
22 |
if(isset($_POST["data"]) && $_POST["data"] != "{}"){
|
23 |
$row = json_decode(htmlspecialchars_decode(stripslashes($_POST["data"])));
|
24 |
$row = json_decode($row);
|
25 |
+
$row->title = str_replace("@@@",'"',$row->title);
|
26 |
if(isset($_GET["dublicated"]) && $_GET["dublicated"] == 1){
|
27 |
$row->id = "";
|
28 |
}
|
admin/models/GMWDModelPolylines_gmwd.php
CHANGED
@@ -22,6 +22,7 @@ class GMWDModelPolylines_gmwd extends GMWDModel {
|
|
22 |
if(isset($_POST["data"]) && $_POST["data"] != "{}"){
|
23 |
$row = json_decode(htmlspecialchars_decode(stripslashes($_POST["data"])));
|
24 |
$row = json_decode($row);
|
|
|
25 |
if(isset($_GET["dublicated"]) && $_GET["dublicated"] == 1){
|
26 |
$row->id = "";
|
27 |
}
|
22 |
if(isset($_POST["data"]) && $_POST["data"] != "{}"){
|
23 |
$row = json_decode(htmlspecialchars_decode(stripslashes($_POST["data"])));
|
24 |
$row = json_decode($row);
|
25 |
+
$row->title = str_replace("@@@",'"',$row->title);
|
26 |
if(isset($_GET["dublicated"]) && $_GET["dublicated"] == 1){
|
27 |
$row->id = "";
|
28 |
}
|
admin/views/GMWDViewMaps_gmwd.php
CHANGED
@@ -423,7 +423,7 @@ class GMWDViewMaps_gmwd extends GMWDView{
|
|
423 |
<div class="gmwd_pois gmwd_<?php echo $overlay;?>">
|
424 |
<div class="wd-pois-header-row wd-table" >
|
425 |
<div class="wd-cell wd-cell-valign-middle">
|
426 |
-
<input type="checkbox" name="check_all" class="check_all" value="">
|
427 |
</div>
|
428 |
<div class="wd-cell wd-cell-valign-middle">
|
429 |
<span class="poi_number">#</span>
|
@@ -539,7 +539,7 @@ class GMWDViewMaps_gmwd extends GMWDView{
|
|
539 |
$published_image = (($poi->published) ? 'publish-blue' : 'unpublish-blue');
|
540 |
$published = (($poi->published) ? __("Published","gmwd") : __("Unublished","gmwd"));
|
541 |
?>
|
542 |
-
<div class="wd-pois-row wd-table" data-id="poiId_<?php echo $poi->id;?>" >
|
543 |
<div class="wd-cell wd-cell-valign-middle">
|
544 |
<input type="checkbox" name="poi_ids" value="<?php echo $poi->id; ?>" data-poi="<?php echo $poi_type;?>" >
|
545 |
</div>
|
@@ -547,7 +547,7 @@ class GMWDViewMaps_gmwd extends GMWDView{
|
|
547 |
<span class="poi_number"><?php echo $poi_number; ?>.</span>
|
548 |
</div>
|
549 |
<div class="wd-cell wd-cell-valign-middle">
|
550 |
-
<span class="poi_title"><?php echo
|
551 |
</div>
|
552 |
<div class="poi_actions wd-cell wd-cell-valign-bottom">
|
553 |
<img src="<?php echo GMWD_URL . '/images/css/' . $published_image . '.png'; ?>" class="poi_published" title="<?php echo $published;?>" onclick="publishPoi(this);" data-published="<?php echo $poi->published;?>" data-poi="<?php echo $poi_type;?>"></img>
|
423 |
<div class="gmwd_pois gmwd_<?php echo $overlay;?>">
|
424 |
<div class="wd-pois-header-row wd-table" >
|
425 |
<div class="wd-cell wd-cell-valign-middle">
|
426 |
+
<input type="checkbox" name="check_all" class="check_all" value="" onchange="gmwdCheckAll(this);">
|
427 |
</div>
|
428 |
<div class="wd-cell wd-cell-valign-middle">
|
429 |
<span class="poi_number">#</span>
|
539 |
$published_image = (($poi->published) ? 'publish-blue' : 'unpublish-blue');
|
540 |
$published = (($poi->published) ? __("Published","gmwd") : __("Unublished","gmwd"));
|
541 |
?>
|
542 |
+
<div class="wd-pois-row wd-table" data-id="poiId_<?php echo $poi->id;?>" data-poi="<?php echo $poi_type;?>" >
|
543 |
<div class="wd-cell wd-cell-valign-middle">
|
544 |
<input type="checkbox" name="poi_ids" value="<?php echo $poi->id; ?>" data-poi="<?php echo $poi_type;?>" >
|
545 |
</div>
|
547 |
<span class="poi_number"><?php echo $poi_number; ?>.</span>
|
548 |
</div>
|
549 |
<div class="wd-cell wd-cell-valign-middle">
|
550 |
+
<span class="poi_title"><?php echo str_replace("@@@",'"',$poi_name); ?></span>
|
551 |
</div>
|
552 |
<div class="poi_actions wd-cell wd-cell-valign-bottom">
|
553 |
<img src="<?php echo GMWD_URL . '/images/css/' . $published_image . '.png'; ?>" class="poi_published" title="<?php echo $published;?>" onclick="publishPoi(this);" data-published="<?php echo $poi->published;?>" data-poi="<?php echo $poi_type;?>"></img>
|
gmwd_admin_class.php
CHANGED
@@ -11,7 +11,7 @@ class GMWDAdmin{
|
|
11 |
// Variables //
|
12 |
////////////////////////////////////////////////////////////////////////////////////////
|
13 |
protected static $instance = null;
|
14 |
-
private static $version = '1.0.
|
15 |
////////////////////////////////////////////////////////////////////////////////////////
|
16 |
// Constructor & Destructor //
|
17 |
////////////////////////////////////////////////////////////////////////////////////////
|
11 |
// Variables //
|
12 |
////////////////////////////////////////////////////////////////////////////////////////
|
13 |
protected static $instance = null;
|
14 |
+
private static $version = '1.0.11';
|
15 |
////////////////////////////////////////////////////////////////////////////////////////
|
16 |
// Constructor & Destructor //
|
17 |
////////////////////////////////////////////////////////////////////////////////////////
|
js/maps_gmwd.js
CHANGED
@@ -67,17 +67,7 @@ jQuery( document ).ready(function() {
|
|
67 |
|
68 |
return false;
|
69 |
});
|
70 |
-
|
71 |
-
jQuery(".check_all").click(function(){
|
72 |
-
|
73 |
-
if(jQuery(this).is(":checked")){
|
74 |
-
jQuery(this).closest(".gmwd_pois").find(".wd-pois-row:not(.wd-template) [name=poi_ids]").attr("checked","checked");
|
75 |
-
}
|
76 |
-
else{
|
77 |
-
jQuery(this).closest(".gmwd_pois").find(".wd-pois-row:not(.wd-template) [name=poi_ids]").removeAttr("checked");
|
78 |
-
}
|
79 |
-
});
|
80 |
-
|
81 |
jQuery("[name=poi_ids]").click(function(){
|
82 |
_this = jQuery(this);
|
83 |
if(_this.is(":checked")){
|
@@ -274,6 +264,14 @@ jQuery( document ).ready(function() {
|
|
274 |
////////////////////////////////////////////////////////////////////////////////////////
|
275 |
// Public Methods //
|
276 |
////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
277 |
function gmwdOnChnageMapTheme(obj){
|
278 |
jQuery(".select_map_theme").closest(".wd-left").removeClass("map_theme_img_active");
|
279 |
jQuery(obj).closest(".wd-left").addClass("map_theme_img_active");
|
@@ -615,7 +613,8 @@ function removePoi(obj, single){
|
|
615 |
'task': 'remove',
|
616 |
'page': page,
|
617 |
"ids": ids,
|
618 |
-
"ajax": 1
|
|
|
619 |
};
|
620 |
|
621 |
jQuery.post(ajax_url, data, function(response) {
|
67 |
|
68 |
return false;
|
69 |
});
|
70 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
71 |
jQuery("[name=poi_ids]").click(function(){
|
72 |
_this = jQuery(this);
|
73 |
if(_this.is(":checked")){
|
264 |
////////////////////////////////////////////////////////////////////////////////////////
|
265 |
// Public Methods //
|
266 |
////////////////////////////////////////////////////////////////////////////////////////
|
267 |
+
function gmwdCheckAll(obj){
|
268 |
+
if(jQuery(obj).is(":checked")){
|
269 |
+
jQuery(obj).closest(".gmwd_pois").find(".wd-pois-row:not(.wd-template) [name=poi_ids]").attr("checked","checked");
|
270 |
+
}
|
271 |
+
else{
|
272 |
+
jQuery(obj).closest(".gmwd_pois").find(".wd-pois-row:not(.wd-template) [name=poi_ids]").removeAttr("checked");
|
273 |
+
}
|
274 |
+
}
|
275 |
function gmwdOnChnageMapTheme(obj){
|
276 |
jQuery(".select_map_theme").closest(".wd-left").removeClass("map_theme_img_active");
|
277 |
jQuery(obj).closest(".wd-left").addClass("map_theme_img_active");
|
613 |
'task': 'remove',
|
614 |
'page': page,
|
615 |
"ids": ids,
|
616 |
+
"ajax": 1,
|
617 |
+
"nonce_gmwd" : nonce
|
618 |
};
|
619 |
|
620 |
jQuery.post(ajax_url, data, function(response) {
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://web-dorado.com/products/wordpress-google-maps-plugin.html
|
|
4 |
Tags: address, cross-browser, custom google map, custom google maps, easy map, geo, geocoder, gmaps, google, google earth, google map, google map plugin, google map widget, google maps, google maps plugin, googlemaps, gps, gpx, kml, latitude, location, longitude, map, map markers, map plugin, map styles, map widget, maps, marker, openstreetmap, path, pin, place, polygons, polylines, post map, routes, store locator, streetview, widget map, wp google map, wp google maps, wp map, wp maps, directions, widget, layers, circles, responsive
|
5 |
Requires at least: 3.4
|
6 |
Tested up to: 4.5
|
7 |
-
Stable tag: 1.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -110,6 +110,9 @@ After downloading the ZIP file of the Google Maps WD plugin,
|
|
110 |
|
111 |
== Changelog ==
|
112 |
|
|
|
|
|
|
|
113 |
= 1.0.10 =
|
114 |
* Changed: API key notification
|
115 |
* Fixed: Minor bugs
|
4 |
Tags: address, cross-browser, custom google map, custom google maps, easy map, geo, geocoder, gmaps, google, google earth, google map, google map plugin, google map widget, google maps, google maps plugin, googlemaps, gps, gpx, kml, latitude, location, longitude, map, map markers, map plugin, map styles, map widget, maps, marker, openstreetmap, path, pin, place, polygons, polylines, post map, routes, store locator, streetview, widget map, wp google map, wp google maps, wp map, wp maps, directions, widget, layers, circles, responsive
|
5 |
Requires at least: 3.4
|
6 |
Tested up to: 4.5
|
7 |
+
Stable tag: 1.0.11
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
110 |
|
111 |
== Changelog ==
|
112 |
|
113 |
+
= 1.0.11 =
|
114 |
+
* Fixed: Minor bugs
|
115 |
+
|
116 |
= 1.0.10 =
|
117 |
* Changed: API key notification
|
118 |
* Fixed: Minor bugs
|
wd-google-maps.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin Name: Google Maps WD
|
5 |
* Plugin URI: https://web-dorado.com/products/wordpress-google-maps-plugin.html
|
6 |
* Description: Google Maps WD is an intuitive tool for creating Google maps with advanced markers, custom layers and overlays for your website.
|
7 |
-
* Version: 1.0.
|
8 |
* Author: WebDorado
|
9 |
* Author URI: http://web-dorado.com/
|
10 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
4 |
* Plugin Name: Google Maps WD
|
5 |
* Plugin URI: https://web-dorado.com/products/wordpress-google-maps-plugin.html
|
6 |
* Description: Google Maps WD is an intuitive tool for creating Google maps with advanced markers, custom layers and overlays for your website.
|
7 |
+
* Version: 1.0.11
|
8 |
* Author: WebDorado
|
9 |
* Author URI: http://web-dorado.com/
|
10 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|