Version Description
Fixed: JS error on incorrect Google Maps API key
Added: Alert about incorrect Google Maps API key
Download this release
Release Info
Developer | webdorado |
Plugin | Form Maker by WD – user-friendly drag & drop Form Builder plugin |
Version | 1.9.7 |
Comparing to | |
See all releases |
Code changes from version 1.9.6 to 1.9.7
- admin/views/FMViewFrommapeditinpopup.php +3 -1
- admin/views/FMViewGoptions_fm.php +11 -0
- form-maker.php +2 -2
- frontend/views/FMViewForm_submissions.php +4 -2
- js/formmaker_div_free.js +6 -1
- readme.txt +5 -1
admin/views/FMViewFrommapeditinpopup.php
CHANGED
@@ -23,12 +23,14 @@ class FMViewFrommapeditinpopup {
|
|
23 |
// Public Methods //
|
24 |
////////////////////////////////////////////////////////////////////////////////////////
|
25 |
public function display() {
|
|
|
|
|
26 |
$long = ((isset($_GET['long'])) ? esc_html(stripslashes($_GET['long'])) : 0);
|
27 |
$lat = ((isset($_GET['lat'])) ? esc_html(stripslashes($_GET['lat'])) : 0);
|
28 |
?>
|
29 |
<script src="<?php echo WD_FM_URL . '/js/main_front_end.js'; ?>"></script>
|
30 |
<script src="<?php echo WD_FM_URL . '/js/if_gmap_back_end.js'; ?>"></script>
|
31 |
-
<script src="
|
32 |
<table style="margin:0px; padding:0px">
|
33 |
<tr>
|
34 |
<td><b>Address:</b></td>
|
23 |
// Public Methods //
|
24 |
////////////////////////////////////////////////////////////////////////////////////////
|
25 |
public function display() {
|
26 |
+
$fm_settings = get_option('fm_settings');
|
27 |
+
$map_key = isset($fm_settings['map_key']) ? $fm_settings['map_key'] : '';
|
28 |
$long = ((isset($_GET['long'])) ? esc_html(stripslashes($_GET['long'])) : 0);
|
29 |
$lat = ((isset($_GET['lat'])) ? esc_html(stripslashes($_GET['lat'])) : 0);
|
30 |
?>
|
31 |
<script src="<?php echo WD_FM_URL . '/js/main_front_end.js'; ?>"></script>
|
32 |
<script src="<?php echo WD_FM_URL . '/js/if_gmap_back_end.js'; ?>"></script>
|
33 |
+
<script src="https://maps.google.com/maps/api/js?v=3.exp&key=<?php echo $map_key ?>"></script>
|
34 |
<table style="margin:0px; padding:0px">
|
35 |
<tr>
|
36 |
<td><b>Address:</b></td>
|
admin/views/FMViewGoptions_fm.php
CHANGED
@@ -79,6 +79,17 @@ class FMViewGoptions_fm {
|
|
79 |
<a href="https://console.developers.google.com/flows/enableapi?apiid=maps_backend&keyType=CLIENT_SIDE&reusekey=true" target="_blank">Get map API key</a>
|
80 |
</td>
|
81 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
82 |
<tr>
|
83 |
<td>
|
84 |
<label for="csv_delimiter">CSV Delimiter:</label>
|
79 |
<a href="https://console.developers.google.com/flows/enableapi?apiid=maps_backend&keyType=CLIENT_SIDE&reusekey=true" target="_blank">Get map API key</a>
|
80 |
</td>
|
81 |
</tr>
|
82 |
+
<tr>
|
83 |
+
<td>
|
84 |
+
|
85 |
+
</td>
|
86 |
+
<td>
|
87 |
+
<span style="width:250px; display: inline-block; padding: 0 5px;">(It may take up to 5 minutes for API key change to take effect.)</span>
|
88 |
+
</td>
|
89 |
+
<td>
|
90 |
+
|
91 |
+
</td>
|
92 |
+
</tr>
|
93 |
<tr>
|
94 |
<td>
|
95 |
<label for="csv_delimiter">CSV Delimiter:</label>
|
form-maker.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Form Maker
|
4 |
* Plugin URI: https://web-dorado.com/products/form-maker-wordpress.html
|
5 |
* Description: This plugin is a modern and advanced tool for easy and fast creating of a WordPress Form. The backend interface is intuitive and user friendly which allows users far from scripting and programming to create WordPress Forms.
|
6 |
-
* Version: 1.9.
|
7 |
* Author: WebDorado
|
8 |
* Author URI: https://web-dorado.com/
|
9 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
@@ -272,7 +272,7 @@ function register_fmemailverification_cpt(){
|
|
272 |
// Activate plugin.
|
273 |
function form_maker_activate() {
|
274 |
$version = get_option("wd_form_maker_version");
|
275 |
-
$new_version = '1.9.
|
276 |
global $wpdb;
|
277 |
if (!$version) {
|
278 |
add_option("wd_form_maker_version", $new_version, '', 'no');
|
3 |
* Plugin Name: Form Maker
|
4 |
* Plugin URI: https://web-dorado.com/products/form-maker-wordpress.html
|
5 |
* Description: This plugin is a modern and advanced tool for easy and fast creating of a WordPress Form. The backend interface is intuitive and user friendly which allows users far from scripting and programming to create WordPress Forms.
|
6 |
+
* Version: 1.9.7
|
7 |
* Author: WebDorado
|
8 |
* Author URI: https://web-dorado.com/
|
9 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
272 |
// Activate plugin.
|
273 |
function form_maker_activate() {
|
274 |
$version = get_option("wd_form_maker_version");
|
275 |
+
$new_version = '1.9.7';
|
276 |
global $wpdb;
|
277 |
if (!$version) {
|
278 |
add_option("wd_form_maker_version", $new_version, '', 'no');
|
frontend/views/FMViewForm_submissions.php
CHANGED
@@ -760,11 +760,13 @@ class FMViewForm_submissions {
|
|
760 |
}
|
761 |
|
762 |
public function show_map() {
|
|
|
|
|
763 |
$long = (isset($_GET['long']) ? esc_html(stripslashes($_GET['long'])) : 0);
|
764 |
-
|
765 |
?>
|
766 |
<script src="<?php echo WD_FM_URL . '/js/if_gmap_back_end.js'; ?>"></script>
|
767 |
-
<script src="
|
768 |
<table style="margin:0px; padding:0px">
|
769 |
<tr>
|
770 |
<td>
|
760 |
}
|
761 |
|
762 |
public function show_map() {
|
763 |
+
$fm_settings = get_option('fm_settings');
|
764 |
+
$map_key = isset($fm_settings['map_key']) ? $fm_settings['map_key'] : '';
|
765 |
$long = (isset($_GET['long']) ? esc_html(stripslashes($_GET['long'])) : 0);
|
766 |
+
$lat = (isset($_GET['lat']) ? esc_html(stripslashes($_GET['lat'])) : 0);
|
767 |
?>
|
768 |
<script src="<?php echo WD_FM_URL . '/js/if_gmap_back_end.js'; ?>"></script>
|
769 |
+
<script src="https://maps.google.com/maps/api/js?v=3.exp&key=<?php echo $map_key ?>"></script>
|
770 |
<table style="margin:0px; padding:0px">
|
771 |
<tr>
|
772 |
<td>
|
js/formmaker_div_free.js
CHANGED
@@ -26720,7 +26720,12 @@ function add(key, after_edit, wdid)
|
|
26720 |
|
26721 |
if(type=="type_mark_map")
|
26722 |
{
|
26723 |
-
|
|
|
|
|
|
|
|
|
|
|
26724 |
}
|
26725 |
|
26726 |
|
26720 |
|
26721 |
if(type=="type_mark_map")
|
26722 |
{
|
26723 |
+
if(typeof gmapdata[i] == "undefined" || typeof gmapdata[i].getCenter() == "undefined"){
|
26724 |
+
alert("Please go to Global Options to setup the Map API key. It may take up to 5 minutes for API key change to take effect.");
|
26725 |
+
return false;
|
26726 |
+
}
|
26727 |
+
else
|
26728 |
+
if_gmap_updateMap(i);
|
26729 |
}
|
26730 |
|
26731 |
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://web-dorado.com/products/wordpress-form.html
|
|
4 |
Tags: form, forms, form builder, form maker, form manager, form plugin, forms plugin, paypal form, survey form, feedback form, feedback forms, contact form, contact form plugin, contact form builder, form creator, email form, secure form, web form, form to email, contact forms, custom forms, form widget, captcha form, wordpress contact form, form creation, widget contact form, builder, feedback, contacts form plugin , custom contact form, contact us form, admin, captcha, contact, database, email, javascript, jquery, page, plugin, survey, widget, custom form, forms creator, input, validation, send copy, form with captcha, pdf, mysql, paypal, ReCaptcha
|
5 |
Requires at least: 3.4
|
6 |
Tested up to: 4.5
|
7 |
-
Stable tag: 1.9.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -366,6 +366,10 @@ Email field should be used since it verifies that an entry format fulfills examp
|
|
366 |
|
367 |
== Changelog ==
|
368 |
|
|
|
|
|
|
|
|
|
369 |
= 1.9.6 =
|
370 |
Added: Global option for Google Maps API key
|
371 |
Fixed: Google Maps API key warning in browser
|
4 |
Tags: form, forms, form builder, form maker, form manager, form plugin, forms plugin, paypal form, survey form, feedback form, feedback forms, contact form, contact form plugin, contact form builder, form creator, email form, secure form, web form, form to email, contact forms, custom forms, form widget, captcha form, wordpress contact form, form creation, widget contact form, builder, feedback, contacts form plugin , custom contact form, contact us form, admin, captcha, contact, database, email, javascript, jquery, page, plugin, survey, widget, custom form, forms creator, input, validation, send copy, form with captcha, pdf, mysql, paypal, ReCaptcha
|
5 |
Requires at least: 3.4
|
6 |
Tested up to: 4.5
|
7 |
+
Stable tag: 1.9.7
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
366 |
|
367 |
== Changelog ==
|
368 |
|
369 |
+
= 1.9.7 =
|
370 |
+
Fixed: JS error on incorrect Google Maps API key
|
371 |
+
Added: Alert about incorrect Google Maps API key
|
372 |
+
|
373 |
= 1.9.6 =
|
374 |
Added: Global option for Google Maps API key
|
375 |
Fixed: Google Maps API key warning in browser
|