Version Description
wp 4.0.1 shortcode issue fixed
Download this release
Release Info
Developer | webdorado |
Plugin | Contact Form Builder – a plugin for creating contact and feedback forms |
Version | 1.0.15 |
Comparing to | |
See all releases |
Code changes from version 1.0.14 to 1.0.15
- contact-form-builder.php +15 -4
- readme.txt +4 -2
contact-form-builder.php
CHANGED
@@ -3,7 +3,7 @@
|
|
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
|
@@ -128,14 +128,14 @@ add_action('init', 'cfm_do_output_buffer');
|
|
128 |
function contact_form_maker_frontend_main($content) {
|
129 |
global $cfm_generate_action;
|
130 |
if ($cfm_generate_action) {
|
131 |
-
$pattern = '[\[Contact_Form_Builder id=
|
132 |
$count_forms_in_post = preg_match_all($pattern, $content, $matches_form);
|
133 |
if ($count_forms_in_post) {
|
134 |
require_once (WD_CFM_DIR . '/frontend/controllers/CFMControllerForm_maker.php');
|
135 |
$controller = new CFMControllerForm_maker();
|
136 |
for ($jj = 0; $jj < $count_forms_in_post; $jj++) {
|
137 |
$padron = $matches_form[0][$jj];
|
138 |
-
$replacment = $controller->execute($matches_form[
|
139 |
$content = str_replace($padron, $replacment, $content);
|
140 |
}
|
141 |
}
|
@@ -144,6 +144,17 @@ function contact_form_maker_frontend_main($content) {
|
|
144 |
}
|
145 |
add_filter('the_content', 'contact_form_maker_frontend_main', 5000);
|
146 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
147 |
$cfm_generate_action = 0;
|
148 |
function cfm_generate_action() {
|
149 |
global $cfm_generate_action;
|
@@ -165,7 +176,7 @@ if (class_exists('WP_Widget')) {
|
|
165 |
// Activate plugin.
|
166 |
function contact_form_maker_activate() {
|
167 |
$version = get_option("wd_contact_form_maker_version");
|
168 |
-
$new_version = '1.0.
|
169 |
if ($version && version_compare($version, $new_version, '<')) {
|
170 |
require_once WD_CFM_DIR . "/contact-form-builder-update.php";
|
171 |
contact_form_maker_update($version);
|
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.15
|
7 |
* Author: WebDorado
|
8 |
* Author URI: http://web-dorado.com/
|
9 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
128 |
function contact_form_maker_frontend_main($content) {
|
129 |
global $cfm_generate_action;
|
130 |
if ($cfm_generate_action) {
|
131 |
+
$pattern = '[\[Contact_Form_Builder id="([0-9]*)"\]]';
|
132 |
$count_forms_in_post = preg_match_all($pattern, $content, $matches_form);
|
133 |
if ($count_forms_in_post) {
|
134 |
require_once (WD_CFM_DIR . '/frontend/controllers/CFMControllerForm_maker.php');
|
135 |
$controller = new CFMControllerForm_maker();
|
136 |
for ($jj = 0; $jj < $count_forms_in_post; $jj++) {
|
137 |
$padron = $matches_form[0][$jj];
|
138 |
+
$replacment = $controller->execute($matches_form[1][$jj]);
|
139 |
$content = str_replace($padron, $replacment, $content);
|
140 |
}
|
141 |
}
|
144 |
}
|
145 |
add_filter('the_content', 'contact_form_maker_frontend_main', 5000);
|
146 |
|
147 |
+
function cfm_shortcode($attrs) {
|
148 |
+
$new_shortcode = '[Contact_Form_Builder';
|
149 |
+
foreach ($attrs as $key=>$value) {
|
150 |
+
$new_shortcode .= ' ' . $key . '="' . $value . '"';
|
151 |
+
}
|
152 |
+
$new_shortcode .= ']';
|
153 |
+
return $new_shortcode;
|
154 |
+
}
|
155 |
+
add_shortcode('Contact_Form_Builder', 'cfm_shortcode');
|
156 |
+
|
157 |
+
|
158 |
$cfm_generate_action = 0;
|
159 |
function cfm_generate_action() {
|
160 |
global $cfm_generate_action;
|
176 |
// Activate plugin.
|
177 |
function contact_form_maker_activate() {
|
178 |
$version = get_option("wd_contact_form_maker_version");
|
179 |
+
$new_version = '1.0.15';
|
180 |
if ($version && version_compare($version, $new_version, '<')) {
|
181 |
require_once WD_CFM_DIR . "/contact-form-builder-update.php";
|
182 |
contact_form_maker_update($version);
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://web-dorado.com/products/wordpress-contact-form-builder.html
|
|
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 Builder with recaptcha, contact form with google map, feedback form, feedback forms, contact us, wordpress contact form, email form, feedback, web form, contact me, email, contact manager, contact us form
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 4.0
|
7 |
-
Stable tag: 1.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -54,7 +54,7 @@ Upgrade to [WordPress Contact Form Builder](http://web-dorado.com/products/wordp
|
|
54 |
* 37 themes based on various color schemes.
|
55 |
* Submissions section.
|
56 |
* Possibility of exporting the received data both in CSV and XML formats.
|
57 |
-
|
58 |
|
59 |
### Supported languages Of Contact Form Builder
|
60 |
|
@@ -132,6 +132,8 @@ After downloading the ZIP file,
|
|
132 |
If any problem occurs, please contact us at [info@web-dorado.com](mailto:info@web-dorado.com).
|
133 |
|
134 |
== Changelog ==
|
|
|
|
|
135 |
|
136 |
= 1.0.13 =
|
137 |
remove spacing on the top of the form
|
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 Builder with recaptcha, contact form with google map, feedback form, feedback forms, contact us, wordpress contact form, email form, feedback, web form, contact me, email, contact manager, contact us form
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 4.0
|
7 |
+
Stable tag: 1.0.15
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
54 |
* 37 themes based on various color schemes.
|
55 |
* Submissions section.
|
56 |
* Possibility of exporting the received data both in CSV and XML formats.
|
57 |
+
* Statistical data for the multi-option form fields
|
58 |
|
59 |
### Supported languages Of Contact Form Builder
|
60 |
|
132 |
If any problem occurs, please contact us at [info@web-dorado.com](mailto:info@web-dorado.com).
|
133 |
|
134 |
== Changelog ==
|
135 |
+
= 1.0.15 =
|
136 |
+
wp 4.0.1 shortcode issue fixed
|
137 |
|
138 |
= 1.0.13 =
|
139 |
remove spacing on the top of the form
|