Version Description
- Added: Show notice to install Backup WD plugin.
Download this release
Release Info
| Developer | webdorado |
| Plugin | |
| Version | 1.0.61 |
| Comparing to | |
| See all releases | |
Code changes from version 1.0.60 to 1.0.61
- contact-form-builder.php +64 -3
- css/wd_bp_install.css +41 -0
- frontend/models/CFMModelForm_maker.php +23 -14
- images/logo.png +0 -0
- js/wd_bp_install.js +12 -0
- readme.txt +7 -4
contact-form-builder.php
CHANGED
|
@@ -3,14 +3,14 @@
|
|
| 3 |
* Plugin Name: Contact Form Builder
|
| 4 |
* Plugin URI: http://web-dorado.com/products/wordpress-contact-form-builder.html
|
| 5 |
* Description: Contact Form Builder is an advanced plugin to add contact forms into your website. It comes along with multiple default templates which can be customized.
|
| 6 |
-
* Version: 1.0.
|
| 7 |
* Author: WebDorado
|
| 8 |
* Author URI: http://web-dorado.com/
|
| 9 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
| 10 |
*/
|
| 11 |
define('WD_CFM_DIR', WP_PLUGIN_DIR . "/" . plugin_basename(dirname(__FILE__)));
|
| 12 |
define('WD_CFM_URL', plugins_url(plugin_basename(dirname(__FILE__))));
|
| 13 |
-
define('WD_CFM_VERSION', '1.0.
|
| 14 |
|
| 15 |
// Plugin menu.
|
| 16 |
function contact_form_maker_options_panel() {
|
|
@@ -160,6 +160,11 @@ function contact_form_maker_activate() {
|
|
| 160 |
contact_form_maker_insert();
|
| 161 |
add_option("wd_contact_form_maker_version", $new_version, '', 'no');
|
| 162 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 163 |
}
|
| 164 |
register_activation_hook(__FILE__, 'contact_form_maker_activate');
|
| 165 |
|
|
@@ -701,4 +706,60 @@ function fmc_overview() {
|
|
| 701 |
dorado_web_init($fmc_options);
|
| 702 |
}
|
| 703 |
}
|
| 704 |
-
add_action('init', 'fmc_overview');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
* Plugin Name: Contact Form Builder
|
| 4 |
* Plugin URI: http://web-dorado.com/products/wordpress-contact-form-builder.html
|
| 5 |
* Description: Contact Form Builder is an advanced plugin to add contact forms into your website. It comes along with multiple default templates which can be customized.
|
| 6 |
+
* Version: 1.0.61
|
| 7 |
* Author: WebDorado
|
| 8 |
* Author URI: http://web-dorado.com/
|
| 9 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
| 10 |
*/
|
| 11 |
define('WD_CFM_DIR', WP_PLUGIN_DIR . "/" . plugin_basename(dirname(__FILE__)));
|
| 12 |
define('WD_CFM_URL', plugins_url(plugin_basename(dirname(__FILE__))));
|
| 13 |
+
define('WD_CFM_VERSION', '1.0.61');
|
| 14 |
|
| 15 |
// Plugin menu.
|
| 16 |
function contact_form_maker_options_panel() {
|
| 160 |
contact_form_maker_insert();
|
| 161 |
add_option("wd_contact_form_maker_version", $new_version, '', 'no');
|
| 162 |
}
|
| 163 |
+
// Check if notice or popup already exist for other plugins
|
| 164 |
+
if( get_option('wds_bk_notice_status') === false ) {
|
| 165 |
+
add_option('wds_bk_notice_status', '');
|
| 166 |
+
}
|
| 167 |
+
|
| 168 |
}
|
| 169 |
register_activation_hook(__FILE__, 'contact_form_maker_activate');
|
| 170 |
|
| 706 |
dorado_web_init($fmc_options);
|
| 707 |
}
|
| 708 |
}
|
| 709 |
+
add_action('init', 'fmc_overview');
|
| 710 |
+
|
| 711 |
+
if (!function_exists('wd_bp_install_notice')) {
|
| 712 |
+
$wd_bp_plugin_url = WD_CFM_URL;
|
| 713 |
+
function wd_bp_script_style() {
|
| 714 |
+
global $wd_bp_plugin_url;
|
| 715 |
+
wp_enqueue_script('wd_bck_install', $wd_bp_plugin_url . '/js/wd_bp_install.js', array('jquery'));
|
| 716 |
+
wp_enqueue_style('wd_bck_install', $wd_bp_plugin_url . '/css/wd_bp_install.css');
|
| 717 |
+
}
|
| 718 |
+
add_action('admin_enqueue_scripts', 'wd_bp_script_style');
|
| 719 |
+
|
| 720 |
+
/**
|
| 721 |
+
* Show notice to install backup plugin
|
| 722 |
+
*/
|
| 723 |
+
function wd_bp_install_notice() {
|
| 724 |
+
global $wd_bp_plugin_url;
|
| 725 |
+
$prefix = 'fmc';
|
| 726 |
+
$meta_value = get_option('wds_bk_notice_status');
|
| 727 |
+
if ($meta_value === '' || $meta_value === false) {
|
| 728 |
+
ob_start();
|
| 729 |
+
?>
|
| 730 |
+
<div class="notice notice-info" id="wd_bp_notice_cont">
|
| 731 |
+
<p>
|
| 732 |
+
<img id="wd_bp_logo_notice" src="<?php echo $wd_bp_plugin_url . '/images/logo.png'; ?>">
|
| 733 |
+
<?php _e("Hey! Install brand new FREE", $prefix) ?>
|
| 734 |
+
<a href="https://wordpress.org/plugins/backup-wd/" title="<?php _e("More details", $prefix) ?>"
|
| 735 |
+
target="_blank"><?php _e("Backup WD", $prefix) ?></a>
|
| 736 |
+
<?php _e("plugin to keep your forms and website safe.", $prefix) ?>
|
| 737 |
+
<a class="button button-primary"
|
| 738 |
+
href="<?php echo esc_url(wp_nonce_url(self_admin_url('update.php?action=install-plugin&plugin=backup-wd'), 'install-plugin_backup-wd')); ?>">
|
| 739 |
+
<span onclick="wd_bp_notice_install()"><?php _e("Install", $prefix); ?></span>
|
| 740 |
+
</a>
|
| 741 |
+
</p>
|
| 742 |
+
<button type="button" class="wd_bp_notice_dissmiss notice-dismiss"><span class="screen-reader-text"></span>
|
| 743 |
+
</button>
|
| 744 |
+
</div>
|
| 745 |
+
<script>wd_bp_url = '<?php echo add_query_arg(array('action' => 'wd_bp_dismiss',), admin_url('admin-ajax.php')); ?>'</script>
|
| 746 |
+
<?php
|
| 747 |
+
echo ob_get_clean();
|
| 748 |
+
}
|
| 749 |
+
}
|
| 750 |
+
|
| 751 |
+
if (!is_dir(plugin_dir_path(__DIR__) . 'backup-wd')) {
|
| 752 |
+
add_action('admin_notices', 'wd_bp_install_notice');
|
| 753 |
+
}
|
| 754 |
+
|
| 755 |
+
/**
|
| 756 |
+
* Add usermeta to db
|
| 757 |
+
*
|
| 758 |
+
* empty: notice,
|
| 759 |
+
* 1 : never show again
|
| 760 |
+
*/
|
| 761 |
+
function wd_bp_install_notice_status() {
|
| 762 |
+
update_option('wds_bk_notice_status', '1', 'no');
|
| 763 |
+
}
|
| 764 |
+
add_action('wp_ajax_wd_bp_dismiss', 'wd_bp_install_notice_status');
|
| 765 |
+
}
|
css/wd_bp_install.css
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
@media only screen and (max-width: 500px) {
|
| 2 |
+
body #wd_backup_logo {
|
| 3 |
+
max-width: 100%;
|
| 4 |
+
}
|
| 5 |
+
body #wd_bp_notice_cont p {
|
| 6 |
+
padding-right: 25px !important;
|
| 7 |
+
}
|
| 8 |
+
}
|
| 9 |
+
|
| 10 |
+
#wd_bp_logo_notice {
|
| 11 |
+
width: 40px;
|
| 12 |
+
float: left;
|
| 13 |
+
margin-right: 10px;
|
| 14 |
+
}
|
| 15 |
+
|
| 16 |
+
#wd_bp_notice_cont {
|
| 17 |
+
position: relative;
|
| 18 |
+
}
|
| 19 |
+
|
| 20 |
+
#wd_bp_notice_cont a {
|
| 21 |
+
margin: 0 5px;
|
| 22 |
+
}
|
| 23 |
+
|
| 24 |
+
#wd_bp_notice_cont .dashicons-dismiss:before {
|
| 25 |
+
content: "\f153";
|
| 26 |
+
background: 0 0;
|
| 27 |
+
color: #72777c;
|
| 28 |
+
display: block;
|
| 29 |
+
font: 400 16px/20px dashicons;
|
| 30 |
+
speak: none;
|
| 31 |
+
height: 20px;
|
| 32 |
+
text-align: center;
|
| 33 |
+
width: 20px;
|
| 34 |
+
-webkit-font-smoothing: antialiased;
|
| 35 |
+
-moz-osx-font-smoothing: grayscale;
|
| 36 |
+
}
|
| 37 |
+
|
| 38 |
+
.wd_bp_notice_dissmiss {
|
| 39 |
+
margin-top: 5px;
|
| 40 |
+
}
|
| 41 |
+
|
frontend/models/CFMModelForm_maker.php
CHANGED
|
@@ -98,20 +98,29 @@ class CFMModelForm_maker {
|
|
| 98 |
<?php
|
| 99 |
}
|
| 100 |
}
|
| 101 |
-
elseif (isset($_POST["g-recaptcha-response"])) {
|
| 102 |
-
$privatekey= isset($fm_settings['private_key']) ? $fm_settings['private_key'] : '';
|
| 103 |
-
$
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
| 114 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 115 |
}
|
| 116 |
else {
|
| 117 |
?>
|
| 98 |
<?php
|
| 99 |
}
|
| 100 |
}
|
| 101 |
+
elseif ( isset($_POST["g-recaptcha-response"]) ) {
|
| 102 |
+
$privatekey = isset($fm_settings['private_key']) ? $fm_settings['private_key'] : '';
|
| 103 |
+
$captcha = $_POST['g-recaptcha-response'];
|
| 104 |
+
$url = 'https://www.google.com/recaptcha/api/siteverify';
|
| 105 |
+
$data = array(
|
| 106 |
+
'secret' => $privatekey,
|
| 107 |
+
'response' => $captcha,
|
| 108 |
+
'remoteip' => $_SERVER['REMOTE_ADDR'],
|
| 109 |
+
);
|
| 110 |
+
$curlConfig = array(
|
| 111 |
+
CURLOPT_URL => $url,
|
| 112 |
+
CURLOPT_POST => TRUE,
|
| 113 |
+
CURLOPT_RETURNTRANSFER => TRUE,
|
| 114 |
+
CURLOPT_SSL_VERIFYPEER => FALSE,
|
| 115 |
+
CURLOPT_POSTFIELDS => $data,
|
| 116 |
+
);
|
| 117 |
+
$ch = curl_init();
|
| 118 |
+
curl_setopt_array($ch, $curlConfig);
|
| 119 |
+
$response = curl_exec($ch);
|
| 120 |
+
curl_close($ch);
|
| 121 |
+
$jsonResponse = json_decode($response);
|
| 122 |
+
if ( $jsonResponse->success == "true" ) {
|
| 123 |
+
$correct = TRUE;
|
| 124 |
}
|
| 125 |
else {
|
| 126 |
?>
|
images/logo.png
ADDED
|
Binary file
|
js/wd_bp_install.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
jQuery(document).ready(function () {
|
| 2 |
+
/*Ajax hide notice forever */
|
| 3 |
+
jQuery(".wd_bp_notice_dissmiss").on("click", function () {
|
| 4 |
+
jQuery("#wd_bp_notice_cont").hide();
|
| 5 |
+
jQuery.post(wd_bp_url);
|
| 6 |
+
})
|
| 7 |
+
});
|
| 8 |
+
|
| 9 |
+
// Set option status 1 - never show again during install btn click in notice
|
| 10 |
+
function wd_bp_notice_install() {
|
| 11 |
+
jQuery.post(wd_bp_url);
|
| 12 |
+
}
|
readme.txt
CHANGED
|
@@ -4,7 +4,7 @@ Donate link: http://web-dorado.com/products/wordpress-contact-form-builder.html
|
|
| 4 |
Tags: contact form, contact forms, contact, feedback, form manager, captcha, custom form, email, form, form builder, forms, survey
|
| 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 |
|
|
@@ -21,7 +21,7 @@ Create responsive FREE contact forms with multiple templates and themes.
|
|
| 21 |
https://www.youtube.com/watch?v=EqhOv7xVI2w
|
| 22 |
|
| 23 |
Contact Form Builder is the best tool for quickly arranging a contact form for your clients and visitors. The form includes all of the form field types necessary to create a complete contact form, where is those can be activated and deactivated, as well as rearranged.
|
| 24 |
-
The responsiveness of the
|
| 25 |
Using the CSS files of the themes you can achieve the best design of the contact form, applying changes in colors, dimensions and other features.
|
| 26 |
Captch and ReCaptcha word verifications help to avoid spam. For the specific IPs it is also possible to use blocking IPs feature.
|
| 27 |
The form has an integrating Google Maps feature allowing you to display the location of your office using Google Maps.
|
|
@@ -138,12 +138,15 @@ After downloading the ZIP file,
|
|
| 138 |
|
| 139 |
== Changelog ==
|
| 140 |
|
|
|
|
|
|
|
|
|
|
| 141 |
= 1.0.60 =
|
| 142 |
-
* Added: Labels on submissions page
|
| 143 |
|
| 144 |
= 1.0.59 =
|
| 145 |
-
* Added: Overview page.
|
| 146 |
* Fixed: Google maps api conflict with other plugins.
|
|
|
|
| 147 |
* Fixed: Shortcode editor pop-up styles.
|
| 148 |
|
| 149 |
= 1.0.58 =
|
| 4 |
Tags: contact form, contact forms, contact, feedback, form manager, captcha, custom form, email, form, form builder, forms, survey
|
| 5 |
Requires at least: 3.4
|
| 6 |
Tested up to: 4.8
|
| 7 |
+
Stable tag: 1.0.61
|
| 8 |
License: GPLv2 or later
|
| 9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 10 |
|
| 21 |
https://www.youtube.com/watch?v=EqhOv7xVI2w
|
| 22 |
|
| 23 |
Contact Form Builder is the best tool for quickly arranging a contact form for your clients and visitors. The form includes all of the form field types necessary to create a complete contact form, where is those can be activated and deactivated, as well as rearranged.
|
| 24 |
+
The responsiveness of the product allows you to become available for contacting using various gadgets.
|
| 25 |
Using the CSS files of the themes you can achieve the best design of the contact form, applying changes in colors, dimensions and other features.
|
| 26 |
Captch and ReCaptcha word verifications help to avoid spam. For the specific IPs it is also possible to use blocking IPs feature.
|
| 27 |
The form has an integrating Google Maps feature allowing you to display the location of your office using Google Maps.
|
| 138 |
|
| 139 |
== Changelog ==
|
| 140 |
|
| 141 |
+
= 1.0.61 =
|
| 142 |
+
* Added: Show notice to install Backup WD plugin.
|
| 143 |
+
|
| 144 |
= 1.0.60 =
|
| 145 |
+
* Added: Labels on buttons in submissions page.
|
| 146 |
|
| 147 |
= 1.0.59 =
|
|
|
|
| 148 |
* Fixed: Google maps api conflict with other plugins.
|
| 149 |
+
* Added: Overview page.
|
| 150 |
* Fixed: Shortcode editor pop-up styles.
|
| 151 |
|
| 152 |
= 1.0.58 =
|
