Version Description
iframe api generation broken (by Google iframe restrictions) changed to new window popup - FIXED Updated Generate API KEY button to add access for all APIs - CHANGED
Download this release
Release Info
Developer | stiofansisland |
Plugin | API KEY for Google Maps |
Version | 1.2.0 |
Comparing to | |
See all releases |
Code changes from version 1.1.0 to 1.2.0
- api-key-for-google-maps.php +7 -10
- languages/gmaps-api-key.mo +0 -0
- languages/gmaps-api-key.po +14 -12
- readme.txt +7 -2
api-key-for-google-maps.php
CHANGED
@@ -11,13 +11,13 @@
|
|
11 |
* Plugin Name: API KEY for Google Maps
|
12 |
* Plugin URI: http://wpgeodirectory.com/
|
13 |
* Description: Adds API KEY to Google maps calls if they have been enqueue correctly.
|
14 |
-
* Version: 1.
|
15 |
* Author: GeoDirectory
|
16 |
* Author URI: https://wpgeodirectory.com
|
17 |
* Text Domain: gmaps-api-key
|
18 |
* Domain Path: /languages
|
19 |
* Requires at least: 3.1
|
20 |
-
* Tested up to: 4.
|
21 |
*/
|
22 |
|
23 |
// If this file is called directly, abort.
|
@@ -30,7 +30,7 @@ if ( ! defined( 'WPINC' ) ) {
|
|
30 |
*
|
31 |
* @since 1.0.0
|
32 |
*/
|
33 |
-
define( "GMAPIKEY_VERSION", "1.
|
34 |
|
35 |
|
36 |
add_action( 'plugins_loaded', 'rgmk_load_textdomain' );
|
@@ -105,7 +105,7 @@ function rgmk_add_admin_menu_html() {
|
|
105 |
}
|
106 |
|
107 |
if ( $updated ) {
|
108 |
-
echo '<div class="updated fade"><p><strong>' . __( '
|
109 |
|
110 |
}
|
111 |
?>
|
@@ -114,13 +114,10 @@ function rgmk_add_admin_menu_html() {
|
|
114 |
<h2><?php _e( 'Retro Add Google Maps API KEY', 'gmaps-api-key' ); ?></h2>
|
115 |
<p><?php _e( 'This plugin will attempt to add your Google API KEY to any Google Maps JS file that has properly been enqueued.', 'gmaps-api-key' ); ?></p>
|
116 |
<p>
|
|
|
|
|
117 |
|
118 |
-
<a href
|
119 |
-
class="thickbox button-primary"
|
120 |
-
name="<?php _e( 'Generate API Key - ( MUST be logged in to your Google account )', 'gmaps-api-key' ); ?>">
|
121 |
-
<?php _e( 'Generate API Key', 'gmaps-api-key' ); ?>
|
122 |
-
</a>
|
123 |
-
<?php echo sprintf( __( 'or %sclick here%s to Get a Google Maps API KEY', 'geodirectory' ), '<a target="_blank" href=\'https://console.developers.google.com/flows/enableapi?apiid=maps_backend,geocoding_backend,directions_backend,distance_matrix_backend,elevation_backend&keyType=CLIENT_SIDE&reusekey=true\'>', '</a>' ) ?>
|
124 |
</p>
|
125 |
|
126 |
<form method="post" action="options-general.php?page=gmaps-api-key">
|
11 |
* Plugin Name: API KEY for Google Maps
|
12 |
* Plugin URI: http://wpgeodirectory.com/
|
13 |
* Description: Adds API KEY to Google maps calls if they have been enqueue correctly.
|
14 |
+
* Version: 1.2.0
|
15 |
* Author: GeoDirectory
|
16 |
* Author URI: https://wpgeodirectory.com
|
17 |
* Text Domain: gmaps-api-key
|
18 |
* Domain Path: /languages
|
19 |
* Requires at least: 3.1
|
20 |
+
* Tested up to: 4.9
|
21 |
*/
|
22 |
|
23 |
// If this file is called directly, abort.
|
30 |
*
|
31 |
* @since 1.0.0
|
32 |
*/
|
33 |
+
define( "GMAPIKEY_VERSION", "1.2.0" );
|
34 |
|
35 |
|
36 |
add_action( 'plugins_loaded', 'rgmk_load_textdomain' );
|
105 |
}
|
106 |
|
107 |
if ( $updated ) {
|
108 |
+
echo '<div class="updated fade"><p><strong>' . __( 'Key Updated!', 'gmaps-api-key' ) . '</strong></p></div>';
|
109 |
|
110 |
}
|
111 |
?>
|
114 |
<h2><?php _e( 'Retro Add Google Maps API KEY', 'gmaps-api-key' ); ?></h2>
|
115 |
<p><?php _e( 'This plugin will attempt to add your Google API KEY to any Google Maps JS file that has properly been enqueued.', 'gmaps-api-key' ); ?></p>
|
116 |
<p>
|
117 |
+
<?php $gm_api_url = 'https://console.developers.google.com/henhouse/?pb=["hh-1","maps_backend",null,[],"https://developers.google.com",null,["static_maps_backend","street_view_image_backend","maps_embed_backend","places_backend","geocoding_backend","directions_backend","distance_matrix_backend","geolocation","elevation_backend","timezone_backend","maps_backend"],null]';?>
|
118 |
+
<a id="gd-api-key" onclick='window.open("<?php echo wp_slash($gm_api_url);?>", "newwindow", "width=600, height=400"); return false;' href='<?php echo $gm_api_url;?>' class="button-primary" name="<?php _e('Generate API Key - ( MUST be logged in to your Google account )','gmaps-api-key');?>" ><?php _e('Generate API Key','gmaps-api-key');?></a>
|
119 |
|
120 |
+
<?php echo sprintf( __( 'or %sclick here%s to Get a Google Maps API KEY - ( MUST be logged in to your Google account )', 'gmaps-api-key' ), '<a target="_blank" href=\'https://console.developers.google.com/flows/enableapi?apiid=static_maps_backend,street_view_image_backend,maps_embed_backend,places_backend,geocoding_backend,directions_backend,distance_matrix_backend,geolocation,elevation_backend,timezone_backend,maps_backend&keyType=CLIENT_SIDE&reusekey=true\'>', '</a>' ) ?>
|
|
|
|
|
|
|
|
|
|
|
121 |
</p>
|
122 |
|
123 |
<form method="post" action="options-general.php?page=gmaps-api-key">
|
languages/gmaps-api-key.mo
CHANGED
Binary file
|
languages/gmaps-api-key.po
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
-
"Project-Id-Version: Google Maps API KEY 1.
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date:
|
6 |
-
"PO-Revision-Date:
|
7 |
"Last-Translator: \n"
|
8 |
"Language-Team: GeoDirectory <info@ayecode.io>\n"
|
9 |
"Language: en_US\n"
|
@@ -19,7 +19,7 @@ msgstr ""
|
|
19 |
"X-Poedit-SearchPath-0: .\n"
|
20 |
|
21 |
#: api-key-for-google-maps.php:108
|
22 |
-
msgid "
|
23 |
msgstr ""
|
24 |
|
25 |
#: api-key-for-google-maps.php:114
|
@@ -32,32 +32,34 @@ msgid ""
|
|
32 |
"file that has properly been enqueued."
|
33 |
msgstr ""
|
34 |
|
35 |
-
#: api-key-for-google-maps.php:
|
36 |
msgid "Generate API Key - ( MUST be logged in to your Google account )"
|
37 |
msgstr ""
|
38 |
|
39 |
-
#: api-key-for-google-maps.php:
|
40 |
msgid "Generate API Key"
|
41 |
msgstr ""
|
42 |
|
43 |
-
#: api-key-for-google-maps.php:
|
44 |
#, php-format
|
45 |
-
msgid "
|
|
|
|
|
46 |
msgstr ""
|
47 |
|
48 |
-
#: api-key-for-google-maps.php:
|
49 |
msgid "Enter Google Maps API KEY"
|
50 |
msgstr ""
|
51 |
|
52 |
-
#: api-key-for-google-maps.php:
|
53 |
msgid "Add Google Maps API KEY"
|
54 |
msgstr ""
|
55 |
|
56 |
-
#: api-key-for-google-maps.php:
|
57 |
msgid "Enter your API KEY here"
|
58 |
msgstr ""
|
59 |
|
60 |
-
#: api-key-for-google-maps.php:
|
61 |
#, php-format
|
62 |
msgid ""
|
63 |
"API KEY for Google Maps was created for free by %sGeoDirecotry%s - The "
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
+
"Project-Id-Version: Google Maps API KEY 1.2.0\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2018-06-25 11:10+0100\n"
|
6 |
+
"PO-Revision-Date: 2018-06-25 11:10+0100\n"
|
7 |
"Last-Translator: \n"
|
8 |
"Language-Team: GeoDirectory <info@ayecode.io>\n"
|
9 |
"Language: en_US\n"
|
19 |
"X-Poedit-SearchPath-0: .\n"
|
20 |
|
21 |
#: api-key-for-google-maps.php:108
|
22 |
+
msgid "Key Updated!"
|
23 |
msgstr ""
|
24 |
|
25 |
#: api-key-for-google-maps.php:114
|
32 |
"file that has properly been enqueued."
|
33 |
msgstr ""
|
34 |
|
35 |
+
#: api-key-for-google-maps.php:118
|
36 |
msgid "Generate API Key - ( MUST be logged in to your Google account )"
|
37 |
msgstr ""
|
38 |
|
39 |
+
#: api-key-for-google-maps.php:118
|
40 |
msgid "Generate API Key"
|
41 |
msgstr ""
|
42 |
|
43 |
+
#: api-key-for-google-maps.php:120
|
44 |
#, php-format
|
45 |
+
msgid ""
|
46 |
+
"or %sclick here%s to Get a Google Maps API KEY - ( MUST be logged in to your "
|
47 |
+
"Google account )"
|
48 |
msgstr ""
|
49 |
|
50 |
+
#: api-key-for-google-maps.php:124
|
51 |
msgid "Enter Google Maps API KEY"
|
52 |
msgstr ""
|
53 |
|
54 |
+
#: api-key-for-google-maps.php:125
|
55 |
msgid "Add Google Maps API KEY"
|
56 |
msgstr ""
|
57 |
|
58 |
+
#: api-key-for-google-maps.php:127
|
59 |
msgid "Enter your API KEY here"
|
60 |
msgstr ""
|
61 |
|
62 |
+
#: api-key-for-google-maps.php:157
|
63 |
#, php-format
|
64 |
msgid ""
|
65 |
"API KEY for Google Maps was created for free by %sGeoDirecotry%s - The "
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: stiofansisland, paoltaia
|
|
3 |
Tags: Google Maps, Google Maps KEY, Google Maps API KEY
|
4 |
Donate link: https://wpgeodirectory.com
|
5 |
Requires at least: 3.1
|
6 |
-
Tested up to: 4.
|
7 |
-
Stable tag: 1.
|
8 |
License: GPLv2
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -54,6 +54,11 @@ Ask and they shall be answered
|
|
54 |
|
55 |
== Changelog ==
|
56 |
|
|
|
|
|
|
|
|
|
|
|
57 |
= 1.1.0 =
|
58 |
|
59 |
Added a Generate API KEY button for easier generation of API KEY - ADDED
|
3 |
Tags: Google Maps, Google Maps KEY, Google Maps API KEY
|
4 |
Donate link: https://wpgeodirectory.com
|
5 |
Requires at least: 3.1
|
6 |
+
Tested up to: 4.9
|
7 |
+
Stable tag: 1.2.0
|
8 |
License: GPLv2
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
54 |
|
55 |
== Changelog ==
|
56 |
|
57 |
+
= 1.2.0 =
|
58 |
+
|
59 |
+
iframe api generation broken (by Google iframe restrictions) changed to new window popup - FIXED
|
60 |
+
Updated Generate API KEY button to add access for all APIs - CHANGED
|
61 |
+
|
62 |
= 1.1.0 =
|
63 |
|
64 |
Added a Generate API KEY button for easier generation of API KEY - ADDED
|