Version Description
- Fixed: Deprecated functions.
Download this release
Release Info
Developer | 10web |
Plugin | WD Google Maps – Google Maps builder Plugin |
Version | 1.0.67 |
Comparing to | |
See all releases |
Code changes from version 1.0.64 to 1.0.67
- admin/views/GMWDViewShortcode_gmwd.php +4 -4
- gmwd_admin_class.php +1 -2
- js/maps_gmwd.js +9 -9
- readme.txt +12 -3
- wd-google-maps.php +1 -1
admin/views/GMWDViewShortcode_gmwd.php
CHANGED
@@ -222,12 +222,12 @@ class GMWDViewShortcode_gmwd extends GMWDView{
|
|
222 |
|
223 |
for(param in shortcodeParams){
|
224 |
if(jQuery("#" + param).is("input[type=checkbox]") || jQuery("#" + param).is("input[type=radio]") ){
|
225 |
-
jQuery("#" + param).
|
226 |
-
jQuery("#" + param + "[value='" + shortcodeParams[param] + "']").
|
227 |
}
|
228 |
else if(jQuery("#" + param).is("select")){
|
229 |
-
jQuery("#" + param + " option").
|
230 |
-
jQuery("#" + param).find("[value='" + shortcodeParams[param] + "']").
|
231 |
}
|
232 |
else {
|
233 |
jQuery("#" + param).val(shortcodeParams[param]);
|
222 |
|
223 |
for(param in shortcodeParams){
|
224 |
if(jQuery("#" + param).is("input[type=checkbox]") || jQuery("#" + param).is("input[type=radio]") ){
|
225 |
+
jQuery("#" + param).prop("checked", false);
|
226 |
+
jQuery("#" + param + "[value='" + shortcodeParams[param] + "']").prop("checked", true);
|
227 |
}
|
228 |
else if(jQuery("#" + param).is("select")){
|
229 |
+
jQuery("#" + param + " option").prop("selected", false);
|
230 |
+
jQuery("#" + param).find("[value='" + shortcodeParams[param] + "']").prop("selected", true);
|
231 |
}
|
232 |
else {
|
233 |
jQuery("#" + param).val(shortcodeParams[param]);
|
gmwd_admin_class.php
CHANGED
@@ -12,7 +12,7 @@ class GMWDAdmin
|
|
12 |
// Variables //
|
13 |
////////////////////////////////////////////////////////////////////////////////////////
|
14 |
protected static $instance = null;
|
15 |
-
private static $version = '1.0.
|
16 |
////////////////////////////////////////////////////////////////////////////////////////
|
17 |
// Constructor & Destructor //
|
18 |
////////////////////////////////////////////////////////////////////////////////////////
|
@@ -31,7 +31,6 @@ class GMWDAdmin
|
|
31 |
add_filter('set-screen-option', array($this, 'gmwd_set_option_maps'), 10, 3);
|
32 |
add_filter('set-screen-option', array($this, 'gmwd_set_option_markercategories'), 10, 3);
|
33 |
add_filter('set-screen-option', array($this, 'gmwd_set_option_themes'), 10, 3);
|
34 |
-
add_filter('set-screen-option', array($this, 'gmwd_set_option_mapstyles'), 10, 3);
|
35 |
|
36 |
// Add admin styles and scripts
|
37 |
add_action('admin_enqueue_scripts', array($this, 'gmwd_styles'));
|
12 |
// Variables //
|
13 |
////////////////////////////////////////////////////////////////////////////////////////
|
14 |
protected static $instance = null;
|
15 |
+
private static $version = '1.0.67';
|
16 |
////////////////////////////////////////////////////////////////////////////////////////
|
17 |
// Constructor & Destructor //
|
18 |
////////////////////////////////////////////////////////////////////////////////////////
|
31 |
add_filter('set-screen-option', array($this, 'gmwd_set_option_maps'), 10, 3);
|
32 |
add_filter('set-screen-option', array($this, 'gmwd_set_option_markercategories'), 10, 3);
|
33 |
add_filter('set-screen-option', array($this, 'gmwd_set_option_themes'), 10, 3);
|
|
|
34 |
|
35 |
// Add admin styles and scripts
|
36 |
add_action('admin_enqueue_scripts', array($this, 'gmwd_styles'));
|
js/maps_gmwd.js
CHANGED
@@ -80,11 +80,11 @@ jQuery( document ).ready(function() {
|
|
80 |
}
|
81 |
});
|
82 |
if(allChecked == true){
|
83 |
-
_this.closest(".gmwd_pois").find(".check_all").
|
84 |
}
|
85 |
}
|
86 |
else{
|
87 |
-
_this.closest(".gmwd_pois").find(".check_all").
|
88 |
}
|
89 |
});
|
90 |
|
@@ -273,17 +273,17 @@ jQuery( document ).ready(function() {
|
|
273 |
////////////////////////////////////////////////////////////////////////////////////////
|
274 |
function gmwdCheckAll(obj){
|
275 |
if(jQuery(obj).is(":checked")){
|
276 |
-
jQuery(obj).closest(".gmwd_pois").find(".wd-pois-row:not(.wd-template) [name=poi_ids]").
|
277 |
}
|
278 |
else{
|
279 |
-
jQuery(obj).closest(".gmwd_pois").find(".wd-pois-row:not(.wd-template) [name=poi_ids]").
|
280 |
}
|
281 |
}
|
282 |
function gmwdOnChnageMapTheme(obj){
|
283 |
jQuery(".select_map_theme").closest(".wd-left").removeClass("map_theme_img_active");
|
284 |
jQuery(obj).closest(".wd-left").addClass("map_theme_img_active");
|
285 |
-
jQuery("[name=theme_id]").
|
286 |
-
jQuery(obj).next("[name=theme_id]").
|
287 |
mapTheme = jQuery(obj).closest(".wd-left").find(".theme_code").val();
|
288 |
gmwdUpdatePreview();
|
289 |
}
|
@@ -654,7 +654,7 @@ function copyPoi(obj){
|
|
654 |
jQuery(this).html((index+1) + ".");
|
655 |
});
|
656 |
jQuery(".gmwd_" + type+ " input[type=checkbox]").each(function(){
|
657 |
-
jQuery(this).
|
658 |
});
|
659 |
}
|
660 |
function editPoi(obj){
|
@@ -676,7 +676,7 @@ function publishPoi(obj){
|
|
676 |
|
677 |
var page = type + "_gmwd";
|
678 |
if(jQuery(obj).is("img") == true){
|
679 |
-
jQuery(obj).closest(".wd-pois-row").find("[name=poi_ids]").
|
680 |
}
|
681 |
var publish_unpublish = jQuery(obj).attr("data-published") == 0 ? 1 : 0;
|
682 |
var published_image = ((publish_unpublish) ? 'publish-blue' : 'unpublish-blue');
|
@@ -703,7 +703,7 @@ function publishPoi(obj){
|
|
703 |
if(jQuery(obj).is("img") == true){
|
704 |
jQuery(obj).attr("data-published",publish_unpublish);
|
705 |
}
|
706 |
-
jQuery(".gmwd_" + type + " [type=checkbox]").
|
707 |
switch(type){
|
708 |
case "markers" :
|
709 |
var pois = mapMarkers;
|
80 |
}
|
81 |
});
|
82 |
if(allChecked == true){
|
83 |
+
_this.closest(".gmwd_pois").find(".check_all").prop("checked", true);
|
84 |
}
|
85 |
}
|
86 |
else{
|
87 |
+
_this.closest(".gmwd_pois").find(".check_all").prop("checked", false);
|
88 |
}
|
89 |
});
|
90 |
|
273 |
////////////////////////////////////////////////////////////////////////////////////////
|
274 |
function gmwdCheckAll(obj){
|
275 |
if(jQuery(obj).is(":checked")){
|
276 |
+
jQuery(obj).closest(".gmwd_pois").find(".wd-pois-row:not(.wd-template) [name=poi_ids]").prop("checked", true);
|
277 |
}
|
278 |
else{
|
279 |
+
jQuery(obj).closest(".gmwd_pois").find(".wd-pois-row:not(.wd-template) [name=poi_ids]").prop("checked", false);
|
280 |
}
|
281 |
}
|
282 |
function gmwdOnChnageMapTheme(obj){
|
283 |
jQuery(".select_map_theme").closest(".wd-left").removeClass("map_theme_img_active");
|
284 |
jQuery(obj).closest(".wd-left").addClass("map_theme_img_active");
|
285 |
+
jQuery("[name=theme_id]").prop("checked", false);
|
286 |
+
jQuery(obj).next("[name=theme_id]").prop("checked", true );
|
287 |
mapTheme = jQuery(obj).closest(".wd-left").find(".theme_code").val();
|
288 |
gmwdUpdatePreview();
|
289 |
}
|
654 |
jQuery(this).html((index+1) + ".");
|
655 |
});
|
656 |
jQuery(".gmwd_" + type+ " input[type=checkbox]").each(function(){
|
657 |
+
jQuery(this).prop("checked", false);
|
658 |
});
|
659 |
}
|
660 |
function editPoi(obj){
|
676 |
|
677 |
var page = type + "_gmwd";
|
678 |
if(jQuery(obj).is("img") == true){
|
679 |
+
jQuery(obj).closest(".wd-pois-row").find("[name=poi_ids]").prop("checked", true);
|
680 |
}
|
681 |
var publish_unpublish = jQuery(obj).attr("data-published") == 0 ? 1 : 0;
|
682 |
var published_image = ((publish_unpublish) ? 'publish-blue' : 'unpublish-blue');
|
703 |
if(jQuery(obj).is("img") == true){
|
704 |
jQuery(obj).attr("data-published",publish_unpublish);
|
705 |
}
|
706 |
+
jQuery(".gmwd_" + type + " [type=checkbox]").prop( "checked", false );
|
707 |
switch(type){
|
708 |
case "markers" :
|
709 |
var pois = mapMarkers;
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Contributors: webdorado,10web,wdsupport
|
3 |
Tags: google map, google maps, map, map markers, maps, directions, google map plugin, google maps plugin, map plugin, wp google map, wp google maps, google map widget
|
4 |
Requires at least: 3.4
|
5 |
-
Tested up to: 5.
|
6 |
-
Stable tag: 1.0.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -139,6 +139,15 @@ Activate 10Web Google Maps by going to Plugins and pressing Activate button.
|
|
139 |
|
140 |
== Changelog ==
|
141 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
142 |
= 1.0.64 =
|
143 |
* Fixed: Security issue.
|
144 |
|
@@ -595,4 +604,4 @@ Store locator will add a circular overlay over the map with filled centre and ra
|
|
595 |
* Enable Store Locator. Choose whether to have store locator feature enabled for your map or not.
|
596 |
* Window Width. Choose fixed size for the map store locator window in pixels either percentage of content area.
|
597 |
* Window Position. Chose the Store location window position relative to map. Distance In. Choose the measurement unit for your Google Maps Store Locator - kilometers or miles.
|
598 |
-
* Circle line + fill. Define styles and colors for the circular overlay edge (line) and fill (covered area) of your map.
|
2 |
Contributors: webdorado,10web,wdsupport
|
3 |
Tags: google map, google maps, map, map markers, maps, directions, google map plugin, google maps plugin, map plugin, wp google map, wp google maps, google map widget
|
4 |
Requires at least: 3.4
|
5 |
+
Tested up to: 5.7
|
6 |
+
Stable tag: 1.0.67
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
139 |
|
140 |
== Changelog ==
|
141 |
|
142 |
+
= 1.0.67 =
|
143 |
+
* Fixed: Deprecated functions.
|
144 |
+
|
145 |
+
= 1.0.66 =
|
146 |
+
* Fixed: Store locator.
|
147 |
+
|
148 |
+
= 1.0.65 =
|
149 |
+
* Fixed: Filters in marker list.
|
150 |
+
|
151 |
= 1.0.64 =
|
152 |
* Fixed: Security issue.
|
153 |
|
604 |
* Enable Store Locator. Choose whether to have store locator feature enabled for your map or not.
|
605 |
* Window Width. Choose fixed size for the map store locator window in pixels either percentage of content area.
|
606 |
* Window Position. Chose the Store location window position relative to map. Distance In. Choose the measurement unit for your Google Maps Store Locator - kilometers or miles.
|
607 |
+
* Circle line + fill. Define styles and colors for the circular overlay edge (line) and fill (covered area) of your map.
|
wd-google-maps.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin Name: 10Web Google Maps
|
5 |
* Plugin URI: https://10web.io/plugins/wordpress-google-maps/
|
6 |
* Description: 10Web Google Maps is an intuitive tool for creating Google maps with advanced markers, custom layers and overlays for your website.
|
7 |
-
* Version: 1.0.
|
8 |
* Author: 10Web
|
9 |
* Author URI: https://10web.io/plugins
|
10 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
4 |
* Plugin Name: 10Web Google Maps
|
5 |
* Plugin URI: https://10web.io/plugins/wordpress-google-maps/
|
6 |
* Description: 10Web Google Maps is an intuitive tool for creating Google maps with advanced markers, custom layers and overlays for your website.
|
7 |
+
* Version: 1.0.67
|
8 |
* Author: 10Web
|
9 |
* Author URI: https://10web.io/plugins
|
10 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|