Version Description
- Fixed bug regarding ufbl widget.
Download this release
Release Info
Developer | Access Keys |
Plugin | Contact Form for WordPress – Ultimate Form Builder Lite |
Version | 1.5.1 |
Comparing to | |
See all releases |
Code changes from version 1.5.0 to 1.5.1
- inc/cores/widgets.php +14 -31
- readme.txt +4 -1
- ultimate-form-builder-lite.php +2 -2
inc/cores/widgets.php
CHANGED
@@ -26,38 +26,21 @@ class ufbl_Widget extends WP_Widget {
|
|
26 |
|
27 |
<label for="<?php echo esc_attr($this->get_field_id('form_id')); ?>"><?php esc_attr_e('Choose form:', 'ultimate-form-builder-lite'); ?></label>
|
28 |
<br>
|
29 |
-
|
30 |
<?php
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
'
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
$the_query->the_post();
|
44 |
-
echo '<option';
|
45 |
-
if($form_id==get_the_ID()){
|
46 |
-
echo ' selected="selected"';
|
47 |
-
}
|
48 |
-
echo ' value="'.get_the_ID().'">' . get_the_title() . '</option>';
|
49 |
-
}
|
50 |
-
echo '</select>';
|
51 |
-
}
|
52 |
-
/* Restore original Post Data */
|
53 |
-
wp_reset_postdata();
|
54 |
-
|
55 |
-
?>
|
56 |
</p>
|
57 |
-
|
58 |
-
|
59 |
-
<?php
|
60 |
-
}
|
61 |
|
62 |
public function widget($args, $instance) {
|
63 |
// outputs the content of the widget
|
@@ -66,7 +49,7 @@ class ufbl_Widget extends WP_Widget {
|
|
66 |
echo $args[ 'before_title' ] . apply_filters('widget_title', $instance[ 'title' ]) . $args[ 'after_title' ];
|
67 |
}
|
68 |
$tid = $instance[ 'form_id' ];
|
69 |
-
$shtc = '[
|
70 |
if (!empty ($tid) ){
|
71 |
echo do_shortcode($shtc);
|
72 |
}
|
26 |
|
27 |
<label for="<?php echo esc_attr($this->get_field_id('form_id')); ?>"><?php esc_attr_e('Choose form:', 'ultimate-form-builder-lite'); ?></label>
|
28 |
<br>
|
|
|
29 |
<?php
|
30 |
+
global $wpdb;
|
31 |
+
$ufbl_sql = 'select * from '.UFBL_FORM_TABLE;
|
32 |
+
$ufbl_form_results = $wpdb->get_results($ufbl_sql, ARRAY_A); ?>
|
33 |
+
<select class="widefat" name="<?php esc_attr_e($this->get_field_name('form_id')); ?>">
|
34 |
+
<option value=""><?php esc_html_e('Select form','ufbl'); ?></option>
|
35 |
+
<?php
|
36 |
+
foreach($ufbl_form_results as $ufbl_form){
|
37 |
+
if($ufbl_form['form_status'] === '1') { ?>
|
38 |
+
<option value="<?php esc_attr_e($ufbl_form['form_id']); ?>"><?php esc_html_e($ufbl_form['form_title']); ?></option>
|
39 |
+
<?php }
|
40 |
+
} ?>
|
41 |
+
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
42 |
</p>
|
43 |
+
<?php }
|
|
|
|
|
|
|
44 |
|
45 |
public function widget($args, $instance) {
|
46 |
// outputs the content of the widget
|
49 |
echo $args[ 'before_title' ] . apply_filters('widget_title', $instance[ 'title' ]) . $args[ 'after_title' ];
|
50 |
}
|
51 |
$tid = $instance[ 'form_id' ];
|
52 |
+
$shtc = '[ufbl form_id="'.$tid.'"]';
|
53 |
if (!empty ($tid) ){
|
54 |
echo do_shortcode($shtc);
|
55 |
}
|
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: 4.5
|
6 |
Tested up to: 5.8
|
7 |
-
Stable tag: 1.5.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -147,6 +147,9 @@ Once you install the plugin , you can check some general documentation about how
|
|
147 |
10. Backend Entry Detail
|
148 |
|
149 |
== Changelog ==
|
|
|
|
|
|
|
150 |
= 1.5.0 =
|
151 |
* WordPress 5.8 compatibility checked
|
152 |
|
4 |
Donate link: http://accesspressthemes.com/donation/
|
5 |
Requires at least: 4.5
|
6 |
Tested up to: 5.8
|
7 |
+
Stable tag: 1.5.1
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
147 |
10. Backend Entry Detail
|
148 |
|
149 |
== Changelog ==
|
150 |
+
= 1.5.1 =
|
151 |
+
* Fixed bug regarding ufbl widget.
|
152 |
+
|
153 |
= 1.5.0 =
|
154 |
* WordPress 5.8 compatibility checked
|
155 |
|
ultimate-form-builder-lite.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Ultimate Form Builder Lite
|
4 |
Plugin URI: https://accesspressthemes.com/wordpress-plugins/ultimate-form-builder-lite/
|
5 |
Description: A plugin to build any type of forms
|
6 |
-
Version: 1.5.
|
7 |
Author: AccessPress Themes
|
8 |
Author URI: http://accesspressthemes.com
|
9 |
License: GPL2
|
@@ -16,7 +16,7 @@
|
|
16 |
* Necessary Constants for plugin
|
17 |
*/
|
18 |
global $wpdb;
|
19 |
-
defined( 'UFBL_VERSION' ) or define( 'UFBL_VERSION', '1.5.
|
20 |
defined( 'UFBL_SLUG' ) or define( 'UFBL_SLUG', 'ufbl' ); //plugin admin slug
|
21 |
defined( 'UFBL_TD' ) or define( 'UFBL_TD', 'ultimate-form-builder-lite' ); //plugin's text domain
|
22 |
defined( 'UFBL_IMG_DIR' ) or define( 'UFBL_IMG_DIR', plugin_dir_url( __FILE__ ) . 'images' ); //plugin image directory
|
3 |
Plugin Name: Ultimate Form Builder Lite
|
4 |
Plugin URI: https://accesspressthemes.com/wordpress-plugins/ultimate-form-builder-lite/
|
5 |
Description: A plugin to build any type of forms
|
6 |
+
Version: 1.5.1
|
7 |
Author: AccessPress Themes
|
8 |
Author URI: http://accesspressthemes.com
|
9 |
License: GPL2
|
16 |
* Necessary Constants for plugin
|
17 |
*/
|
18 |
global $wpdb;
|
19 |
+
defined( 'UFBL_VERSION' ) or define( 'UFBL_VERSION', '1.5.1' ); //plugin version
|
20 |
defined( 'UFBL_SLUG' ) or define( 'UFBL_SLUG', 'ufbl' ); //plugin admin slug
|
21 |
defined( 'UFBL_TD' ) or define( 'UFBL_TD', 'ultimate-form-builder-lite' ); //plugin's text domain
|
22 |
defined( 'UFBL_IMG_DIR' ) or define( 'UFBL_IMG_DIR', plugin_dir_url( __FILE__ ) . 'images' ); //plugin image directory
|