Version Description
- Added: Generate Google Maps API key button
Download this release
Release Info
Developer | webdorado |
Plugin | WD Google Maps – Google Maps builder Plugin |
Version | 1.0.43 |
Comparing to | |
See all releases |
Code changes from version 1.0.42 to 1.0.43
- admin/views/GMWDViewOptions_gmwd.php +7 -3
- framework/functions.php +1 -4
- gmwd_admin_class.php +1 -1
- google-maps-setup.php +7 -4
- readme.txt +5 -2
- wd-google-maps.php +1 -1
admin/views/GMWDViewOptions_gmwd.php
CHANGED
@@ -19,8 +19,10 @@ class GMWDViewOptions_gmwd extends GMWDView{
|
|
19 |
////////////////////////////////////////////////////////////////////////////////////////
|
20 |
|
21 |
public function display(){
|
|
|
22 |
$options = $this->model->get_options();
|
23 |
$lists = $this->model->get_lists();
|
|
|
24 |
?>
|
25 |
<div class="gmwd_edit">
|
26 |
|
@@ -56,9 +58,11 @@ class GMWDViewOptions_gmwd extends GMWDView{
|
|
56 |
</tr>
|
57 |
<tr>
|
58 |
<td colspan="2">
|
59 |
-
<a
|
60 |
-
|
61 |
-
|
|
|
|
|
62 |
</td>
|
63 |
</tr>
|
64 |
<tr>
|
19 |
////////////////////////////////////////////////////////////////////////////////////////
|
20 |
|
21 |
public function display(){
|
22 |
+
add_thickbox();
|
23 |
$options = $this->model->get_options();
|
24 |
$lists = $this->model->get_lists();
|
25 |
+
$query_url_generate_key = 'https://console.developers.google.com/henhouse/?pb=["hh-1","maps_backend",null,[],"https://developers.google.com",null,["maps_backend","geocoding_backend","directions_backend","distance_matrix_backend","elevation_backend","places_backend","static_maps_backend","roads","street_view_image_backend","geolocation"],null]&TB_iframe=true&width=600&height=400';
|
26 |
?>
|
27 |
<div class="gmwd_edit">
|
28 |
|
58 |
</tr>
|
59 |
<tr>
|
60 |
<td colspan="2">
|
61 |
+
<a class="wd-btn wd-btn-primary thickbox thickbox-preview" name="<?php _e( 'Generate API Key - ( MUST be logged in to your Google account )', 'gmwd' ); ?>" href='<?php echo $query_url_generate_key;?>'>
|
62 |
+
<?php _e("Generate Key","gmwd");?>
|
63 |
+
</a>
|
64 |
+
or <a target="_blank" href='https://console.developers.google.com/flows/enableapi?apiid=maps_backend,geocoding_backend,directions_backend,distance_matrix_backend,elevation_backend,static_maps_backend,roads,street_view_image_backend,geolocation,places_backend&keyType=CLIENT_SIDE&reusekey=true'>click here</a>
|
65 |
+
<?php echo _e( ' to Get a Google Maps API KEY', 'gmwd' ) ?>
|
66 |
</td>
|
67 |
</tr>
|
68 |
<tr>
|
framework/functions.php
CHANGED
@@ -84,10 +84,7 @@ function api_key_notice(){
|
|
84 |
<div class="error">
|
85 |
<p style="font-size:18px;"><strong>'.__("Important. API key is required for Google Maps to work.","gmwd").'</strong></p>
|
86 |
<p style="font-size:18px;"><strong>'.__("To avoid limitation errors, fill in your own App key.","gmwd").'</strong></p>
|
87 |
-
|
88 |
-
<p>'.__("For getting API key read more in","gmwd").'
|
89 |
-
<a href="https://web-dorado.com/wordpress-google-maps/installation-wizard-options-menu/configuring-api-key.html" target="_blank" style="color: #00A0D2;">'. __("User Manual","gmwd").'</a>.
|
90 |
-
</p>
|
91 |
<p>After creating the API key, please paste it here.</p>
|
92 |
<form method="post">
|
93 |
'.wp_nonce_field('nonce_gmwd', 'nonce_gmwd').'
|
84 |
<div class="error">
|
85 |
<p style="font-size:18px;"><strong>'.__("Important. API key is required for Google Maps to work.","gmwd").'</strong></p>
|
86 |
<p style="font-size:18px;"><strong>'.__("To avoid limitation errors, fill in your own App key.","gmwd").'</strong></p>
|
87 |
+
<p><a href=\'https://console.developers.google.com/henhouse/?pb=["hh-1","maps_backend",null,[],"https://developers.google.com",null,["maps_backend","geocoding_backend","directions_backend","distance_matrix_backend","elevation_backend","places_backend","static_maps_backend","roads","street_view_image_backend","geolocation"],null]&TB_iframe=true&width=600&height=400\' class="wd-btn wd-btn-primary thickbox" style="text-decoration:none;" name="'.__( "Generate API Key - ( MUST be logged in to your Google account )", "gmwd" ).'">'.__("Generate Key","gmwd").'</a> or <a target="_blank" href="https://console.developers.google.com/flows/enableapi?apiid=maps_backend,geocoding_backend,directions_backend,distance_matrix_backend,elevation_backend,static_maps_backend,roads,street_view_image_backend,geolocation,places_backend&keyType=CLIENT_SIDE&reusekey=true">click here</a> to Get a Google Maps API KEY</p>
|
|
|
|
|
|
|
88 |
<p>After creating the API key, please paste it here.</p>
|
89 |
<form method="post">
|
90 |
'.wp_nonce_field('nonce_gmwd', 'nonce_gmwd').'
|
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.43';
|
15 |
////////////////////////////////////////////////////////////////////////////////////////
|
16 |
// Constructor & Destructor //
|
17 |
////////////////////////////////////////////////////////////////////////////////////////
|
google-maps-setup.php
CHANGED
@@ -270,6 +270,7 @@ class GMWDSetupWizard {
|
|
270 |
"zh-CN" => "Chinese (Simplified)",
|
271 |
"zh-TW" => "Chinese (Traditional)"
|
272 |
);
|
|
|
273 |
?>
|
274 |
<div class="gmwd_edit gmwd_wizard">
|
275 |
<form method="post" action="" id="setupForm">
|
@@ -280,10 +281,12 @@ class GMWDSetupWizard {
|
|
280 |
<table class="gmwd_edit_table" style="width: 100%;">
|
281 |
<tr>
|
282 |
<td colspan="2">
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
|
|
|
|
287 |
</td>
|
288 |
</tr>
|
289 |
<tr>
|
270 |
"zh-CN" => "Chinese (Simplified)",
|
271 |
"zh-TW" => "Chinese (Traditional)"
|
272 |
);
|
273 |
+
$query_url_generate_key = 'https://console.developers.google.com/henhouse/?pb=["hh-1","maps_backend",null,[],"https://developers.google.com",null,["maps_backend","geocoding_backend","directions_backend","distance_matrix_backend","elevation_backend","places_backend","static_maps_backend","roads","street_view_image_backend","geolocation"],null]&TB_iframe=true&width=600&height=400';
|
274 |
?>
|
275 |
<div class="gmwd_edit gmwd_wizard">
|
276 |
<form method="post" action="" id="setupForm">
|
281 |
<table class="gmwd_edit_table" style="width: 100%;">
|
282 |
<tr>
|
283 |
<td colspan="2">
|
284 |
+
<p style="font-size:17px;"><strong><?php _e("Important. API key is required for Google Maps to work.","gmwd"); ?></strong></p>
|
285 |
+
<a class="wd-btn wd-btn-primary thickbox thickbox-preview" name="<?php _e( 'Generate API Key - ( MUST be logged in to your Google account )', 'gmwd' ); ?>" href='<?php echo $query_url_generate_key;?>'>
|
286 |
+
<?php _e("Generate Key","gmwd");?>
|
287 |
+
</a>
|
288 |
+
or <a target="_blank" href='https://console.developers.google.com/flows/enableapi?apiid=maps_backend,geocoding_backend,directions_backend,distance_matrix_backend,elevation_backend,static_maps_backend,roads,street_view_image_backend,geolocation,places_backend&keyType=CLIENT_SIDE&reusekey=true'>click here</a>
|
289 |
+
<?php echo _e( ' to Get a Google Maps API KEY', 'gmwd' ) ?>
|
290 |
</td>
|
291 |
</tr>
|
292 |
<tr>
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://web-dorado.com/products/wordpress-google-maps-plugin.html
|
|
4 |
Tags: google map, google maps, map, map markers, maps, directions, google map plugin, google maps plugin, map plugin, map widget, wp google map, wp google maps, google map widget, google map shortcode, wp map, google maps directions, google maps builder, google places, google places api, google maps api, google places reviews, contact page map, custom google map, loaction by address, location, map direction, map styles, polygons, simple google map, gmap, google map embed, best google maps, custom google maps
|
5 |
Requires at least: 3.4
|
6 |
Tested up to: 4.8
|
7 |
-
Stable tag: 1.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -12,7 +12,7 @@ Google Maps WD is an intuitive tool for creating Google maps with advanced marke
|
|
12 |
|
13 |
== Description ==
|
14 |
|
15 |
-
https://www.youtube.com/watch?v=
|
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/)
|
@@ -117,6 +117,9 @@ After downloading the ZIP file of the Google Maps WD plugin,
|
|
117 |
|
118 |
== Changelog ==
|
119 |
|
|
|
|
|
|
|
120 |
= 1.0.42 =
|
121 |
* Fixed: JS error on shortcode editor pop-up
|
122 |
|
4 |
Tags: google map, google maps, map, map markers, maps, directions, google map plugin, google maps plugin, map plugin, map widget, wp google map, wp google maps, google map widget, google map shortcode, wp map, google maps directions, google maps builder, google places, google places api, google maps api, google places reviews, contact page map, custom google map, loaction by address, location, map direction, map styles, polygons, simple google map, gmap, google map embed, best google maps, custom google maps
|
5 |
Requires at least: 3.4
|
6 |
Tested up to: 4.8
|
7 |
+
Stable tag: 1.0.43
|
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=bUI4ObvKlkA
|
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/)
|
117 |
|
118 |
== Changelog ==
|
119 |
|
120 |
+
= 1.0.43 =
|
121 |
+
* Added: Generate Google Maps API key button
|
122 |
+
|
123 |
= 1.0.42 =
|
124 |
* Fixed: JS error on shortcode editor pop-up
|
125 |
|
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.43
|
8 |
* Author: WebDorado
|
9 |
* Author URI: http://web-dorado.com/
|
10 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|