Version Description
- Added: Geolocation notifications and api key user manual link
Download this release
Release Info
Developer | webdorado |
Plugin | WD Google Maps – Google Maps builder Plugin |
Version | 1.0.9 |
Comparing to | |
See all releases |
Code changes from version 1.0.8 to 1.0.9
- admin/views/GMWDViewMaps_gmwd.php +15 -4
- admin/views/GMWDViewOptions_gmwd.php +12 -6
- gmwd_admin_class.php +1 -1
- js/maps_gmwd.js +12 -2
- readme.txt +6 -1
- wd-google-maps.php +1 -1
admin/views/GMWDViewMaps_gmwd.php
CHANGED
@@ -176,7 +176,11 @@ class GMWDViewMaps_gmwd extends GMWDView{
|
|
176 |
$query_url_polygon = $urls["polygon"] ;
|
177 |
$query_url_polyline = $urls["polyline"] ;
|
178 |
|
179 |
-
$main_tabs = array("map" => __("Map","gmwd"), "settings" => __("Settings","gmwd"), "theme_preview" => __("Theme / Preview","gmwd"))
|
|
|
|
|
|
|
|
|
180 |
?>
|
181 |
<div class="gmwd_opacity_div">
|
182 |
<div class="gmwd_opacity_div_loading"><img src="<?php echo GMWD_URL."/images/loading.gif";?>"></div>
|
@@ -354,7 +358,7 @@ class GMWDViewMaps_gmwd extends GMWDView{
|
|
354 |
</form>
|
355 |
</div>
|
356 |
<script>
|
357 |
-
|
358 |
jQuery(".wd-settings-tabs-container [data-slider]").each(function () {
|
359 |
var input = jQuery(this);
|
360 |
jQuery("<span>").addClass("output").insertAfter(jQuery(this));
|
@@ -673,7 +677,10 @@ class GMWDViewMaps_gmwd extends GMWDView{
|
|
673 |
</div>
|
674 |
<?php
|
675 |
}
|
676 |
-
private function settings_general($row, $lists){
|
|
|
|
|
|
|
677 |
?>
|
678 |
<table class="settings_table">
|
679 |
|
@@ -772,7 +779,11 @@ class GMWDViewMaps_gmwd extends GMWDView{
|
|
772 |
</select>
|
773 |
</td>
|
774 |
</tr>
|
775 |
-
|
|
|
|
|
|
|
|
|
776 |
<tr>
|
777 |
<td><label title="<?php _e("With W3C Geolocation standard you can detect the user's location on front end.","gmwd");?>"><?php _e("Geolocate User","gmwd"); ?>:</label></td>
|
778 |
<td>
|
176 |
$query_url_polygon = $urls["polygon"] ;
|
177 |
$query_url_polyline = $urls["polyline"] ;
|
178 |
|
179 |
+
$main_tabs = array("map" => __("Map","gmwd"), "settings" => __("Settings","gmwd"), "theme_preview" => __("Theme / Preview","gmwd"));
|
180 |
+
$whitelist = array( '127.0.0.1', '::1' );
|
181 |
+
$is_localhost = in_array( $_SERVER['REMOTE_ADDR'], $whitelist) ? 1 : 0;
|
182 |
+
$is_https = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off') || $is_localhost ? 1 : 0;
|
183 |
+
|
184 |
?>
|
185 |
<div class="gmwd_opacity_div">
|
186 |
<div class="gmwd_opacity_div_loading"><img src="<?php echo GMWD_URL."/images/loading.gif";?>"></div>
|
358 |
</form>
|
359 |
</div>
|
360 |
<script>
|
361 |
+
var isHttps = <?php echo $is_https;?>;
|
362 |
jQuery(".wd-settings-tabs-container [data-slider]").each(function () {
|
363 |
var input = jQuery(this);
|
364 |
jQuery("<span>").addClass("output").insertAfter(jQuery(this));
|
677 |
</div>
|
678 |
<?php
|
679 |
}
|
680 |
+
private function settings_general($row, $lists){
|
681 |
+
$whitelist = array( '127.0.0.1', '::1' );
|
682 |
+
$is_localhost = in_array( $_SERVER['REMOTE_ADDR'], $whitelist) ? 1 : 0;
|
683 |
+
$is_https = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off') || $is_localhost ? 1 : 0;
|
684 |
?>
|
685 |
<table class="settings_table">
|
686 |
|
779 |
</select>
|
780 |
</td>
|
781 |
</tr>
|
782 |
+
<tr class="geolocation_msg" <?php if($is_https == 1 || ($is_https == 0 && $row->geolocate_user == 0)) echo "style='display:none;'"; ?>>
|
783 |
+
<td colspan="2">
|
784 |
+
<div class="gmwd_pro_option gmwd_pro_option_msg"><?php _e("Geolocation API call must be served from a secure context such as HTTPS.","gmwd");?></div>
|
785 |
+
</td>
|
786 |
+
</tr>
|
787 |
<tr>
|
788 |
<td><label title="<?php _e("With W3C Geolocation standard you can detect the user's location on front end.","gmwd");?>"><?php _e("Geolocate User","gmwd"); ?>:</label></td>
|
789 |
<td>
|
admin/views/GMWDViewOptions_gmwd.php
CHANGED
@@ -52,12 +52,18 @@ class GMWDViewOptions_gmwd extends GMWDView{
|
|
52 |
<div id="general" class="wd-options-container" style="width:500px">
|
53 |
<table class="gmwd_edit_table" style="width:100%;">
|
54 |
<tr>
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
61 |
<tr>
|
62 |
<td width="30%"><label for="map_language" title="<?php _e("Choose Your Map Language","gmwd");?>"><?php _e("Map Language","gmwd"); ?>:</label></td>
|
63 |
<td>
|
52 |
<div id="general" class="wd-options-container" style="width:500px">
|
53 |
<table class="gmwd_edit_table" style="width:100%;">
|
54 |
<tr>
|
55 |
+
<td width="30%"><label for="map_api_key" title="<?php _e("Set your map API key","gmwd");?>"><?php _e("Map API Key","gmwd"); ?>:</label></td>
|
56 |
+
<td>
|
57 |
+
<input type="text" name="map_api_key" id="map_api_key" value="<?php echo $options->map_api_key;?>" >
|
58 |
+
</td>
|
59 |
+
</tr>
|
60 |
+
<tr>
|
61 |
+
<td colspan="2">
|
62 |
+
<a href="https://console.developers.google.com/flows/enableapi?apiid=maps_backend,geocoding_backend,directions_backend,distance_matrix_backend,elevation_backend,static_maps_backend,geocoding_backend,roads,street_view_image_backend,geolocation&keyType=CLIENT_SIDE&reusekey=true" target="_blank" style="color: #00A0D2;"><?php _e("Get Key","gmwd");?></a>.
|
63 |
+
<?php _e("For Getting API Key Read More in","gmwd");?>
|
64 |
+
<a href="https://web-dorado.com/wordpress-google-maps/installation-wizard-options-menu/configuring-api-key.html" target="_blank" style="color: #00A0D2;"><?php _e("User Manual","gmwd");?></a>.
|
65 |
+
</td>
|
66 |
+
</tr>
|
67 |
<tr>
|
68 |
<td width="30%"><label for="map_language" title="<?php _e("Choose Your Map Language","gmwd");?>"><?php _e("Map Language","gmwd"); ?>:</label></td>
|
69 |
<td>
|
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.9';
|
15 |
////////////////////////////////////////////////////////////////////////////////////////
|
16 |
// Constructor & Destructor //
|
17 |
////////////////////////////////////////////////////////////////////////////////////////
|
js/maps_gmwd.js
CHANGED
@@ -257,8 +257,18 @@ jQuery( document ).ready(function() {
|
|
257 |
fusionTableId = jQuery(this).val();
|
258 |
gmwdSetFusionTableId();
|
259 |
});
|
260 |
-
|
261 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
262 |
});
|
263 |
|
264 |
////////////////////////////////////////////////////////////////////////////////////////
|
257 |
fusionTableId = jQuery(this).val();
|
258 |
gmwdSetFusionTableId();
|
259 |
});
|
260 |
+
|
261 |
+
// geolocate user
|
262 |
+
jQuery("[name=geolocate_user]").change(function(){
|
263 |
+
if(isHttps == 0){
|
264 |
+
if(jQuery(this).val() == 1){
|
265 |
+
jQuery(".geolocation_msg").show();
|
266 |
+
}
|
267 |
+
else{
|
268 |
+
jQuery(".geolocation_msg").hide();
|
269 |
+
}
|
270 |
+
}
|
271 |
+
});
|
272 |
});
|
273 |
|
274 |
////////////////////////////////////////////////////////////////////////////////////////
|
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 |
|
@@ -12,6 +12,8 @@ Google Maps WD is an intuitive tool for creating Google maps with advanced marke
|
|
12 |
|
13 |
== Description ==
|
14 |
|
|
|
|
|
15 |
[WordPress Google Maps WD](https://web-dorado.com/products/wordpress-google-maps-plugin.html)
|
16 |
[Demo](http://wpdemo.web-dorado.com/google-maps/)
|
17 |
[Demo Admin](http://wpdemo.web-dorado.com/wp-admin/admin.php?page=maps_gmwd)
|
@@ -108,6 +110,9 @@ After downloading the ZIP file of the Google Maps WD plugin,
|
|
108 |
|
109 |
== Changelog ==
|
110 |
|
|
|
|
|
|
|
111 |
= 1.0.8 =
|
112 |
* Added: API Key option
|
113 |
|
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.9
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
12 |
|
13 |
== Description ==
|
14 |
|
15 |
+
https://www.youtube.com/watch?v=acaexefeP7o
|
16 |
+
|
17 |
[WordPress Google Maps WD](https://web-dorado.com/products/wordpress-google-maps-plugin.html)
|
18 |
[Demo](http://wpdemo.web-dorado.com/google-maps/)
|
19 |
[Demo Admin](http://wpdemo.web-dorado.com/wp-admin/admin.php?page=maps_gmwd)
|
110 |
|
111 |
== Changelog ==
|
112 |
|
113 |
+
= 1.0.9 =
|
114 |
+
* Added: Geolocation notifications and api key user manual link
|
115 |
+
|
116 |
= 1.0.8 =
|
117 |
* Added: API Key option
|
118 |
|
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.9
|
8 |
* Author: WebDorado
|
9 |
* Author URI: http://web-dorado.com/
|
10 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|