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 | Contact Form by WD – responsive drag & drop contact form builder tool |
Version | 1.8.32 |
Comparing to | |
See all releases |
Code changes from version 1.8.31 to 1.8.32
- admin/views/FMViewFrommapeditinpopup_fmc.php +65 -63
- admin/views/FMViewGoptions_fmc.php +11 -0
- contact-form-maker.php +2 -2
- js/formmaker_div_free.js +12 -2
- readme.txt +4 -1
admin/views/FMViewFrommapeditinpopup_fmc.php
CHANGED
@@ -1,64 +1,66 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class FMViewFrommapeditinpopup_fmc {
|
4 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
5 |
-
// Events //
|
6 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
7 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
8 |
-
// Constants //
|
9 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
10 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
11 |
-
// Variables //
|
12 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
13 |
-
private $model;
|
14 |
-
|
15 |
-
|
16 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
17 |
-
// Constructor & Destructor //
|
18 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
19 |
-
public function __construct($model) {
|
20 |
-
$this->model = $model;
|
21 |
-
}
|
22 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
23 |
-
// Public Methods //
|
24 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
25 |
-
public function display() {
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
<script src="
|
32 |
-
<
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
58 |
-
|
59 |
-
|
60 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
61 |
-
|
62 |
-
|
63 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
64 |
}
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class FMViewFrommapeditinpopup_fmc {
|
4 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
5 |
+
// Events //
|
6 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
7 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
8 |
+
// Constants //
|
9 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
10 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
11 |
+
// Variables //
|
12 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
13 |
+
private $model;
|
14 |
+
|
15 |
+
|
16 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
17 |
+
// Constructor & Destructor //
|
18 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
19 |
+
public function __construct($model) {
|
20 |
+
$this->model = $model;
|
21 |
+
}
|
22 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
23 |
+
// Public Methods //
|
24 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
25 |
+
public function display() {
|
26 |
+
$fmc_settings = get_option('fmc_settings');
|
27 |
+
$map_key = isset($fmc_settings['map_key']) ? $fmc_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_FMC_URL . '/js/main_front_end.js'; ?>"></script>
|
32 |
+
<script src="<?php echo WD_FMC_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 ?>" type="text/javascript"></script>
|
34 |
+
<table style="margin:0px; padding:0px">
|
35 |
+
<tr>
|
36 |
+
<td><b>Address:</b></td>
|
37 |
+
<td><input type="text" id="addrval0" style="border:0px; background:none" size="80" readonly/></td>
|
38 |
+
</tr>
|
39 |
+
<tr>
|
40 |
+
<td><b>Longitude:</b></td>
|
41 |
+
<td><input type="text" id="longval0" style="border:0px; background:none" size="80" readonly/></td>
|
42 |
+
</tr>
|
43 |
+
<tr>
|
44 |
+
<td><b>Latitude:</b></td>
|
45 |
+
<td><input type="text" id="latval0" style="border:0px; background:none" size="80" readonly/></td>
|
46 |
+
</tr>
|
47 |
+
</table>
|
48 |
+
<div id="0_elementform_id_temp" long="<?php echo $long ?>" center_x="<?php echo $long ?>" center_y="<?php echo $lat ?>" lat="<?php echo $lat ?>" zoom="8" info="" style="width:600px; height:400px; "></div>
|
49 |
+
<script>
|
50 |
+
if_gmap_init("0");
|
51 |
+
add_marker_on_map(0, 0, "<?php echo $long; ?>", "<?php echo $lat; ?>", "");
|
52 |
+
</script>
|
53 |
+
<?php
|
54 |
+
die();
|
55 |
+
}
|
56 |
+
|
57 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
58 |
+
// Getters & Setters //
|
59 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
60 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
61 |
+
// Private Methods //
|
62 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
63 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
64 |
+
// Listeners //
|
65 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
66 |
}
|
admin/views/FMViewGoptions_fmc.php
CHANGED
@@ -87,6 +87,17 @@ class FMViewGoptions_fmc {
|
|
87 |
<a href="https://console.developers.google.com/flows/enableapi?apiid=maps_backend&keyType=CLIENT_SIDE&reusekey=true" target="_blank">Get Map API Key</a>
|
88 |
</td>
|
89 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
90 |
<tr>
|
91 |
<td>
|
92 |
<label for="csv_delimiter">CSV Delimiter:</label>
|
87 |
<a href="https://console.developers.google.com/flows/enableapi?apiid=maps_backend&keyType=CLIENT_SIDE&reusekey=true" target="_blank">Get Map API Key</a>
|
88 |
</td>
|
89 |
</tr>
|
90 |
+
<tr>
|
91 |
+
<td>
|
92 |
+
|
93 |
+
</td>
|
94 |
+
<td>
|
95 |
+
<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>
|
96 |
+
</td>
|
97 |
+
<td>
|
98 |
+
|
99 |
+
</td>
|
100 |
+
</tr>
|
101 |
<tr>
|
102 |
<td>
|
103 |
<label for="csv_delimiter">CSV Delimiter:</label>
|
contact-form-maker.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Contact Form Maker
|
4 |
* Plugin URI: http://web-dorado.com/products/form-maker-wordpress.html
|
5 |
* Description: WordPress Contact Form Maker is a simple contact form builder, which allows the user with almost no knowledge of programming to create and edit different type of contact forms.
|
6 |
-
* Version: 1.8.
|
7 |
* Author: WebDorado
|
8 |
* Author URI: http://web-dorado.com/
|
9 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
@@ -248,7 +248,7 @@ function register_fmcemailverification_cpt(){
|
|
248 |
// Activate plugin.
|
249 |
function form_maker_activate_cfm() {
|
250 |
$version = get_option("wd_form_maker_version");
|
251 |
-
$new_version = '1.8.
|
252 |
global $wpdb;
|
253 |
if (!$version) {
|
254 |
add_option("wd_form_maker_version", $new_version, '', 'no');
|
3 |
* Plugin Name: Contact Form Maker
|
4 |
* Plugin URI: http://web-dorado.com/products/form-maker-wordpress.html
|
5 |
* Description: WordPress Contact Form Maker is a simple contact form builder, which allows the user with almost no knowledge of programming to create and edit different type of contact forms.
|
6 |
+
* Version: 1.8.32
|
7 |
* Author: WebDorado
|
8 |
* Author URI: http://web-dorado.com/
|
9 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
248 |
// Activate plugin.
|
249 |
function form_maker_activate_cfm() {
|
250 |
$version = get_option("wd_form_maker_version");
|
251 |
+
$new_version = '1.8.32';
|
252 |
global $wpdb;
|
253 |
if (!$version) {
|
254 |
add_option("wd_form_maker_version", $new_version, '', 'no');
|
js/formmaker_div_free.js
CHANGED
@@ -23759,12 +23759,22 @@ function add(key, after_edit, wdid)
|
|
23759 |
|
23760 |
if(type=="type_map")
|
23761 |
{
|
23762 |
-
|
|
|
|
|
|
|
|
|
|
|
23763 |
}
|
23764 |
|
23765 |
if(type=="type_mark_map")
|
23766 |
{
|
23767 |
-
|
|
|
|
|
|
|
|
|
|
|
23768 |
}
|
23769 |
|
23770 |
|
23759 |
|
23760 |
if(type=="type_map")
|
23761 |
{
|
23762 |
+
if(typeof gmapdata[i] == "undefined" || typeof gmapdata[i].getCenter() == "undefined"){
|
23763 |
+
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.");
|
23764 |
+
return false;
|
23765 |
+
}
|
23766 |
+
else
|
23767 |
+
if_gmap_updateMap(i);
|
23768 |
}
|
23769 |
|
23770 |
if(type=="type_mark_map")
|
23771 |
{
|
23772 |
+
if(typeof gmapdata[i] == "undefined" || typeof gmapdata[i].getCenter() == "undefined"){
|
23773 |
+
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.");
|
23774 |
+
return false;
|
23775 |
+
}
|
23776 |
+
else
|
23777 |
+
if_gmap_updateMap(i);
|
23778 |
}
|
23779 |
|
23780 |
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://web-dorado.com/products/wordpress-contact-form-maker-plugin.
|
|
4 |
Tags: form, forms, contact form, contact forms, contact form plugin, contact forms plugin, forms plugin, Contact Form Builder, contact form manager, multiple contac forms, custom form, Contact form maker with recaptcha, contact form with google map, feedback form, feedback forms, contact us, admin, captcha, contact, database, email, javascript, jquery, page, plugin, survey, widget, custom form, forms creator, input, validation, send copy, survey form, contact form with captcha, recaptcha
|
5 |
Requires at least: 3.4
|
6 |
Tested up to: 4.5
|
7 |
-
Stable tag: 1.8.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -145,6 +145,9 @@ If you want to update the plugin while preserving your existing contact forms, y
|
|
145 |
8. Contact Form Maker - Select Columns
|
146 |
|
147 |
== Changelog ==
|
|
|
|
|
|
|
148 |
= 1.8.31 =
|
149 |
* Added: Global option for Google Maps API key
|
150 |
* Fixed: Google Maps API key warning in browser
|
4 |
Tags: form, forms, contact form, contact forms, contact form plugin, contact forms plugin, forms plugin, Contact Form Builder, contact form manager, multiple contac forms, custom form, Contact form maker with recaptcha, contact form with google map, feedback form, feedback forms, contact us, admin, captcha, contact, database, email, javascript, jquery, page, plugin, survey, widget, custom form, forms creator, input, validation, send copy, survey form, contact form with captcha, recaptcha
|
5 |
Requires at least: 3.4
|
6 |
Tested up to: 4.5
|
7 |
+
Stable tag: 1.8.32
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
145 |
8. Contact Form Maker - Select Columns
|
146 |
|
147 |
== Changelog ==
|
148 |
+
= 1.8.32 =
|
149 |
+
* Fixed: JS error on incorrect Google Maps API key
|
150 |
+
* Added: Alert about incorrect Google Maps API key
|
151 |
= 1.8.31 =
|
152 |
* Added: Global option for Google Maps API key
|
153 |
* Fixed: Google Maps API key warning in browser
|