Version Description
= 6.3.15 = Please update your WP Google Maps version to 6.3.15 to ensure you are using the latest security enhancements.
= 6.3.14 = Please update your WP Google Maps version to 6.3.14 to ensure you are using the latest security enhancements.
= 6.2.1 = Please update your WP Google Maps version to 6.2.1 to ensure you are using the latest security enhancements.
= 6.1.10 = Please update WP Google Maps to version 6.1.10 to enable our latest security enhancements.
= 6.1.5 = We no longer support timthumb and we have opted to remove it from WP Google Maps. Please update to 6.1.5 to ensure the removal of the timthumb script.
= 6.0.27 = Please upgrade your version of WP Google Maps to version 6.0.27 as it includes multiple security improvements.
Download this release
Release Info
Developer | perryrylance |
Plugin | WP Google Maps |
Version | 7.10.25 |
Comparing to | |
See all releases |
Code changes from version 7.10.23 to 7.10.25
- includes/build.log +130 -130
- includes/class.auto-loader.php +53 -17
- includes/class.marker-filter.php +2 -1
- includes/class.plugin.php +7 -6
- includes/class.selector-to-xpath.php +2 -2
- includes/classes.json +1 -0
- js/v8/google-maps/google-geocoder.js +3 -1
- js/v8/google-maps/google-map.js +1 -1
- js/v8/map.js +5 -1
- readme.txt +1 -1
- wpGoogleMaps.php +25 -7
includes/build.log
CHANGED
@@ -1,130 +1,130 @@
|
|
1 |
-
2018-07-
|
2 |
-
2018-07-
|
3 |
-
2018-07-
|
4 |
-
2018-07-
|
5 |
-
2018-07-
|
6 |
-
2018-07-
|
7 |
-
2018-07-
|
8 |
-
2018-07-
|
9 |
-
2018-07-
|
10 |
-
2018-07-
|
11 |
-
2018-07-
|
12 |
-
2018-07-
|
13 |
-
2018-07-
|
14 |
-
2018-07-
|
15 |
-
2018-07-
|
16 |
-
2018-07-
|
17 |
-
2018-07-
|
18 |
-
2018-07-
|
19 |
-
2018-07-
|
20 |
-
2018-07-
|
21 |
-
2018-07-
|
22 |
-
2018-07-
|
23 |
-
2018-07-
|
24 |
-
2018-07-
|
25 |
-
2018-07-
|
26 |
-
2018-07-
|
27 |
-
2018-07-
|
28 |
-
2018-07-
|
29 |
-
2018-07-
|
30 |
-
2018-07-
|
31 |
-
2018-07-
|
32 |
-
2018-07-
|
33 |
-
2018-07-
|
34 |
-
2018-07-
|
35 |
-
2018-07-
|
36 |
-
2018-07-
|
37 |
-
2018-07-
|
38 |
-
2018-07-
|
39 |
-
2018-07-
|
40 |
-
2018-07-
|
41 |
-
2018-07-
|
42 |
-
2018-07-
|
43 |
-
2018-07-
|
44 |
-
2018-07-
|
45 |
-
2018-07-
|
46 |
-
2018-07-
|
47 |
-
2018-07-
|
48 |
-
2018-07-
|
49 |
-
2018-07-
|
50 |
-
2018-07-
|
51 |
-
2018-07-
|
52 |
-
2018-07-
|
53 |
-
2018-07-
|
54 |
-
2018-07-
|
55 |
-
2018-07-
|
56 |
-
2018-07-
|
57 |
-
2018-07-
|
58 |
-
2018-07-
|
59 |
-
2018-07-
|
60 |
-
2018-07-
|
61 |
-
2018-07-
|
62 |
-
2018-07-
|
63 |
-
2018-07-
|
64 |
-
2018-07-
|
65 |
-
2018-07-
|
66 |
-
2018-07-
|
67 |
-
2018-07-
|
68 |
-
2018-07-
|
69 |
-
2018-07-
|
70 |
-
2018-07-
|
71 |
-
2018-07-
|
72 |
-
2018-07-
|
73 |
-
2018-07-
|
74 |
-
2018-07-
|
75 |
-
2018-07-
|
76 |
-
2018-07-
|
77 |
-
2018-07-
|
78 |
-
2018-07-
|
79 |
-
2018-07-
|
80 |
-
2018-07-
|
81 |
-
2018-07-
|
82 |
-
2018-07-
|
83 |
-
2018-07-
|
84 |
-
2018-07-
|
85 |
-
2018-07-
|
86 |
-
2018-07-
|
87 |
-
2018-07-
|
88 |
-
2018-07-
|
89 |
-
2018-07-
|
90 |
-
2018-07-
|
91 |
-
2018-07-
|
92 |
-
2018-07-
|
93 |
-
2018-07-
|
94 |
-
2018-07-
|
95 |
-
2018-07-
|
96 |
-
2018-07-
|
97 |
-
2018-07-
|
98 |
-
2018-07-
|
99 |
-
2018-07-
|
100 |
-
2018-07-
|
101 |
-
2018-07-
|
102 |
-
2018-07-
|
103 |
-
2018-07-
|
104 |
-
2018-07-
|
105 |
-
2018-07-
|
106 |
-
2018-07-
|
107 |
-
2018-07-
|
108 |
-
2018-07-
|
109 |
-
2018-07-
|
110 |
-
2018-07-
|
111 |
-
2018-07-
|
112 |
-
2018-07-
|
113 |
-
2018-07-
|
114 |
-
2018-07-
|
115 |
-
2018-07-
|
116 |
-
2018-07-
|
117 |
-
2018-07-
|
118 |
-
2018-07-
|
119 |
-
2018-07-
|
120 |
-
2018-07-
|
121 |
-
2018-07-
|
122 |
-
2018-07-
|
123 |
-
2018-07-
|
124 |
-
2018-07-
|
125 |
-
2018-07-
|
126 |
-
2018-07-
|
127 |
-
2018-07-
|
128 |
-
2018-07-
|
129 |
-
2018-07-
|
130 |
-
2018-07-
|
1 |
+
2018-07-31 10:48:32 :- Scanning dependencies
|
2 |
+
2018-07-31 10:48:32 :- Reading E:\Programming\Code Cabin\htdocs-quick-fix\wp-content\plugins\wp-google-maps/js/v8/circle.js
|
3 |
+
2018-07-31 10:48:32 :- Found wpgmza-circle
|
4 |
+
2018-07-31 10:48:32 :- Adding dependency wpgmza-map-object
|
5 |
+
2018-07-31 10:48:32 :- Reading E:\Programming\Code Cabin\htdocs-quick-fix\wp-content\plugins\wp-google-maps/js/v8/compatibility.js
|
6 |
+
2018-07-31 10:48:32 :- Found wpgmza-compatibility
|
7 |
+
2018-07-31 10:48:32 :- Adding dependency wpgmza
|
8 |
+
2018-07-31 10:48:32 :- Reading E:\Programming\Code Cabin\htdocs-quick-fix\wp-content\plugins\wp-google-maps/js/v8/core.js
|
9 |
+
2018-07-31 10:48:32 :- Found wpgmza
|
10 |
+
2018-07-31 10:48:32 :- Reading E:\Programming\Code Cabin\htdocs-quick-fix\wp-content\plugins\wp-google-maps/js/v8/css-escape.js
|
11 |
+
2018-07-31 10:48:32 :- Found wpgmza-wpgmza-css
|
12 |
+
2018-07-31 10:48:32 :- Adding dependency wpgmza
|
13 |
+
2018-07-31 10:48:32 :- Reading E:\Programming\Code Cabin\htdocs-quick-fix\wp-content\plugins\wp-google-maps/js/v8/distance.js
|
14 |
+
2018-07-31 10:48:32 :- Found wpgmza-distance
|
15 |
+
2018-07-31 10:48:32 :- Adding dependency wpgmza
|
16 |
+
2018-07-31 10:48:32 :- Reading E:\Programming\Code Cabin\htdocs-quick-fix\wp-content\plugins\wp-google-maps/js/v8/event-dispatcher.js
|
17 |
+
2018-07-31 10:48:32 :- Found wpgmza-event-dispatcher
|
18 |
+
2018-07-31 10:48:32 :- Adding dependency wpgmza
|
19 |
+
2018-07-31 10:48:32 :- Reading E:\Programming\Code Cabin\htdocs-quick-fix\wp-content\plugins\wp-google-maps/js/v8/event.js
|
20 |
+
2018-07-31 10:48:32 :- Found wpgmza-event
|
21 |
+
2018-07-31 10:48:32 :- Adding dependency wpgmza
|
22 |
+
2018-07-31 10:48:32 :- Reading E:\Programming\Code Cabin\htdocs-quick-fix\wp-content\plugins\wp-google-maps/js/v8/friendly-error.js
|
23 |
+
2018-07-31 10:48:32 :- Found wpgmza-friendly-error
|
24 |
+
2018-07-31 10:48:32 :- Adding dependency wpgmza
|
25 |
+
2018-07-31 10:48:32 :- Reading E:\Programming\Code Cabin\htdocs-quick-fix\wp-content\plugins\wp-google-maps/js/v8/geocoder.js
|
26 |
+
2018-07-31 10:48:32 :- Found wpgmza-geocoder
|
27 |
+
2018-07-31 10:48:32 :- Adding dependency wpgmza
|
28 |
+
2018-07-31 10:48:32 :- Reading E:\Programming\Code Cabin\htdocs-quick-fix\wp-content\plugins\wp-google-maps/js/v8/info-window.js
|
29 |
+
2018-07-31 10:48:32 :- Found wpgmza-info-window
|
30 |
+
2018-07-31 10:48:32 :- Adding dependency wpgmza-event-dispatcher
|
31 |
+
2018-07-31 10:48:32 :- Reading E:\Programming\Code Cabin\htdocs-quick-fix\wp-content\plugins\wp-google-maps/js/v8/latlng.js
|
32 |
+
2018-07-31 10:48:32 :- Found wpgmza-lat-lng
|
33 |
+
2018-07-31 10:48:32 :- Adding dependency wpgmza
|
34 |
+
2018-07-31 10:48:32 :- Reading E:\Programming\Code Cabin\htdocs-quick-fix\wp-content\plugins\wp-google-maps/js/v8/latlngbounds.js
|
35 |
+
2018-07-31 10:48:32 :- Found wpgmza-lat-lng-bounds
|
36 |
+
2018-07-31 10:48:32 :- Adding dependency wpgmza
|
37 |
+
2018-07-31 10:48:32 :- Reading E:\Programming\Code Cabin\htdocs-quick-fix\wp-content\plugins\wp-google-maps/js/v8/map-object.js
|
38 |
+
2018-07-31 10:48:32 :- Found wpgmza-map-object
|
39 |
+
2018-07-31 10:48:32 :- Adding dependency wpgmza-event-dispatcher
|
40 |
+
2018-07-31 10:48:32 :- Reading E:\Programming\Code Cabin\htdocs-quick-fix\wp-content\plugins\wp-google-maps/js/v8/map-settings-page.js
|
41 |
+
2018-07-31 10:48:32 :- Found wpgmza-map-settings-page
|
42 |
+
2018-07-31 10:48:32 :- Adding dependency wpgmza
|
43 |
+
2018-07-31 10:48:32 :- Reading E:\Programming\Code Cabin\htdocs-quick-fix\wp-content\plugins\wp-google-maps/js/v8/map-settings.js
|
44 |
+
2018-07-31 10:48:32 :- Found wpgmza-map-settings
|
45 |
+
2018-07-31 10:48:32 :- Adding dependency wpgmza
|
46 |
+
2018-07-31 10:48:32 :- Reading E:\Programming\Code Cabin\htdocs-quick-fix\wp-content\plugins\wp-google-maps/js/v8/map.js
|
47 |
+
2018-07-31 10:48:32 :- Found wpgmza-map
|
48 |
+
2018-07-31 10:48:32 :- Adding dependency wpgmza-event-dispatcher
|
49 |
+
2018-07-31 10:48:32 :- Reading E:\Programming\Code Cabin\htdocs-quick-fix\wp-content\plugins\wp-google-maps/js/v8/maps-engine-dialog.js
|
50 |
+
2018-07-31 10:48:32 :- Found wpgmza-maps-engine-dialog
|
51 |
+
2018-07-31 10:48:32 :- Adding dependency wpgmza
|
52 |
+
2018-07-31 10:48:32 :- Reading E:\Programming\Code Cabin\htdocs-quick-fix\wp-content\plugins\wp-google-maps/js/v8/marker.js
|
53 |
+
2018-07-31 10:48:32 :- Found wpgmza-marker
|
54 |
+
2018-07-31 10:48:32 :- Adding dependency wpgmza
|
55 |
+
2018-07-31 10:48:32 :- Reading E:\Programming\Code Cabin\htdocs-quick-fix\wp-content\plugins\wp-google-maps/js/v8/modern-store-locator-circle.js
|
56 |
+
2018-07-31 10:48:32 :- Found wpgmza-modern-store-locator-circle
|
57 |
+
2018-07-31 10:48:32 :- Adding dependency wpgmza
|
58 |
+
2018-07-31 10:48:32 :- Reading E:\Programming\Code Cabin\htdocs-quick-fix\wp-content\plugins\wp-google-maps/js/v8/modern-store-locator.js
|
59 |
+
2018-07-31 10:48:32 :- Found wpgmza-modern-store-locator
|
60 |
+
2018-07-31 10:48:32 :- Adding dependency wpgmza
|
61 |
+
2018-07-31 10:48:32 :- Reading E:\Programming\Code Cabin\htdocs-quick-fix\wp-content\plugins\wp-google-maps/js/v8/polygon.js
|
62 |
+
2018-07-31 10:48:32 :- Found wpgmza-polygon
|
63 |
+
2018-07-31 10:48:32 :- Adding dependency wpgmza-map-object
|
64 |
+
2018-07-31 10:48:32 :- Reading E:\Programming\Code Cabin\htdocs-quick-fix\wp-content\plugins\wp-google-maps/js/v8/polyline.js
|
65 |
+
2018-07-31 10:48:32 :- Found wpgmza-polyline
|
66 |
+
2018-07-31 10:48:32 :- Adding dependency wpgmza-map-object
|
67 |
+
2018-07-31 10:48:32 :- Reading E:\Programming\Code Cabin\htdocs-quick-fix\wp-content\plugins\wp-google-maps/js/v8/rest-api.js
|
68 |
+
2018-07-31 10:48:32 :- Found wpgmza-wpgmza-rest-api
|
69 |
+
2018-07-31 10:48:32 :- Adding dependency wpgmza
|
70 |
+
2018-07-31 10:48:32 :- Reading E:\Programming\Code Cabin\htdocs-quick-fix\wp-content\plugins\wp-google-maps/js/v8/v7-custom-script.js
|
71 |
+
2018-07-31 10:48:32 :- Reading E:\Programming\Code Cabin\htdocs-quick-fix\wp-content\plugins\wp-google-maps/js/v8/version.js
|
72 |
+
2018-07-31 10:48:32 :- Found wpgmza-version
|
73 |
+
2018-07-31 10:48:32 :- Adding dependency wpgmza
|
74 |
+
2018-07-31 10:48:32 :- Reading E:\Programming\Code Cabin\htdocs-quick-fix\wp-content\plugins\wp-google-maps/js/v8/google-maps/google-circle.js
|
75 |
+
2018-07-31 10:48:32 :- Found wpgmza-google-circle
|
76 |
+
2018-07-31 10:48:32 :- Adding dependency wpgmza-circle
|
77 |
+
2018-07-31 10:48:32 :- Reading E:\Programming\Code Cabin\htdocs-quick-fix\wp-content\plugins\wp-google-maps/js/v8/google-maps/google-geocoder.js
|
78 |
+
2018-07-31 10:48:32 :- Found wpgmza-google-geocoder
|
79 |
+
2018-07-31 10:48:32 :- Adding dependency wpgmza-geocoder
|
80 |
+
2018-07-31 10:48:32 :- Reading E:\Programming\Code Cabin\htdocs-quick-fix\wp-content\plugins\wp-google-maps/js/v8/google-maps/google-info-window.js
|
81 |
+
2018-07-31 10:48:32 :- Found wpgmza-google-info-window
|
82 |
+
2018-07-31 10:48:32 :- Adding dependency wpgmza-info-window
|
83 |
+
2018-07-31 10:48:32 :- Reading E:\Programming\Code Cabin\htdocs-quick-fix\wp-content\plugins\wp-google-maps/js/v8/google-maps/google-map.js
|
84 |
+
2018-07-31 10:48:32 :- Found wpgmza-google-map
|
85 |
+
2018-07-31 10:48:32 :- Adding dependency wpgmza-map
|
86 |
+
2018-07-31 10:48:32 :- Reading E:\Programming\Code Cabin\htdocs-quick-fix\wp-content\plugins\wp-google-maps/js/v8/google-maps/google-marker.js
|
87 |
+
2018-07-31 10:48:32 :- Found wpgmza-google-marker
|
88 |
+
2018-07-31 10:48:32 :- Adding dependency wpgmza-marker
|
89 |
+
2018-07-31 10:48:32 :- Reading E:\Programming\Code Cabin\htdocs-quick-fix\wp-content\plugins\wp-google-maps/js/v8/google-maps/google-modern-store-locator-circle.js
|
90 |
+
2018-07-31 10:48:32 :- Found wpgmza-google-modern-store-locator-circle
|
91 |
+
2018-07-31 10:48:32 :- Adding dependency wpgmza-modern-store-locator-circle
|
92 |
+
2018-07-31 10:48:32 :- Reading E:\Programming\Code Cabin\htdocs-quick-fix\wp-content\plugins\wp-google-maps/js/v8/google-maps/google-modern-store-locator.js
|
93 |
+
2018-07-31 10:48:32 :- Found wpgmza-google-modern-store-locator
|
94 |
+
2018-07-31 10:48:32 :- Adding dependency wpgmza-modern-store-locator
|
95 |
+
2018-07-31 10:48:32 :- Reading E:\Programming\Code Cabin\htdocs-quick-fix\wp-content\plugins\wp-google-maps/js/v8/google-maps/google-polygon.js
|
96 |
+
2018-07-31 10:48:32 :- Found wpgmza-google-polygon
|
97 |
+
2018-07-31 10:48:32 :- Adding dependency wpgmza-polygon
|
98 |
+
2018-07-31 10:48:32 :- Reading E:\Programming\Code Cabin\htdocs-quick-fix\wp-content\plugins\wp-google-maps/js/v8/google-maps/google-polyline.js
|
99 |
+
2018-07-31 10:48:32 :- Found wpgmza-google-polyline
|
100 |
+
2018-07-31 10:48:32 :- Adding dependency wpgmza-polyline
|
101 |
+
2018-07-31 10:48:32 :- Reading E:\Programming\Code Cabin\htdocs-quick-fix\wp-content\plugins\wp-google-maps/js/v8/google-maps/google-vertex-context-menu.js
|
102 |
+
2018-07-31 10:48:32 :- Found wpgmza-google-vertex-context-menu
|
103 |
+
2018-07-31 10:48:32 :- Adding dependency wpgmza_api_call
|
104 |
+
2018-07-31 10:48:32 :- Reading E:\Programming\Code Cabin\htdocs-quick-fix\wp-content\plugins\wp-google-maps/js/v8/open-layers/ol-circle.js
|
105 |
+
2018-07-31 10:48:32 :- Found wpgmza-ol-circle
|
106 |
+
2018-07-31 10:48:32 :- Adding dependency wpgmza-circle
|
107 |
+
2018-07-31 10:48:32 :- Reading E:\Programming\Code Cabin\htdocs-quick-fix\wp-content\plugins\wp-google-maps/js/v8/open-layers/ol-geocoder.js
|
108 |
+
2018-07-31 10:48:32 :- Found wpgmza-ol-geocoder
|
109 |
+
2018-07-31 10:48:32 :- Adding dependency wpgmza-geocoder
|
110 |
+
2018-07-31 10:48:32 :- Reading E:\Programming\Code Cabin\htdocs-quick-fix\wp-content\plugins\wp-google-maps/js/v8/open-layers/ol-info-window.js
|
111 |
+
2018-07-31 10:48:32 :- Found wpgmza-ol-info-window
|
112 |
+
2018-07-31 10:48:32 :- Adding dependency wpgmza-info-window
|
113 |
+
2018-07-31 10:48:32 :- Reading E:\Programming\Code Cabin\htdocs-quick-fix\wp-content\plugins\wp-google-maps/js/v8/open-layers/ol-map.js
|
114 |
+
2018-07-31 10:48:32 :- Found wpgmza-ol-map
|
115 |
+
2018-07-31 10:48:32 :- Adding dependency wpgmza-map
|
116 |
+
2018-07-31 10:48:32 :- Reading E:\Programming\Code Cabin\htdocs-quick-fix\wp-content\plugins\wp-google-maps/js/v8/open-layers/ol-marker.js
|
117 |
+
2018-07-31 10:48:32 :- Found wpgmza-ol-marker
|
118 |
+
2018-07-31 10:48:32 :- Adding dependency wpgmza-marker
|
119 |
+
2018-07-31 10:48:32 :- Reading E:\Programming\Code Cabin\htdocs-quick-fix\wp-content\plugins\wp-google-maps/js/v8/open-layers/ol-modern-store-locator-circle.js
|
120 |
+
2018-07-31 10:48:32 :- Found wpgmza-ol-modern-store-locator-circle
|
121 |
+
2018-07-31 10:48:32 :- Adding dependency wpgmza-modern-store-locator-circle
|
122 |
+
2018-07-31 10:48:32 :- Reading E:\Programming\Code Cabin\htdocs-quick-fix\wp-content\plugins\wp-google-maps/js/v8/open-layers/ol-modern-store-locator.js
|
123 |
+
2018-07-31 10:48:32 :- Found wpgmza-ol-modern-store-locator
|
124 |
+
2018-07-31 10:48:32 :- Adding dependency wpgmza-modern-store-locator
|
125 |
+
2018-07-31 10:48:32 :- Reading E:\Programming\Code Cabin\htdocs-quick-fix\wp-content\plugins\wp-google-maps/js/v8/open-layers/ol-polygon.js
|
126 |
+
2018-07-31 10:48:32 :- Found wpgmza-ol-polygon
|
127 |
+
2018-07-31 10:48:32 :- Adding dependency wpgmza-polygon
|
128 |
+
2018-07-31 10:48:32 :- Reading E:\Programming\Code Cabin\htdocs-quick-fix\wp-content\plugins\wp-google-maps/js/v8/open-layers/ol-polyline.js
|
129 |
+
2018-07-31 10:48:32 :- Found wpgmza-ol-polyline
|
130 |
+
2018-07-31 10:48:32 :- Adding dependency wpgmza-polyline
|
includes/class.auto-loader.php
CHANGED
@@ -2,6 +2,8 @@
|
|
2 |
|
3 |
namespace WPGMZA;
|
4 |
|
|
|
|
|
5 |
class AutoLoader
|
6 |
{
|
7 |
protected $filenamesByClass;
|
@@ -13,6 +15,19 @@ class AutoLoader
|
|
13 |
$this->filenamesByClass = array();
|
14 |
}
|
15 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
/**
|
17 |
* Gets all the defined classes in a file
|
18 |
* @return string The fully qualified class
|
@@ -20,40 +35,59 @@ class AutoLoader
|
|
20 |
*/
|
21 |
public function getClassesInFile($file)
|
22 |
{
|
23 |
-
// var_dump("Getting classes in $file");
|
24 |
-
|
25 |
$fp = fopen($file, 'r');
|
26 |
$class = $namespace = $buffer = '';
|
27 |
$i = 0;
|
28 |
$results = array();
|
29 |
|
30 |
$buffer = file_get_contents($file);
|
31 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
|
|
40 |
}
|
41 |
}
|
42 |
-
}
|
43 |
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
|
|
48 |
}
|
49 |
}
|
|
|
|
|
|
|
50 |
}
|
|
|
|
|
51 |
}
|
52 |
|
53 |
-
if(
|
54 |
return null;
|
55 |
|
56 |
-
return $
|
57 |
}
|
58 |
|
59 |
public function getClassesInPathByFilename($path)
|
@@ -89,6 +123,8 @@ class AutoLoader
|
|
89 |
if(!empty($class))
|
90 |
$this->filenamesByClass[$class] = $file;
|
91 |
}
|
|
|
|
|
92 |
}
|
93 |
|
94 |
public function callback($class)
|
2 |
|
3 |
namespace WPGMZA;
|
4 |
|
5 |
+
//var_dump("Autoloader included");
|
6 |
+
|
7 |
class AutoLoader
|
8 |
{
|
9 |
protected $filenamesByClass;
|
15 |
$this->filenamesByClass = array();
|
16 |
}
|
17 |
|
18 |
+
protected function updateCache()
|
19 |
+
{
|
20 |
+
// TODO: Not yet implemented
|
21 |
+
|
22 |
+
/*$dst = plugin_dir_path(__FILE__) . 'classes.json';
|
23 |
+
|
24 |
+
$json = json_encode((object)array(
|
25 |
+
'filenamesByClass' => $this->filenamesByClass
|
26 |
+
));
|
27 |
+
|
28 |
+
file_put_contents($dst, $json);*/
|
29 |
+
}
|
30 |
+
|
31 |
/**
|
32 |
* Gets all the defined classes in a file
|
33 |
* @return string The fully qualified class
|
35 |
*/
|
36 |
public function getClassesInFile($file)
|
37 |
{
|
|
|
|
|
38 |
$fp = fopen($file, 'r');
|
39 |
$class = $namespace = $buffer = '';
|
40 |
$i = 0;
|
41 |
$results = array();
|
42 |
|
43 |
$buffer = file_get_contents($file);
|
44 |
+
|
45 |
+
if(!function_exists('token_get_all'))
|
46 |
+
{
|
47 |
+
// Regex fallback for users without token_get_all
|
48 |
+
|
49 |
+
if(preg_match('/^\s*namespace\s+(.+);/m', $buffer, $m))
|
50 |
+
$namespace = '\\' . trim($m[1]);
|
51 |
+
|
52 |
+
if(preg_match('/^(abstract)?\s*class\s+(\w+)/m', $buffer, $m))
|
53 |
+
$class = trim($m[2]);
|
54 |
+
|
55 |
+
$result = $namespace . '\\' . $class;
|
56 |
+
}
|
57 |
+
else
|
58 |
+
{
|
59 |
+
$tokens = @token_get_all($buffer);
|
60 |
|
61 |
+
for (;$i<count($tokens);$i++) {
|
62 |
+
if ($tokens[$i][0] === T_NAMESPACE) {
|
63 |
+
for ($j=$i+1;$j<count($tokens); $j++) {
|
64 |
+
if ($tokens[$j][0] === T_STRING) {
|
65 |
+
$namespace .= '\\'.$tokens[$j][1];
|
66 |
+
} else if ($tokens[$j] === '{' || $tokens[$j] === ';') {
|
67 |
+
break;
|
68 |
+
}
|
69 |
}
|
70 |
}
|
|
|
71 |
|
72 |
+
if ($tokens[$i][0] === T_CLASS) {
|
73 |
+
for ($j=$i+1;$j<count($tokens);$j++) {
|
74 |
+
if ($tokens[$j] === '{') {
|
75 |
+
$class = $tokens[$i+2][1];
|
76 |
+
}
|
77 |
}
|
78 |
}
|
79 |
+
|
80 |
+
if(!empty($class))
|
81 |
+
break;
|
82 |
}
|
83 |
+
|
84 |
+
$result = $namespace . '\\' . $class;
|
85 |
}
|
86 |
|
87 |
+
if(empty($class))
|
88 |
return null;
|
89 |
|
90 |
+
return $result;
|
91 |
}
|
92 |
|
93 |
public function getClassesInPathByFilename($path)
|
123 |
if(!empty($class))
|
124 |
$this->filenamesByClass[$class] = $file;
|
125 |
}
|
126 |
+
|
127 |
+
$this->updateCache();
|
128 |
}
|
129 |
|
130 |
public function callback($class)
|
includes/class.marker-filter.php
CHANGED
@@ -22,7 +22,7 @@ class MarkerFilter
|
|
22 |
}
|
23 |
}
|
24 |
|
25 |
-
class ProMarkerFilter extends MarkerFilter
|
26 |
{
|
27 |
public function __construct()
|
28 |
{
|
@@ -33,3 +33,4 @@ class ProMarkerFilter extends MarkerFilter
|
|
33 |
$filter = MarkerFilter::createInstance();
|
34 |
|
35 |
var_dump($filter);
|
|
22 |
}
|
23 |
}
|
24 |
|
25 |
+
/*class ProMarkerFilter extends MarkerFilter
|
26 |
{
|
27 |
public function __construct()
|
28 |
{
|
33 |
$filter = MarkerFilter::createInstance();
|
34 |
|
35 |
var_dump($filter);
|
36 |
+
*/
|
includes/class.plugin.php
CHANGED
@@ -90,12 +90,8 @@ class Plugin
|
|
90 |
case "spatialFunctionPrefix":
|
91 |
$result = '';
|
92 |
|
93 |
-
if(!empty($this->mysqlVersion))
|
94 |
-
|
95 |
-
$majorVersion = (int)preg_match('/^\d+/', $this->mysqlVersion);
|
96 |
-
if($majorVersion >= 8)
|
97 |
-
$result = 'ST_';
|
98 |
-
}
|
99 |
|
100 |
return $result;
|
101 |
break;
|
@@ -204,6 +200,11 @@ class Plugin
|
|
204 |
return empty($this->settings->developer_mode);
|
205 |
}
|
206 |
|
|
|
|
|
|
|
|
|
|
|
207 |
public function isProVersion()
|
208 |
{
|
209 |
return false;
|
90 |
case "spatialFunctionPrefix":
|
91 |
$result = '';
|
92 |
|
93 |
+
if(!empty($this->mysqlVersion) && preg_match('/^\d+/', $this->mysqlVersion, $majorVersion) && (int)$majorVersion[0] > 8)
|
94 |
+
$result = 'ST_';
|
|
|
|
|
|
|
|
|
95 |
|
96 |
return $result;
|
97 |
break;
|
200 |
return empty($this->settings->developer_mode);
|
201 |
}
|
202 |
|
203 |
+
public function isInDeveloperMode()
|
204 |
+
{
|
205 |
+
return !(empty($this->settings->developer_mode) && !isset($_COOKIE['wpgmza-developer-mode']));
|
206 |
+
}
|
207 |
+
|
208 |
public function isProVersion()
|
209 |
{
|
210 |
return false;
|
includes/class.selector-to-xpath.php
CHANGED
@@ -12,14 +12,14 @@ class ParseException extends \Exception
|
|
12 |
public $css;
|
13 |
|
14 |
public function __construct($message, $code = 0, Exception $previous = null) {
|
15 |
-
|
16 |
}
|
17 |
}
|
18 |
|
19 |
class ConvertException extends \Exception
|
20 |
{
|
21 |
public function __construct($message, $code = 0, Exception $previous = null) {
|
22 |
-
|
23 |
}
|
24 |
}
|
25 |
|
12 |
public $css;
|
13 |
|
14 |
public function __construct($message, $code = 0, Exception $previous = null) {
|
15 |
+
\Exception::__construct($message, $code, $previous);
|
16 |
}
|
17 |
}
|
18 |
|
19 |
class ConvertException extends \Exception
|
20 |
{
|
21 |
public function __construct($message, $code = 0, Exception $previous = null) {
|
22 |
+
\Exception::__construct($message, $code, $previous);
|
23 |
}
|
24 |
}
|
25 |
|
includes/classes.json
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
{"filenamesByClass":{"\\WPGMZA\\Integration\\WPMigrateDB":"E:\\Programming\\Code Cabin\\htdocs-quick-fix\\wp-content\\plugins\\wp-google-maps-pro\/includes\\3rd-party-integration\\class.wp-migrate-db-integration.php","\\WPGMZA\\AutoLoader":"E:\\Programming\\Code Cabin\\htdocs-quick-fix\\wp-content\\plugins\\wp-google-maps\\includes\\class.auto-loader.php","\\WPGMZA\\Crud":"E:\\Programming\\Code Cabin\\htdocs-quick-fix\\wp-content\\plugins\\wp-google-maps\\includes\\class.crud.php","\\WPGMZA\\DOMDocument":"E:\\Programming\\Code Cabin\\htdocs-quick-fix\\wp-content\\plugins\\wp-google-maps\\includes\\class.dom-document.php","\\WPGMZA\\DOMElement":"E:\\Programming\\Code Cabin\\htdocs-quick-fix\\wp-content\\plugins\\wp-google-maps\\includes\\class.dom-element.php","\\WPGMZA\\GDPRCompliance":"E:\\Programming\\Code Cabin\\htdocs-quick-fix\\wp-content\\plugins\\wp-google-maps\\includes\\class.gdpr-compliance.php","\\WPGMZA\\GlobalSettings":"E:\\Programming\\Code Cabin\\htdocs-quick-fix\\wp-content\\plugins\\wp-google-maps\\includes\\class.global-settings.php","\\WPGMZA\\GoogleMapsAPILoader":"E:\\Programming\\Code Cabin\\htdocs-quick-fix\\wp-content\\plugins\\wp-google-maps\\includes\\class.google-maps-api-loader.php","\\WPGMZA\\LatLng":"E:\\Programming\\Code Cabin\\htdocs-quick-fix\\wp-content\\plugins\\wp-google-maps\\includes\\class.latlng.php","\\WPGMZA\\Map":"E:\\Programming\\Code Cabin\\htdocs-quick-fix\\wp-content\\plugins\\wp-google-maps\\includes\\class.map.php","\\WPGMZA\\MapsEngineDialog":"E:\\Programming\\Code Cabin\\htdocs-quick-fix\\wp-content\\plugins\\wp-google-maps\\includes\\class.maps-engine-dialog.php","\\WPGMZA\\MarkerFilter":"E:\\Programming\\Code Cabin\\htdocs-quick-fix\\wp-content\\plugins\\wp-google-maps\\includes\\class.marker-filter.php","\\WPGMZA\\Marker":"E:\\Programming\\Code Cabin\\htdocs-quick-fix\\wp-content\\plugins\\wp-google-maps\\includes\\class.marker.php","\\WPGMZA\\ModalDialog":"E:\\Programming\\Code Cabin\\htdocs-quick-fix\\wp-content\\plugins\\wp-google-maps\\includes\\class.modal-dialog.php","\\WPGMZA\\Plugin":"E:\\Programming\\Code Cabin\\htdocs-quick-fix\\wp-content\\plugins\\wp-google-maps\\includes\\class.plugin.php","\\WPGMZA\\RestAPI":"E:\\Programming\\Code Cabin\\htdocs-quick-fix\\wp-content\\plugins\\wp-google-maps\\includes\\class.rest-api.php","\\WPGMZA\\ScriptLoader":"E:\\Programming\\Code Cabin\\htdocs-quick-fix\\wp-content\\plugins\\wp-google-maps\\includes\\class.script-loader.php","\\WPGMZA\\Selector\\ParseException":"E:\\Programming\\Code Cabin\\htdocs-quick-fix\\wp-content\\plugins\\wp-google-maps\\includes\\class.selector-to-xpath.php","\\WPGMZA\\Strings":"E:\\Programming\\Code Cabin\\htdocs-quick-fix\\wp-content\\plugins\\wp-google-maps\\includes\\class.strings.php","\\WPGMZA\\GoogleGeocoder":"E:\\Programming\\Code Cabin\\htdocs-quick-fix\\wp-content\\plugins\\wp-google-maps\\includes\\google-maps\\class.google-geocoder.php","\\WPGMZA\\GoogleMap":"E:\\Programming\\Code Cabin\\htdocs-quick-fix\\wp-content\\plugins\\wp-google-maps\\includes\\google-maps\\class.google-map.php","\\WPGMZA\\GoogleMapsLoader":"E:\\Programming\\Code Cabin\\htdocs-quick-fix\\wp-content\\plugins\\wp-google-maps\\includes\\google-maps\\class.google-maps-loader.php","\\WPGMZA\\NominatimGeocodeCache":"E:\\Programming\\Code Cabin\\htdocs-quick-fix\\wp-content\\plugins\\wp-google-maps\\includes\\open-layers\\class.nominatim-geocode-cache.php","\\WPGMZA\\OLLoader":"E:\\Programming\\Code Cabin\\htdocs-quick-fix\\wp-content\\plugins\\wp-google-maps\\includes\\open-layers\\class.ol-loader.php","\\WPGMZA\\AddMapDialog":"E:\\Programming\\Code Cabin\\htdocs-quick-fix\\wp-content\\plugins\\wp-google-maps-pro\/includes\\class.add-map-dialog.php","\\WPGMZA\\Categories":"E:\\Programming\\Code Cabin\\htdocs-quick-fix\\wp-content\\plugins\\wp-google-maps-pro\/includes\\class.categories.php","\\WPGMZA\\ContentEditorMapButton":"E:\\Programming\\Code Cabin\\htdocs-quick-fix\\wp-content\\plugins\\wp-google-maps-pro\/includes\\class.content-editor-map-button.php","\\WPGMZA\\MapSelect":"E:\\Programming\\Code Cabin\\htdocs-quick-fix\\wp-content\\plugins\\wp-google-maps-pro\/includes\\class.map-select.php","\\WPGMZA\\MarkerLibraryDialog":"E:\\Programming\\Code Cabin\\htdocs-quick-fix\\wp-content\\plugins\\wp-google-maps-pro\/includes\\class.marker-library-dialog.php","\\WPGMZA\\MarkerListing":"E:\\Programming\\Code Cabin\\htdocs-quick-fix\\wp-content\\plugins\\wp-google-maps-pro\/includes\\class.marker-listing.php","\\WPGMZA\\ProPlugin":"E:\\Programming\\Code Cabin\\htdocs-quick-fix\\wp-content\\plugins\\wp-google-maps-pro\/includes\\class.pro-plugin.php","\\WPGMZA\\CustomFieldFilterWidget\\Checkboxes":"E:\\Programming\\Code Cabin\\htdocs-quick-fix\\wp-content\\plugins\\wp-google-maps-pro\/includes\\custom-field-filter-widgets\\class.checkboxes.php","\\WPGMZA\\CustomFieldFilterWidget\\Dropdown":"E:\\Programming\\Code Cabin\\htdocs-quick-fix\\wp-content\\plugins\\wp-google-maps-pro\/includes\\custom-field-filter-widgets\\class.dropdown.php","\\WPGMZA\\CustomFieldFilterWidget\\Text":"E:\\Programming\\Code Cabin\\htdocs-quick-fix\\wp-content\\plugins\\wp-google-maps-pro\/includes\\custom-field-filter-widgets\\class.text.php","\\WPGMZA\\CustomFieldFilterController":"E:\\Programming\\Code Cabin\\htdocs-quick-fix\\wp-content\\plugins\\wp-google-maps-pro\/includes\\custom-fields\\class.custom-field-filter-controller.php","\\WPGMZA\\CustomFieldFilterWidget":"E:\\Programming\\Code Cabin\\htdocs-quick-fix\\wp-content\\plugins\\wp-google-maps-pro\/includes\\custom-fields\\class.custom-field-filter-widget.php","\\WPGMZA\\CustomFieldFilter":"E:\\Programming\\Code Cabin\\htdocs-quick-fix\\wp-content\\plugins\\wp-google-maps-pro\/includes\\custom-fields\\class.custom-field-filter.php","\\WPGMZA\\CustomFields":"E:\\Programming\\Code Cabin\\htdocs-quick-fix\\wp-content\\plugins\\wp-google-maps-pro\/includes\\custom-fields\\class.custom-fields.php","\\WPGMZA\\CustomMapObjectFields":"E:\\Programming\\Code Cabin\\htdocs-quick-fix\\wp-content\\plugins\\wp-google-maps-pro\/includes\\custom-fields\\class.custom-map-object-fields.php","\\WPGMZA\\CustomMarkerFields":"E:\\Programming\\Code Cabin\\htdocs-quick-fix\\wp-content\\plugins\\wp-google-maps-pro\/includes\\custom-fields\\class.custom-marker-fields.php","\\WPGMZA\\CustomFieldsPage":"E:\\Programming\\Code Cabin\\htdocs-quick-fix\\wp-content\\plugins\\wp-google-maps-pro\/includes\\custom-fields\\page.custom-fields.php","\\WPGMZA\\GoogleProMapsLoader":"E:\\Programming\\Code Cabin\\htdocs-quick-fix\\wp-content\\plugins\\wp-google-maps-pro\/includes\\google-maps\\class.google-pro-maps-loader.php","\\WPGMZA\\Export":"E:\\Programming\\Code Cabin\\htdocs-quick-fix\\wp-content\\plugins\\wp-google-maps-pro\/includes\\import-export\\class.export.php","\\WPGMZA\\ImportCSV":"E:\\Programming\\Code Cabin\\htdocs-quick-fix\\wp-content\\plugins\\wp-google-maps-pro\/includes\\import-export\\class.import-csv.php","\\WPGMZA\\ImportGPX":"E:\\Programming\\Code Cabin\\htdocs-quick-fix\\wp-content\\plugins\\wp-google-maps-pro\/includes\\import-export\\class.import-gpx.php","\\WPGMZA\\ImportJSON":"E:\\Programming\\Code Cabin\\htdocs-quick-fix\\wp-content\\plugins\\wp-google-maps-pro\/includes\\import-export\\class.import-json.php","\\WPGMZA\\ImportKML":"E:\\Programming\\Code Cabin\\htdocs-quick-fix\\wp-content\\plugins\\wp-google-maps-pro\/includes\\import-export\\class.import-kml.php","\\WPGMZA\\Import":"E:\\Programming\\Code Cabin\\htdocs-quick-fix\\wp-content\\plugins\\wp-google-maps-pro\/includes\\import-export\\class.import.php","\\WPGMapsImportExport":"E:\\Programming\\Code Cabin\\htdocs-quick-fix\\wp-content\\plugins\\wp-google-maps-pro\/includes\\legacy\\page.legacy-import-export.php","\\WPGMZA\\OLProLoader":"E:\\Programming\\Code Cabin\\htdocs-quick-fix\\wp-content\\plugins\\wp-google-maps-pro\/includes\\open-layers\\class.ol-pro-loader.php"}}
|
js/v8/google-maps/google-geocoder.js
CHANGED
@@ -42,7 +42,9 @@
|
|
42 |
geometry: {
|
43 |
location: latLng
|
44 |
},
|
45 |
-
latLng: latLng
|
|
|
|
|
46 |
}
|
47 |
];
|
48 |
|
42 |
geometry: {
|
43 |
location: latLng
|
44 |
},
|
45 |
+
latLng: latLng,
|
46 |
+
lat: latLng.lat,
|
47 |
+
lng: latLng.lng
|
48 |
}
|
49 |
];
|
50 |
|
js/v8/google-maps/google-map.js
CHANGED
@@ -38,7 +38,7 @@
|
|
38 |
|
39 |
if(options)
|
40 |
this.setOptions(options);
|
41 |
-
|
42 |
google.maps.event.addListener(this.googleMap, "click", function(event) {
|
43 |
var wpgmzaEvent = new WPGMZA.Event("click");
|
44 |
wpgmzaEvent.latLng = {
|
38 |
|
39 |
if(options)
|
40 |
this.setOptions(options);
|
41 |
+
|
42 |
google.maps.event.addListener(this.googleMap, "click", function(event) {
|
43 |
var wpgmzaEvent = new WPGMZA.Event("click");
|
44 |
wpgmzaEvent.latLng = {
|
js/v8/map.js
CHANGED
@@ -74,7 +74,11 @@
|
|
74 |
WPGMZA.Map.prototype.loadSettings = function()
|
75 |
{
|
76 |
var settings = new WPGMZA.MapSettings(this.element);
|
77 |
-
|
|
|
|
|
|
|
|
|
78 |
}
|
79 |
|
80 |
/**
|
74 |
WPGMZA.Map.prototype.loadSettings = function()
|
75 |
{
|
76 |
var settings = new WPGMZA.MapSettings(this.element);
|
77 |
+
var other_settings = settings.other_settings;
|
78 |
+
|
79 |
+
delete settings.other_settings;
|
80 |
+
|
81 |
+
this.settings = $.extend({}, WPGMZA.settings, settings, other_settings);
|
82 |
}
|
83 |
|
84 |
/**
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: WPGMaps, NickDuncan, CodeCabin_, DylanAuty, PerryRylance
|
|
3 |
Donate link: http://www.wpgmaps.com
|
4 |
Tags: google maps, maps, map, map markers, google map, google maps plugin, wp google maps, wp google map, map plugin, directions, google map plugin, map widget
|
5 |
Requires at least: 3.5
|
6 |
-
Tested up to: 4.9.
|
7 |
Requires PHP: 5.3
|
8 |
Stable tag: trunk
|
9 |
License: GPLv2
|
3 |
Donate link: http://www.wpgmaps.com
|
4 |
Tags: google maps, maps, map, map markers, google map, google maps plugin, wp google maps, wp google map, map plugin, directions, google map plugin, map widget
|
5 |
Requires at least: 3.5
|
6 |
+
Tested up to: 4.9.7
|
7 |
Requires PHP: 5.3
|
8 |
Stable tag: trunk
|
9 |
License: GPLv2
|
wpGoogleMaps.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: WP Google Maps
|
4 |
Plugin URI: https://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: 7.10.
|
7 |
Author: WP Google Maps
|
8 |
Author URI: https://www.wpgmaps.com
|
9 |
Text Domain: wp-google-maps
|
@@ -11,6 +11,17 @@ Domain Path: /languages
|
|
11 |
*/
|
12 |
|
13 |
/*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
* 7.10.23 :- 2018-07-23 :- Low priority
|
15 |
* Fixed REST API endpoint URL incorrect for installations in subfolders
|
16 |
* Fixed WPGMZA\Parent not found
|
@@ -2765,6 +2776,7 @@ function wpgmaps_tag_basic( $atts ) {
|
|
2765 |
$map_align = $res->alignment;
|
2766 |
|
2767 |
$wpgmza_settings = get_option("WPGMZA_OTHER_SETTINGS");
|
|
|
2768 |
if (isset($wpgmza_settings['wpgmza_settings_marker_pull']) && $wpgmza_settings['wpgmza_settings_marker_pull'] == '0') {
|
2769 |
} else {
|
2770 |
/* only check if marker file exists if they are using the XML method */
|
@@ -2786,7 +2798,10 @@ function wpgmaps_tag_basic( $atts ) {
|
|
2786 |
$map_attributes .= "data-shortcode-height='{$atts["height"]}' ";
|
2787 |
|
2788 |
// This is a hack and should be fixed by using DOMDocument
|
2789 |
-
$
|
|
|
|
|
|
|
2790 |
$attr = str_replace('\\\\%', '%', $escaped);
|
2791 |
//$attr = stripslashes($attr);
|
2792 |
|
@@ -2796,8 +2811,9 @@ function wpgmaps_tag_basic( $atts ) {
|
|
2796 |
else if ($map_align == "2") { $map_align = "margin-left:auto !important; margin-right:auto; !important; align:center;"; }
|
2797 |
else if ($map_align == "3") { $map_align = "float:right;"; }
|
2798 |
else if ($map_align == "4") { $map_align = ""; }
|
|
|
2799 |
$map_style = "style=\"display:block; overflow:auto; width:".$res->map_width."".$map_width_type."; height:".$res->map_height."".$map_height_type."; $map_align\"";
|
2800 |
-
|
2801 |
$map_other_settings = maybe_unserialize($res->other_settings);
|
2802 |
$sl_data = "";
|
2803 |
if (isset($map_other_settings['store_locator_enabled']) && $map_other_settings['store_locator_enabled'] == 1) {
|
@@ -4357,7 +4373,7 @@ function wpgmaps_settings_page_basic() {
|
|
4357 |
|
4358 |
if (isset($wpgmza_settings['wpgmza_settings_remove_api'])) { $wpgmza_remove_api = $wpgmza_settings['wpgmza_settings_remove_api']; }
|
4359 |
if (isset($wpgmza_settings['wpgmza_force_greedy_gestures'])) { $wpgmza_force_greedy_gestures = $wpgmza_settings['wpgmza_force_greedy_gestures']; }
|
4360 |
-
|
4361 |
if (isset($wpgmza_settings['wpgmza_settings_map_scroll'])) { $wpgmza_settings_map_scroll = $wpgmza_settings['wpgmza_settings_map_scroll']; }
|
4362 |
if (isset($wpgmza_settings['wpgmza_settings_map_draggable'])) { $wpgmza_settings_map_draggable = $wpgmza_settings['wpgmza_settings_map_draggable']; }
|
4363 |
if (isset($wpgmza_settings['wpgmza_settings_map_clickzoom'])) { $wpgmza_settings_map_clickzoom = $wpgmza_settings['wpgmza_settings_map_clickzoom']; }
|
@@ -4675,8 +4691,7 @@ function wpgmaps_settings_page_basic() {
|
|
4675 |
$ret .= " <div class='switch'><input name='wpgmza_force_greedy_gestures' type='checkbox' class='cmn-toggle cmn-toggle-yes-no' id='wpgmza_force_greedy_gestures' value='yes' $wpgmza_force_greedy_gestures_checked /> <label for='wpgmza_force_greedy_gestures' data-on='".__("Yes", "wp-google-maps")."' data-off='".__("No", "wp-google-maps")."'></label></div> " . __("Removes the need to use two fingers to move the map on mobile devices", "wp-google-maps");
|
4676 |
$ret .= " </td>";
|
4677 |
$ret .= " </tr>";
|
4678 |
-
|
4679 |
-
|
4680 |
$ret .= " </table>";
|
4681 |
$ret = apply_filters("wpgooglemaps_map_settings_output_bottom",$ret,$wpgmza_settings);
|
4682 |
|
@@ -6728,6 +6743,7 @@ if (function_exists('wpgmza_register_pro_version')) {
|
|
6728 |
}
|
6729 |
|
6730 |
add_shortcode( 'wpgmza', 'wpgmaps_tag_pro' );
|
|
|
6731 |
} else {
|
6732 |
add_action('admin_head', 'wpgmaps_admin_javascript_basic',19);
|
6733 |
add_action('wp_ajax_add_marker', 'wpgmaps_action_callback_basic');
|
@@ -6741,6 +6757,7 @@ if (function_exists('wpgmza_register_pro_version')) {
|
|
6741 |
add_action('template_redirect','wpgmaps_check_shortcode');
|
6742 |
// add_action('wp_footer', 'wpgmaps_user_javascript_basic');
|
6743 |
add_shortcode( 'wpgmza', 'wpgmaps_tag_basic' );
|
|
|
6744 |
}
|
6745 |
|
6746 |
|
@@ -7678,6 +7695,7 @@ if(!function_exists('wpgmza_migrate_spatial_data'))
|
|
7678 |
{
|
7679 |
function wpgmza_migrate_spatial_data() {
|
7680 |
|
|
|
7681 |
global $wpdb;
|
7682 |
global $wpgmza_tblname;
|
7683 |
|
@@ -7687,7 +7705,7 @@ if(!function_exists('wpgmza_migrate_spatial_data'))
|
|
7687 |
if($wpdb->get_var("SELECT COUNT(id) FROM $wpgmza_tblname WHERE latlng IS NULL LIMIT 1") == 0)
|
7688 |
return; // Nothing to migrate
|
7689 |
|
7690 |
-
$wpdb->query("UPDATE ".$wpgmza_tblname." SET latlng=PointFromText(CONCAT('POINT(', CAST(lat AS DECIMAL(18,10)), ' ', CAST(lng AS DECIMAL(18,10)), ')'))");
|
7691 |
}
|
7692 |
|
7693 |
add_action('init', 'wpgmza_migrate_spatial_data', 1);
|
3 |
Plugin Name: WP Google Maps
|
4 |
Plugin URI: https://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: 7.10.25
|
7 |
Author: WP Google Maps
|
8 |
Author URI: https://www.wpgmaps.com
|
9 |
Text Domain: wp-google-maps
|
11 |
*/
|
12 |
|
13 |
/*
|
14 |
+
* 7.10.25 :- 2018-08-10 :- Low priority
|
15 |
+
* Fixed "Undefined variable" notice
|
16 |
+
*
|
17 |
+
* 7.10.24 :- 2018-08-01 :- Low Priority
|
18 |
+
* Added regex callback for class autoloader for installations where token_get_all is not available
|
19 |
+
* Added spatial function prefix to spatial data migration function
|
20 |
+
* Added lat and lng properties to GoogleGeocoder result (for Pro 5 & UGM compatibility)
|
21 |
+
* Altered Map module to deserialize other_settings and merge into the map settings object
|
22 |
+
* Altered parent:: to \Exception:: in CSS selector parser
|
23 |
+
* Fixed version detection for MySQL 8
|
24 |
+
*
|
25 |
* 7.10.23 :- 2018-07-23 :- Low priority
|
26 |
* Fixed REST API endpoint URL incorrect for installations in subfolders
|
27 |
* Fixed WPGMZA\Parent not found
|
2776 |
$map_align = $res->alignment;
|
2777 |
|
2778 |
$wpgmza_settings = get_option("WPGMZA_OTHER_SETTINGS");
|
2779 |
+
|
2780 |
if (isset($wpgmza_settings['wpgmza_settings_marker_pull']) && $wpgmza_settings['wpgmza_settings_marker_pull'] == '0') {
|
2781 |
} else {
|
2782 |
/* only check if marker file exists if they are using the XML method */
|
2798 |
$map_attributes .= "data-shortcode-height='{$atts["height"]}' ";
|
2799 |
|
2800 |
// This is a hack and should be fixed by using DOMDocument
|
2801 |
+
$settings_attribute_data = clone $res;
|
2802 |
+
$settings_attribute_data->other_settings = unserialize($settings_attribute_data->other_settings);
|
2803 |
+
|
2804 |
+
$escaped = esc_attr(json_encode($settings_attribute_data));
|
2805 |
$attr = str_replace('\\\\%', '%', $escaped);
|
2806 |
//$attr = stripslashes($attr);
|
2807 |
|
2811 |
else if ($map_align == "2") { $map_align = "margin-left:auto !important; margin-right:auto; !important; align:center;"; }
|
2812 |
else if ($map_align == "3") { $map_align = "float:right;"; }
|
2813 |
else if ($map_align == "4") { $map_align = ""; }
|
2814 |
+
|
2815 |
$map_style = "style=\"display:block; overflow:auto; width:".$res->map_width."".$map_width_type."; height:".$res->map_height."".$map_height_type."; $map_align\"";
|
2816 |
+
|
2817 |
$map_other_settings = maybe_unserialize($res->other_settings);
|
2818 |
$sl_data = "";
|
2819 |
if (isset($map_other_settings['store_locator_enabled']) && $map_other_settings['store_locator_enabled'] == 1) {
|
4373 |
|
4374 |
if (isset($wpgmza_settings['wpgmza_settings_remove_api'])) { $wpgmza_remove_api = $wpgmza_settings['wpgmza_settings_remove_api']; }
|
4375 |
if (isset($wpgmza_settings['wpgmza_force_greedy_gestures'])) { $wpgmza_force_greedy_gestures = $wpgmza_settings['wpgmza_force_greedy_gestures']; }
|
4376 |
+
|
4377 |
if (isset($wpgmza_settings['wpgmza_settings_map_scroll'])) { $wpgmza_settings_map_scroll = $wpgmza_settings['wpgmza_settings_map_scroll']; }
|
4378 |
if (isset($wpgmza_settings['wpgmza_settings_map_draggable'])) { $wpgmza_settings_map_draggable = $wpgmza_settings['wpgmza_settings_map_draggable']; }
|
4379 |
if (isset($wpgmza_settings['wpgmza_settings_map_clickzoom'])) { $wpgmza_settings_map_clickzoom = $wpgmza_settings['wpgmza_settings_map_clickzoom']; }
|
4691 |
$ret .= " <div class='switch'><input name='wpgmza_force_greedy_gestures' type='checkbox' class='cmn-toggle cmn-toggle-yes-no' id='wpgmza_force_greedy_gestures' value='yes' $wpgmza_force_greedy_gestures_checked /> <label for='wpgmza_force_greedy_gestures' data-on='".__("Yes", "wp-google-maps")."' data-off='".__("No", "wp-google-maps")."'></label></div> " . __("Removes the need to use two fingers to move the map on mobile devices", "wp-google-maps");
|
4692 |
$ret .= " </td>";
|
4693 |
$ret .= " </tr>";
|
4694 |
+
|
|
|
4695 |
$ret .= " </table>";
|
4696 |
$ret = apply_filters("wpgooglemaps_map_settings_output_bottom",$ret,$wpgmza_settings);
|
4697 |
|
6743 |
}
|
6744 |
|
6745 |
add_shortcode( 'wpgmza', 'wpgmaps_tag_pro' );
|
6746 |
+
|
6747 |
} else {
|
6748 |
add_action('admin_head', 'wpgmaps_admin_javascript_basic',19);
|
6749 |
add_action('wp_ajax_add_marker', 'wpgmaps_action_callback_basic');
|
6757 |
add_action('template_redirect','wpgmaps_check_shortcode');
|
6758 |
// add_action('wp_footer', 'wpgmaps_user_javascript_basic');
|
6759 |
add_shortcode( 'wpgmza', 'wpgmaps_tag_basic' );
|
6760 |
+
|
6761 |
}
|
6762 |
|
6763 |
|
7695 |
{
|
7696 |
function wpgmza_migrate_spatial_data() {
|
7697 |
|
7698 |
+
global $wpgmza;
|
7699 |
global $wpdb;
|
7700 |
global $wpgmza_tblname;
|
7701 |
|
7705 |
if($wpdb->get_var("SELECT COUNT(id) FROM $wpgmza_tblname WHERE latlng IS NULL LIMIT 1") == 0)
|
7706 |
return; // Nothing to migrate
|
7707 |
|
7708 |
+
$wpdb->query("UPDATE ".$wpgmza_tblname." SET latlng={$wpgmza->spatialFunctionPrefix}PointFromText(CONCAT('POINT(', CAST(lat AS DECIMAL(18,10)), ' ', CAST(lng AS DECIMAL(18,10)), ')'))");
|
7709 |
}
|
7710 |
|
7711 |
add_action('init', 'wpgmza_migrate_spatial_data', 1);
|