Version Description
- Fixed small bug for select dropdown
Download this release
Release Info
Developer | Access Keys |
Plugin | Contact Form for WordPress – Ultimate Form Builder Lite |
Version | 1.0.9 |
Comparing to | |
See all releases |
Code changes from version 1.0.8 to 1.0.9
- classes/ufbl-lib.php +3 -2
- inc/views/backend/boxes/form-builder-main.php +8 -7
- readme.txt +4 -1
- ultimate-form-builder-lite.php +2 -2
classes/ufbl-lib.php
CHANGED
@@ -213,6 +213,7 @@ if ( !class_exists( 'UFBL_Lib' ) ) {
|
|
213 |
$form_response['error_keys'][$key] = $error_message;
|
214 |
}
|
215 |
if ( $error_flag == 0 ) {
|
|
|
216 |
$email_reference_array[$key] = array( 'label' => $field_data[$key]['field_label'], 'value' => $val );
|
217 |
}
|
218 |
break;
|
@@ -245,7 +246,7 @@ if ( !class_exists( 'UFBL_Lib' ) ) {
|
|
245 |
$error_flag = 1;
|
246 |
$form_response['error_keys'][$key] = $error_message;
|
247 |
} else {
|
248 |
-
if ( !is_numeric( $val ) ) {
|
249 |
$error_message = (isset( $field_data[$key]['error_message'] ) && $field_data[$key]['error_message'] != '') ? $field_data[$key]['error_message'] : __( 'Only numbers allowed.', 'ultimate-form-builder-lite' );
|
250 |
$error_flag = 1;
|
251 |
$form_response['error_keys'][$key] = $error_message;
|
@@ -367,7 +368,7 @@ if ( !class_exists( 'UFBL_Lib' ) ) {
|
|
367 |
$headers[] = 'Content-Type: text/html; charset=UTF-8';
|
368 |
$headers[] = 'From: ' . $from_name . '<' . $from_email . '>' ;
|
369 |
|
370 |
-
|
371 |
foreach ( $email_recievers as $email_reciever ) {
|
372 |
$to_email = ($email_reciever == '') ? $admin_email : esc_attr( $email_reciever );
|
373 |
//$mail = mail( $to_email, $email_subject, $form_html, $headers );
|
213 |
$form_response['error_keys'][$key] = $error_message;
|
214 |
}
|
215 |
if ( $error_flag == 0 ) {
|
216 |
+
$val = (is_array($val))?implode(',',$val):$val;
|
217 |
$email_reference_array[$key] = array( 'label' => $field_data[$key]['field_label'], 'value' => $val );
|
218 |
}
|
219 |
break;
|
246 |
$error_flag = 1;
|
247 |
$form_response['error_keys'][$key] = $error_message;
|
248 |
} else {
|
249 |
+
if ( $val!='' && !is_numeric( $val ) ) {
|
250 |
$error_message = (isset( $field_data[$key]['error_message'] ) && $field_data[$key]['error_message'] != '') ? $field_data[$key]['error_message'] : __( 'Only numbers allowed.', 'ultimate-form-builder-lite' );
|
251 |
$error_flag = 1;
|
252 |
$form_response['error_keys'][$key] = $error_message;
|
368 |
$headers[] = 'Content-Type: text/html; charset=UTF-8';
|
369 |
$headers[] = 'From: ' . $from_name . '<' . $from_email . '>' ;
|
370 |
|
371 |
+
|
372 |
foreach ( $email_recievers as $email_reciever ) {
|
373 |
$to_email = ($email_reciever == '') ? $admin_email : esc_attr( $email_reciever );
|
374 |
//$mail = mail( $to_email, $email_subject, $form_html, $headers );
|
inc/views/backend/boxes/form-builder-main.php
CHANGED
@@ -274,7 +274,7 @@
|
|
274 |
break;
|
275 |
case 'dropdown':
|
276 |
?>
|
277 |
-
<!--Dropdown Reference Field
|
278 |
|
279 |
<div class="ufbl-each-form-field ufbl-relative">
|
280 |
<span class="ufbl-drag-arrow"><i class="fa fa-arrows"></i></span>
|
@@ -336,8 +336,9 @@
|
|
336 |
</div>
|
337 |
<div class="ufbl-form-field-wrap">
|
338 |
<label><?php _e( 'Multiple', 'ultimate-form-builder-lite' ); ?></label>
|
|
|
339 |
<div class="ufbl-form-field">
|
340 |
-
<input type="checkbox" name="field_data[<?php echo $key; ?>][multiple]" value="1" data-field-name="<?php echo $key; ?>" data-field-type="multiple" <?php checked($
|
341 |
</div>
|
342 |
</div>
|
343 |
<div class="ufbl-form-field-wrap">
|
@@ -439,12 +440,12 @@
|
|
439 |
</div>
|
440 |
</div><!--ufbl-each-form-field-->
|
441 |
|
442 |
-
<!--Radio Button Reference Field
|
443 |
<?php
|
444 |
break;
|
445 |
case 'checkbox':
|
446 |
?>
|
447 |
-
<!--Checkbox Reference Field
|
448 |
|
449 |
<div class="ufbl-each-form-field ufbl-relative">
|
450 |
<span class="ufbl-drag-arrow"><i class="fa fa-arrows"></i></span>
|
@@ -520,12 +521,12 @@
|
|
520 |
</div>
|
521 |
</div><!--ufbl-each-form-field-->
|
522 |
|
523 |
-
<!--Checkbox Reference Field
|
524 |
<?php
|
525 |
break;
|
526 |
case 'password':
|
527 |
?>
|
528 |
-
<!--Password Reference Field
|
529 |
|
530 |
<div class="ufbl-each-form-field ufbl-relative">
|
531 |
<span class="ufbl-drag-arrow"><i class="fa fa-arrows"></i></span>
|
@@ -593,7 +594,7 @@
|
|
593 |
</div>
|
594 |
</div><!--ufbl-each-form-field-->
|
595 |
|
596 |
-
<!--Password Reference Field
|
597 |
<?php
|
598 |
break;
|
599 |
case 'hidden':
|
274 |
break;
|
275 |
case 'dropdown':
|
276 |
?>
|
277 |
+
<!--Dropdown Reference Field -->
|
278 |
|
279 |
<div class="ufbl-each-form-field ufbl-relative">
|
280 |
<span class="ufbl-drag-arrow"><i class="fa fa-arrows"></i></span>
|
336 |
</div>
|
337 |
<div class="ufbl-form-field-wrap">
|
338 |
<label><?php _e( 'Multiple', 'ultimate-form-builder-lite' ); ?></label>
|
339 |
+
<?php $multiple = isset($val['multiple'])?1:0;?>
|
340 |
<div class="ufbl-form-field">
|
341 |
+
<input type="checkbox" name="field_data[<?php echo $key; ?>][multiple]" value="1" data-field-name="<?php echo $key; ?>" data-field-type="multiple" <?php checked($multiple,true);?>/>
|
342 |
</div>
|
343 |
</div>
|
344 |
<div class="ufbl-form-field-wrap">
|
440 |
</div>
|
441 |
</div><!--ufbl-each-form-field-->
|
442 |
|
443 |
+
<!--Radio Button Reference Field -->
|
444 |
<?php
|
445 |
break;
|
446 |
case 'checkbox':
|
447 |
?>
|
448 |
+
<!--Checkbox Reference Field -->
|
449 |
|
450 |
<div class="ufbl-each-form-field ufbl-relative">
|
451 |
<span class="ufbl-drag-arrow"><i class="fa fa-arrows"></i></span>
|
521 |
</div>
|
522 |
</div><!--ufbl-each-form-field-->
|
523 |
|
524 |
+
<!--Checkbox Reference Field -->
|
525 |
<?php
|
526 |
break;
|
527 |
case 'password':
|
528 |
?>
|
529 |
+
<!--Password Reference Field -->
|
530 |
|
531 |
<div class="ufbl-each-form-field ufbl-relative">
|
532 |
<span class="ufbl-drag-arrow"><i class="fa fa-arrows"></i></span>
|
594 |
</div>
|
595 |
</div><!--ufbl-each-form-field-->
|
596 |
|
597 |
+
<!--Password Reference Field -->
|
598 |
<?php
|
599 |
break;
|
600 |
case 'hidden':
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: contact form, form builder, form, forms, contact forms, enquiry forms, for
|
|
4 |
Donate link: http://accesspressthemes.com/donation/
|
5 |
Requires at least: 3.8
|
6 |
Tested up to: 4.4
|
7 |
-
Stable tag: 1.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -95,6 +95,9 @@ Once you install the plugin , you can check some general documentation about how
|
|
95 |
10. Backend Entry Detail
|
96 |
|
97 |
== Changelog ==
|
|
|
|
|
|
|
98 |
= 1.0.8 =
|
99 |
* Replaced PHP mail with WordPress mail function
|
100 |
|
4 |
Donate link: http://accesspressthemes.com/donation/
|
5 |
Requires at least: 3.8
|
6 |
Tested up to: 4.4
|
7 |
+
Stable tag: 1.0.9
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
95 |
10. Backend Entry Detail
|
96 |
|
97 |
== Changelog ==
|
98 |
+
= 1.0.9 =
|
99 |
+
* Fixed small bug for select dropdown
|
100 |
+
|
101 |
= 1.0.8 =
|
102 |
* Replaced PHP mail with WordPress mail function
|
103 |
|
ultimate-form-builder-lite.php
CHANGED
@@ -6,7 +6,7 @@ defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
|
|
6 |
Plugin Name: Ultimate Form Builder Lite
|
7 |
Plugin URI: https://accesspressthemes.com/wordpress-plugins/ultimate-form-builder-lite/
|
8 |
Description: A plugin to build any type of forms
|
9 |
-
Version: 1.0.
|
10 |
Author: AccessPress Themes
|
11 |
Author URI: http://accesspressthemes.com
|
12 |
License: GPL2
|
@@ -19,7 +19,7 @@ defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
|
|
19 |
* Necessary Constants for plugin
|
20 |
*/
|
21 |
global $wpdb;
|
22 |
-
defined( 'UFBL_VERSION' ) or define( 'UFBL_VERSION', '1.0.
|
23 |
defined( 'UFBL_SLUG' ) or define( 'UFBL_SLUG', 'ufbl' ); //plugin admin slug
|
24 |
defined( 'UFBL_TD' ) or define( 'UFBL_TD', 'ultimate-form-builder-lite' ); //plugin's text domain
|
25 |
defined( 'UFBL_IMG_DIR' ) or define( 'UFBL_IMG_DIR', plugin_dir_url( __FILE__ ) . 'images' ); //plugin image directory
|
6 |
Plugin Name: Ultimate Form Builder Lite
|
7 |
Plugin URI: https://accesspressthemes.com/wordpress-plugins/ultimate-form-builder-lite/
|
8 |
Description: A plugin to build any type of forms
|
9 |
+
Version: 1.0.9
|
10 |
Author: AccessPress Themes
|
11 |
Author URI: http://accesspressthemes.com
|
12 |
License: GPL2
|
19 |
* Necessary Constants for plugin
|
20 |
*/
|
21 |
global $wpdb;
|
22 |
+
defined( 'UFBL_VERSION' ) or define( 'UFBL_VERSION', '1.0.9' ); //plugin version
|
23 |
defined( 'UFBL_SLUG' ) or define( 'UFBL_SLUG', 'ufbl' ); //plugin admin slug
|
24 |
defined( 'UFBL_TD' ) or define( 'UFBL_TD', 'ultimate-form-builder-lite' ); //plugin's text domain
|
25 |
defined( 'UFBL_IMG_DIR' ) or define( 'UFBL_IMG_DIR', plugin_dir_url( __FILE__ ) . 'images' ); //plugin image directory
|