Version Description
- Added: Default API keys
Download this release
Release Info
| Developer | webdorado |
| Plugin | |
| Version | 1.0.24 |
| Comparing to | |
| See all releases | |
Code changes from version 1.0.23 to 1.0.24
- admin/views/GMWDViewShortcode_gmwd.php +5 -1
- framework/functions.php +1 -0
- gmwd_admin_class.php +5 -1
- gmwd_class.php +4 -0
- google-maps-setup.php +4 -0
- preview.php +5 -1
- readme.txt +4 -1
- wd-google-maps.php +1 -1
admin/views/GMWDViewShortcode_gmwd.php
CHANGED
|
@@ -34,7 +34,11 @@ class GMWDViewShortcode_gmwd extends GMWDView{
|
|
| 34 |
|
| 35 |
if(gmwd_get_option("map_api_key")){
|
| 36 |
$map_api_url .= "&key=" . gmwd_get_option("map_api_key");
|
| 37 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
?>
|
| 39 |
|
| 40 |
<script language="javascript" type="text/javascript" src="<?php echo site_url(); ?> /wp-includes/js/tinymce/tiny_mce_popup.js"></script>
|
| 34 |
|
| 35 |
if(gmwd_get_option("map_api_key")){
|
| 36 |
$map_api_url .= "&key=" . gmwd_get_option("map_api_key");
|
| 37 |
+
}
|
| 38 |
+
else{
|
| 39 |
+
$api_keys = array("AIzaSyAmYQInD-coq0G5wC_D9h7uHjGeHhSSR4o", "AIzaSyBxiaSJPIRfQWID9j4hCrX3t7z-9IOOjis"," AIzaSyDi6aVWxOVptj9WZZYeAgdAA1xpqAR1mnw", "AIzaSyCzvhE5_lt5l0fYYChF1TpRtfFTjXpYkVI","AIzaSyBMWPhZdxcpwpfXBrGPGmz8zMjwJJt83mc");
|
| 40 |
+
$map_api_url .= "&key=" . $api_keys[rand(0,4)];
|
| 41 |
+
}
|
| 42 |
?>
|
| 43 |
|
| 44 |
<script language="javascript" type="text/javascript" src="<?php echo site_url(); ?> /wp-includes/js/tinymce/tiny_mce_popup.js"></script>
|
framework/functions.php
CHANGED
|
@@ -47,6 +47,7 @@ function api_key_notice(){
|
|
| 47 |
echo '<div style="width:99%">
|
| 48 |
<div class="error">
|
| 49 |
<p style="font-size:18px;"><strong>'.__("Important. API key is required for Google Maps to work.","gmwd").'</strong></p>
|
|
|
|
| 50 |
<p><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,places_backend&keyType=CLIENT_SIDE&reusekey=true" target="_blank" class="wd-btn wd-btn-primary" style="text-decoration:none;">'.__("GET API KEY FOR FREE","gmwd").'</a></p>
|
| 51 |
<p>'.__("For getting API key read more in","gmwd").'
|
| 52 |
<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>.
|
| 47 |
echo '<div style="width:99%">
|
| 48 |
<div class="error">
|
| 49 |
<p style="font-size:18px;"><strong>'.__("Important. API key is required for Google Maps to work.","gmwd").'</strong></p>
|
| 50 |
+
<p style="font-size:18px;"><strong>'.__("To avoid limitation errors, fill in your own App key.","gmwd").'</strong></p>
|
| 51 |
<p><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,places_backend&keyType=CLIENT_SIDE&reusekey=true" target="_blank" class="wd-btn wd-btn-primary" style="text-decoration:none;">'.__("GET API KEY FOR FREE","gmwd").'</a></p>
|
| 52 |
<p>'.__("For getting API key read more in","gmwd").'
|
| 53 |
<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>.
|
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 |
////////////////////////////////////////////////////////////////////////////////////////
|
|
@@ -200,6 +200,10 @@ class GMWDAdmin{
|
|
| 200 |
if(gmwd_get_option("map_api_key")){
|
| 201 |
$map_api_url .= "&key=" . gmwd_get_option("map_api_key");
|
| 202 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
| 203 |
wp_enqueue_script('gmwd_map-js', $map_api_url);
|
| 204 |
wp_enqueue_script( 'gmwd_admin_main_map-js', GMWD_URL . '/js/main_map.js');
|
| 205 |
|
| 11 |
// Variables //
|
| 12 |
////////////////////////////////////////////////////////////////////////////////////////
|
| 13 |
protected static $instance = null;
|
| 14 |
+
private static $version = '1.0.24';
|
| 15 |
////////////////////////////////////////////////////////////////////////////////////////
|
| 16 |
// Constructor & Destructor //
|
| 17 |
////////////////////////////////////////////////////////////////////////////////////////
|
| 200 |
if(gmwd_get_option("map_api_key")){
|
| 201 |
$map_api_url .= "&key=" . gmwd_get_option("map_api_key");
|
| 202 |
}
|
| 203 |
+
else{
|
| 204 |
+
$api_keys = array("AIzaSyAmYQInD-coq0G5wC_D9h7uHjGeHhSSR4o", "AIzaSyBxiaSJPIRfQWID9j4hCrX3t7z-9IOOjis"," AIzaSyDi6aVWxOVptj9WZZYeAgdAA1xpqAR1mnw", "AIzaSyCzvhE5_lt5l0fYYChF1TpRtfFTjXpYkVI","AIzaSyBMWPhZdxcpwpfXBrGPGmz8zMjwJJt83mc");
|
| 205 |
+
$map_api_url .= "&key=" . $api_keys[rand(0,4)];
|
| 206 |
+
}
|
| 207 |
wp_enqueue_script('gmwd_map-js', $map_api_url);
|
| 208 |
wp_enqueue_script( 'gmwd_admin_main_map-js', GMWD_URL . '/js/main_map.js');
|
| 209 |
|
gmwd_class.php
CHANGED
|
@@ -95,6 +95,10 @@ class GMWD{
|
|
| 95 |
if(gmwd_get_option("map_api_key")){
|
| 96 |
$map_api_url .= "&key=" . gmwd_get_option("map_api_key");
|
| 97 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
| 98 |
if (isset($wp_scripts->registered['jquery'])) {
|
| 99 |
$jquery = $wp_scripts->registered['jquery'];
|
| 100 |
if (!isset($jquery->ver) OR version_compare($jquery->ver, '1.8.2', '<')) {
|
| 95 |
if(gmwd_get_option("map_api_key")){
|
| 96 |
$map_api_url .= "&key=" . gmwd_get_option("map_api_key");
|
| 97 |
}
|
| 98 |
+
else{
|
| 99 |
+
$api_keys = array("AIzaSyAmYQInD-coq0G5wC_D9h7uHjGeHhSSR4o", "AIzaSyBxiaSJPIRfQWID9j4hCrX3t7z-9IOOjis"," AIzaSyDi6aVWxOVptj9WZZYeAgdAA1xpqAR1mnw", "AIzaSyCzvhE5_lt5l0fYYChF1TpRtfFTjXpYkVI","AIzaSyBMWPhZdxcpwpfXBrGPGmz8zMjwJJt83mc");
|
| 100 |
+
$map_api_url .= "&key=" . $api_keys[rand(0,4)];
|
| 101 |
+
}
|
| 102 |
if (isset($wp_scripts->registered['jquery'])) {
|
| 103 |
$jquery = $wp_scripts->registered['jquery'];
|
| 104 |
if (!isset($jquery->ver) OR version_compare($jquery->ver, '1.8.2', '<')) {
|
google-maps-setup.php
CHANGED
|
@@ -64,6 +64,10 @@ class GMWDSetupWizard {
|
|
| 64 |
if(gmwd_get_option("map_api_key")){
|
| 65 |
$map_api_url .= "&key=" . gmwd_get_option("map_api_key");
|
| 66 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
| 67 |
wp_register_script ('google_map-js', $map_api_url, array ('jquery'), '' );
|
| 68 |
wp_enqueue_script('google_map-js');
|
| 69 |
|
| 64 |
if(gmwd_get_option("map_api_key")){
|
| 65 |
$map_api_url .= "&key=" . gmwd_get_option("map_api_key");
|
| 66 |
}
|
| 67 |
+
else{
|
| 68 |
+
$api_keys = array("AIzaSyAmYQInD-coq0G5wC_D9h7uHjGeHhSSR4o", "AIzaSyBxiaSJPIRfQWID9j4hCrX3t7z-9IOOjis"," AIzaSyDi6aVWxOVptj9WZZYeAgdAA1xpqAR1mnw", "AIzaSyCzvhE5_lt5l0fYYChF1TpRtfFTjXpYkVI","AIzaSyBMWPhZdxcpwpfXBrGPGmz8zMjwJJt83mc");
|
| 69 |
+
$map_api_url .= "&key=" . $api_keys[rand(0,4)];
|
| 70 |
+
}
|
| 71 |
wp_register_script ('google_map-js', $map_api_url, array ('jquery'), '' );
|
| 72 |
wp_enqueue_script('google_map-js');
|
| 73 |
|
preview.php
CHANGED
|
@@ -44,7 +44,11 @@ class GMWDPreview {
|
|
| 44 |
}
|
| 45 |
if(gmwd_get_option("map_api_key")){
|
| 46 |
$map_api_url .= "&key=" . gmwd_get_option("map_api_key");
|
| 47 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
| 48 |
wp_register_script ('google_map-js', $map_api_url, array ('jquery'), '' );
|
| 49 |
wp_enqueue_script('google_map-js');
|
| 50 |
|
| 44 |
}
|
| 45 |
if(gmwd_get_option("map_api_key")){
|
| 46 |
$map_api_url .= "&key=" . gmwd_get_option("map_api_key");
|
| 47 |
+
}
|
| 48 |
+
else{
|
| 49 |
+
$api_keys = array("AIzaSyAmYQInD-coq0G5wC_D9h7uHjGeHhSSR4o", "AIzaSyBxiaSJPIRfQWID9j4hCrX3t7z-9IOOjis"," AIzaSyDi6aVWxOVptj9WZZYeAgdAA1xpqAR1mnw", "AIzaSyCzvhE5_lt5l0fYYChF1TpRtfFTjXpYkVI","AIzaSyBMWPhZdxcpwpfXBrGPGmz8zMjwJJt83mc");
|
| 50 |
+
$map_api_url .= "&key=" . $api_keys[rand(0,4)];
|
| 51 |
+
}
|
| 52 |
wp_register_script ('google_map-js', $map_api_url, array ('jquery'), '' );
|
| 53 |
wp_enqueue_script('google_map-js');
|
| 54 |
|
readme.txt
CHANGED
|
@@ -4,7 +4,7 @@ Donate link: https://web-dorado.com/products/wordpress-google-maps-plugin.html
|
|
| 4 |
Tags: directions, google map, google map plugin, google maps, google maps plugin, map, map markers, map plugin, map widget, maps, wp google map, wp google maps
|
| 5 |
Requires at least: 3.4
|
| 6 |
Tested up to: 4.6
|
| 7 |
-
Stable tag: 1.0.
|
| 8 |
License: GPLv2 or later
|
| 9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 10 |
|
|
@@ -113,6 +113,9 @@ After downloading the ZIP file of the Google Maps WD plugin,
|
|
| 113 |
|
| 114 |
== Changelog ==
|
| 115 |
|
|
|
|
|
|
|
|
|
|
| 116 |
= 1.0.23 =
|
| 117 |
* Fixed: Bug on export
|
| 118 |
* Fixed: Conflict with wysiwyg editor
|
| 4 |
Tags: directions, google map, google map plugin, google maps, google maps plugin, map, map markers, map plugin, map widget, maps, wp google map, wp google maps
|
| 5 |
Requires at least: 3.4
|
| 6 |
Tested up to: 4.6
|
| 7 |
+
Stable tag: 1.0.24
|
| 8 |
License: GPLv2 or later
|
| 9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 10 |
|
| 113 |
|
| 114 |
== Changelog ==
|
| 115 |
|
| 116 |
+
= 1.0.24 =
|
| 117 |
+
* Added: Default API keys
|
| 118 |
+
|
| 119 |
= 1.0.23 =
|
| 120 |
* Fixed: Bug on export
|
| 121 |
* Fixed: Conflict with wysiwyg editor
|
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.24
|
| 8 |
* Author: WebDorado
|
| 9 |
* Author URI: http://web-dorado.com/
|
| 10 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
