Version Description
- Few Code refinement on timezone issues fixed.
Download this release
Release Info
Developer | Access Keys |
Plugin | Contact Form for WordPress – Ultimate Form Builder Lite |
Version | 1.4.1 |
Comparing to | |
See all releases |
Code changes from version 1.4.0 to 1.4.1
- classes/ufbl-model.php +11 -9
- inc/cores/save-form.php +3 -1
- inc/views/frontend/front-form.php +2 -2
- js/frontend.js +2 -2
- readme.txt +52 -49
- ultimate-form-builder-lite.php +14 -17
classes/ufbl-model.php
CHANGED
@@ -4,7 +4,7 @@ defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
|
|
4 |
|
5 |
/**
|
6 |
* UFBL Model Class
|
7 |
-
* All the database related tasks
|
8 |
*/
|
9 |
if ( !class_exists( 'UFBL_Model' ) ) {
|
10 |
|
@@ -13,7 +13,7 @@ if ( !class_exists( 'UFBL_Model' ) ) {
|
|
13 |
/**
|
14 |
* Model to add form into DB
|
15 |
* @global UFBL_Lib object $library_obj
|
16 |
-
*
|
17 |
*/
|
18 |
public static function add_form() {
|
19 |
global $library_obj;
|
@@ -58,7 +58,7 @@ if ( !class_exists( 'UFBL_Model' ) ) {
|
|
58 |
|
59 |
/**
|
60 |
* Model to change status of the form
|
61 |
-
*
|
62 |
*/
|
63 |
public static function change_form_status() {
|
64 |
$form_id = intval(sanitize_text_field( $_POST['form_id'] ));
|
@@ -90,7 +90,7 @@ if ( !class_exists( 'UFBL_Model' ) ) {
|
|
90 |
|
91 |
/**
|
92 |
* Model to save form
|
93 |
-
* @return string
|
94 |
*/
|
95 |
public static function save_form() {
|
96 |
global $library_obj;
|
@@ -123,13 +123,15 @@ if ( !class_exists( 'UFBL_Model' ) ) {
|
|
123 |
}
|
124 |
|
125 |
/**
|
126 |
-
*
|
127 |
* @param array $form_data
|
128 |
* @return void
|
129 |
*/
|
130 |
public static function save_to_db( $form_data = array() ) {
|
|
|
|
|
131 |
$timezone = get_option('timezone_string');
|
132 |
-
|
133 |
|
134 |
if ( isset( $form_data['form_id'] ) ) {
|
135 |
$form_id = intval(sanitize_text_field( $form_data['form_id'] ));
|
@@ -185,7 +187,7 @@ if ( !class_exists( 'UFBL_Model' ) ) {
|
|
185 |
$form_entry_rows = $wpdb->get_results( $query, 'ARRAY_A' );
|
186 |
return $form_entry_rows;
|
187 |
}
|
188 |
-
|
189 |
/**
|
190 |
* Model to return form entries
|
191 |
* @param int $form_id
|
@@ -203,7 +205,7 @@ if ( !class_exists( 'UFBL_Model' ) ) {
|
|
203 |
$form_entry_rows = $wpdb->get_results( $query, 'ARRAY_A' );
|
204 |
return $form_entry_rows;
|
205 |
}
|
206 |
-
|
207 |
/**
|
208 |
* Model to return form entries
|
209 |
* @param int $form_id
|
@@ -257,7 +259,7 @@ if ( !class_exists( 'UFBL_Model' ) ) {
|
|
257 |
/**
|
258 |
* Model to return all the form labels in array
|
259 |
* @param int $form_id
|
260 |
-
* @return array
|
261 |
*/
|
262 |
public static function get_form_data( $form_id ) {
|
263 |
global $wpdb;
|
4 |
|
5 |
/**
|
6 |
* UFBL Model Class
|
7 |
+
* All the database related tasks
|
8 |
*/
|
9 |
if ( !class_exists( 'UFBL_Model' ) ) {
|
10 |
|
13 |
/**
|
14 |
* Model to add form into DB
|
15 |
* @global UFBL_Lib object $library_obj
|
16 |
+
*
|
17 |
*/
|
18 |
public static function add_form() {
|
19 |
global $library_obj;
|
58 |
|
59 |
/**
|
60 |
* Model to change status of the form
|
61 |
+
*
|
62 |
*/
|
63 |
public static function change_form_status() {
|
64 |
$form_id = intval(sanitize_text_field( $_POST['form_id'] ));
|
90 |
|
91 |
/**
|
92 |
* Model to save form
|
93 |
+
* @return string
|
94 |
*/
|
95 |
public static function save_form() {
|
96 |
global $library_obj;
|
123 |
}
|
124 |
|
125 |
/**
|
126 |
+
*
|
127 |
* @param array $form_data
|
128 |
* @return void
|
129 |
*/
|
130 |
public static function save_to_db( $form_data = array() ) {
|
131 |
+
/* $timezone = get_option('timezone_string');
|
132 |
+
date_default_timezone_set($timezone);*/
|
133 |
$timezone = get_option('timezone_string');
|
134 |
+
date_default_timezone_set('UTC');
|
135 |
|
136 |
if ( isset( $form_data['form_id'] ) ) {
|
137 |
$form_id = intval(sanitize_text_field( $form_data['form_id'] ));
|
187 |
$form_entry_rows = $wpdb->get_results( $query, 'ARRAY_A' );
|
188 |
return $form_entry_rows;
|
189 |
}
|
190 |
+
|
191 |
/**
|
192 |
* Model to return form entries
|
193 |
* @param int $form_id
|
205 |
$form_entry_rows = $wpdb->get_results( $query, 'ARRAY_A' );
|
206 |
return $form_entry_rows;
|
207 |
}
|
208 |
+
|
209 |
/**
|
210 |
* Model to return form entries
|
211 |
* @param int $form_id
|
259 |
/**
|
260 |
* Model to return all the form labels in array
|
261 |
* @param int $form_id
|
262 |
+
* @return array
|
263 |
*/
|
264 |
public static function get_form_data( $form_id ) {
|
265 |
global $wpdb;
|
inc/cores/save-form.php
CHANGED
@@ -1,7 +1,9 @@
|
|
1 |
<?php
|
2 |
|
|
|
|
|
3 |
$timezone = get_option('timezone_string');
|
4 |
-
date_default_timezone_set(
|
5 |
|
6 |
/**
|
7 |
* Posted Variables
|
1 |
<?php
|
2 |
|
3 |
+
/*$timezone = get_option('timezone_string');
|
4 |
+
date_default_timezone_set($timezone);*/
|
5 |
$timezone = get_option('timezone_string');
|
6 |
+
date_default_timezone_set('UTC');
|
7 |
|
8 |
/**
|
9 |
* Posted Variables
|
inc/views/frontend/front-form.php
CHANGED
@@ -23,7 +23,7 @@ $form_width = (isset( $form_design['form_width'] ) && $form_design['form_width']
|
|
23 |
<input type="text" name="<?php echo $key; ?>" class="ufbl-form-textfield <?php echo $class; ?>" data-max-chars="<?php echo esc_attr( $val['max_chars'] ); ?>" data-min-chars="<?php echo esc_attr( $val['min_chars'] ); ?>" data-error-message="<?php echo esc_attr( $val['error_message'] ); ?>" placeholder="<?php echo esc_attr( $val['placeholder'] ); ?>" value="<?php echo esc_attr( $val['pre_filled_value'] ); ?>"/>
|
24 |
<div class="ufbl-error" data-error-key="<?php echo $key; ?>"></div>
|
25 |
</div>
|
26 |
-
</div>
|
27 |
<?php
|
28 |
break;
|
29 |
case 'textarea':
|
@@ -129,7 +129,7 @@ $form_width = (isset( $form_design['form_width'] ) && $form_design['form_width']
|
|
129 |
<input type="password" name="<?php echo $key; ?>" class="ufbl-form-password <?php echo $class; ?>" data-max-chars="<?php echo esc_attr( $val['max_chars'] ); ?>" data-min-chars="<?php echo esc_attr( $val['min_chars'] ); ?>" data-error-message="<?php echo esc_attr( $val['error_message'] ); ?>" placeholder="<?php echo esc_attr( $val['placeholder'] ); ?>"/>
|
130 |
<div class="ufbl-error" data-error-key="<?php echo $key; ?>"></div>
|
131 |
</div>
|
132 |
-
</div>
|
133 |
<?php
|
134 |
break;
|
135 |
case 'hidden':
|
23 |
<input type="text" name="<?php echo $key; ?>" class="ufbl-form-textfield <?php echo $class; ?>" data-max-chars="<?php echo esc_attr( $val['max_chars'] ); ?>" data-min-chars="<?php echo esc_attr( $val['min_chars'] ); ?>" data-error-message="<?php echo esc_attr( $val['error_message'] ); ?>" placeholder="<?php echo esc_attr( $val['placeholder'] ); ?>" value="<?php echo esc_attr( $val['pre_filled_value'] ); ?>"/>
|
24 |
<div class="ufbl-error" data-error-key="<?php echo $key; ?>"></div>
|
25 |
</div>
|
26 |
+
</div>
|
27 |
<?php
|
28 |
break;
|
29 |
case 'textarea':
|
129 |
<input type="password" name="<?php echo $key; ?>" class="ufbl-form-password <?php echo $class; ?>" data-max-chars="<?php echo esc_attr( $val['max_chars'] ); ?>" data-min-chars="<?php echo esc_attr( $val['min_chars'] ); ?>" data-error-message="<?php echo esc_attr( $val['error_message'] ); ?>" placeholder="<?php echo esc_attr( $val['placeholder'] ); ?>"/>
|
130 |
<div class="ufbl-error" data-error-key="<?php echo $key; ?>"></div>
|
131 |
</div>
|
132 |
+
</div>
|
133 |
<?php
|
134 |
break;
|
135 |
case 'hidden':
|
js/frontend.js
CHANGED
@@ -77,7 +77,7 @@
|
|
77 |
});
|
78 |
|
79 |
/**
|
80 |
-
* Custom dropdown
|
81 |
*/
|
82 |
$(".ufbl-template-1 .ufbl-form-dropdown,.ufbl-template-2 .ufbl-form-dropdown,.ufbl-template-3 .ufbl-form-dropdown,.ufbl-template-4 .ufbl-form-dropdown,.ufbl-template-5 .ufbl-form-dropdown").selectbox();
|
83 |
|
@@ -89,4 +89,4 @@
|
|
89 |
|
90 |
|
91 |
});//document.ready close
|
92 |
-
}(jQuery));
|
77 |
});
|
78 |
|
79 |
/**
|
80 |
+
* Custom dropdown
|
81 |
*/
|
82 |
$(".ufbl-template-1 .ufbl-form-dropdown,.ufbl-template-2 .ufbl-form-dropdown,.ufbl-template-3 .ufbl-form-dropdown,.ufbl-template-4 .ufbl-form-dropdown,.ufbl-template-5 .ufbl-form-dropdown").selectbox();
|
83 |
|
89 |
|
90 |
|
91 |
});//document.ready close
|
92 |
+
}(jQuery));
|
readme.txt
CHANGED
@@ -4,14 +4,14 @@ 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.0
|
7 |
-
Stable tag: 1.4.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
11 |
-
Contact Forms | Subscription Forms | Enquiry/quote Forms - build any type of unlimited forms with ultimate form builder
|
12 |
|
13 |
== Description ==
|
14 |
-
[Homepage](https://accesspressthemes.com) | [Demo](http://demo.accesspressthemes.com/wordpress-plugins/ultimate-form-builder-lite/) | [Documentation](https://accesspressthemes.com/documentation/documentation-plugin-instruction-ultimate-form-builder-lite/)
|
15 |
|
16 |
|
17 |
<strong>Ultimate Form Builder Lite</strong> is a <strong>FREE WordPress Plugin</strong> which allows you to create various contact forms with drag and drop form builder. Its fun because - you can create, customize and build the beautiful forms for your site on your own, receive contact email on any desired email address and store the form entries in your database which can be exported to CSV for your use via plugin's backend.
|
@@ -85,25 +85,25 @@ Contact Forms | Subscription Forms | Enquiry/quote Forms - build any type of unl
|
|
85 |
★ Ajax Form Submissions
|
86 |
|
87 |
★ Super support – get support via email/support forum/online chat
|
88 |
-
|
89 |
★ And many more...
|
90 |
|
91 |
|
92 |
-
= Premium Upgrade =
|
93 |
* For premium upgrade, please go [here](https://accesspressthemes.com/wordpress-plugins/ultimate-form-builder/)
|
94 |
|
95 |
-
= Available Language =
|
96 |
* English
|
97 |
* Swedish
|
98 |
|
99 |
-
= Translators =
|
100 |
* Swedish - Elias Vahman
|
101 |
|
102 |
= Some Useful Links =
|
103 |
* <strong>Support Forum Link</strong>: http://accesspressthemes.com/support/
|
104 |
* <strong>Website Link</strong>: http://accesspressthemes.com/
|
105 |
* <strong>Youtube channel link</strong>: https://www.youtube.com/watch?v=TjZNcVG3fDE
|
106 |
-
* <strong>Facebook link</strong>: https://www.facebook.com/AccessPressThemes
|
107 |
|
108 |
|
109 |
|
@@ -126,9 +126,9 @@ AND IF THIS PLUGIN HAS IMPRESSED YOU, THEN YOU WOULD ENJOY OUR OTHER PROJECTS TO
|
|
126 |
|
127 |
[WPAll Club](https://wpall.club/) - A complete WordPress resources club. WordPress tutorials, blogs, curated free and premium themes and plugins, WordPress deals, offers, hosting info and more.
|
128 |
|
129 |
-
[Premium WordPress Themes](https://themeforest.net/user/accesskeys/portfolio) - 6 premium WordPress themes well suited for all sort of websites. Professional, well coded and highly configurable themes for you.
|
130 |
|
131 |
-
[Premium WordPress Plugins](https://codecanyon.net/user/accesskeys/portfolio) - 45+ premium WordPress plugins of many different types. High user ratings, great quality and best sellers in CodeCanyon marketplace.
|
132 |
|
133 |
[AccessPress Themes](https://accesspressthemes.com/) - AccessPress Themes has 50+ beautiful and elegant, fully responsive, multipurpose themes to meet your need for free and commercial basis.
|
134 |
|
@@ -164,88 +164,91 @@ Once you install the plugin , you can check some general documentation about how
|
|
164 |
10. Backend Entry Detail
|
165 |
|
166 |
== Changelog ==
|
167 |
-
= 1.4.
|
|
|
|
|
|
|
168 |
* Removed use of php session
|
169 |
* Updated few sanitizations
|
170 |
-
* WordPress 5.0 compatibility checked
|
171 |
|
172 |
-
= 1.3.9 =
|
173 |
* Updaed More WordPress Resources tab
|
174 |
|
175 |
-
= 1.3.8 =
|
176 |
* Fixed security bugs reported by Neven Biruski
|
177 |
|
178 |
-
= 1.3.7 =
|
179 |
-
* Fixed security bugs reported by WordFence Security Team and Few plugin users
|
180 |
|
181 |
-
= 1.3.6 =
|
182 |
-
* Added a fallback message for invalid form id in the form edit page
|
183 |
|
184 |
-
= 1.3.5 =
|
185 |
-
* WordPress version 4.8 compatibility check
|
186 |
|
187 |
-
= 1.3.4 =
|
188 |
-
* Fixed found out XSS issues
|
189 |
|
190 |
-
= 1.3.3 =
|
191 |
* Fixed XSS issues on preview page and backend form settings page
|
192 |
-
- Special Thanks to 0xSec Team for reporting the security bugs
|
193 |
|
194 |
-
= 1.3.2 =
|
195 |
* Added documentation link in how to use section
|
196 |
|
197 |
-
= 1.3.1 =
|
198 |
* Provided notes for from name and from email field
|
199 |
* Fixed small layout fix for email settings
|
200 |
|
201 |
-
= 1.3.0 =
|
202 |
-
* Enqueued Font Awesome CSS locally as per WordPress Guidelines
|
203 |
|
204 |
-
= 1.2.9 =
|
205 |
* Revised about section
|
206 |
|
207 |
-
= 1.2.8 =
|
208 |
-
* Added ufb_form_response filter to filter form submission response
|
209 |
|
210 |
-
= 1.2.7 =
|
211 |
* Added ufbl_email_receivers filter for email receivers
|
212 |
|
213 |
= 1.2.6 =
|
214 |
* Removed Unused form builder function
|
215 |
-
|
216 |
-
= 1.2.5 =
|
217 |
* Added More WordPress Resources Link
|
218 |
|
219 |
-
= 1.2.4 =
|
220 |
-
* Added ufbl_time_format filter for time format change
|
221 |
|
222 |
-
= 1.2.3 =
|
223 |
* Added ufbl_form_template_count filter
|
224 |
-
* Updated trasnlation ready text for some missing text
|
225 |
|
226 |
-
= 1.2.2 =
|
227 |
-
* Updated form modified date and form entry submission date to match the WordPress Timezone
|
228 |
|
229 |
-
= 1.2.1 =
|
230 |
* Fixed small bug for stripping slashes from saved values
|
231 |
|
232 |
-
= 1.2.0 =
|
233 |
* Added Edit Form link in preview mode
|
234 |
|
235 |
-
= 1.1.9 =
|
236 |
-
* Added ufbl_mail_header filter
|
237 |
* Fixed small bug regarding incomplete mail subject
|
238 |
* Added ufbl_email_send action after email sending
|
239 |
|
240 |
-
= 1.1.8 =
|
241 |
* Added Swedish Language
|
242 |
|
243 |
-
= 1.1.7 =
|
244 |
* Added note for csv export
|
245 |
-
* Updated pagination layout in backend
|
246 |
|
247 |
-
= 1.1.6 =
|
248 |
-
* Fixed multiple select dropdown issue for template 4
|
249 |
|
250 |
= 1.1.5 =
|
251 |
* Addition of pot file for the translation of a plugin.
|
4 |
Donate link: http://accesspressthemes.com/donation/
|
5 |
Requires at least: 4.5
|
6 |
Tested up to: 5.0
|
7 |
+
Stable tag: 1.4.1
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
11 |
+
Contact Forms | Subscription Forms | Enquiry/quote Forms - build any type of unlimited forms with ultimate form builder
|
12 |
|
13 |
== Description ==
|
14 |
+
[Homepage](https://accesspressthemes.com) | [Demo](http://demo.accesspressthemes.com/wordpress-plugins/ultimate-form-builder-lite/) | [Documentation](https://accesspressthemes.com/documentation/documentation-plugin-instruction-ultimate-form-builder-lite/)
|
15 |
|
16 |
|
17 |
<strong>Ultimate Form Builder Lite</strong> is a <strong>FREE WordPress Plugin</strong> which allows you to create various contact forms with drag and drop form builder. Its fun because - you can create, customize and build the beautiful forms for your site on your own, receive contact email on any desired email address and store the form entries in your database which can be exported to CSV for your use via plugin's backend.
|
85 |
★ Ajax Form Submissions
|
86 |
|
87 |
★ Super support – get support via email/support forum/online chat
|
88 |
+
|
89 |
★ And many more...
|
90 |
|
91 |
|
92 |
+
= Premium Upgrade =
|
93 |
* For premium upgrade, please go [here](https://accesspressthemes.com/wordpress-plugins/ultimate-form-builder/)
|
94 |
|
95 |
+
= Available Language =
|
96 |
* English
|
97 |
* Swedish
|
98 |
|
99 |
+
= Translators =
|
100 |
* Swedish - Elias Vahman
|
101 |
|
102 |
= Some Useful Links =
|
103 |
* <strong>Support Forum Link</strong>: http://accesspressthemes.com/support/
|
104 |
* <strong>Website Link</strong>: http://accesspressthemes.com/
|
105 |
* <strong>Youtube channel link</strong>: https://www.youtube.com/watch?v=TjZNcVG3fDE
|
106 |
+
* <strong>Facebook link</strong>: https://www.facebook.com/AccessPressThemes
|
107 |
|
108 |
|
109 |
|
126 |
|
127 |
[WPAll Club](https://wpall.club/) - A complete WordPress resources club. WordPress tutorials, blogs, curated free and premium themes and plugins, WordPress deals, offers, hosting info and more.
|
128 |
|
129 |
+
[Premium WordPress Themes](https://themeforest.net/user/accesskeys/portfolio) - 6 premium WordPress themes well suited for all sort of websites. Professional, well coded and highly configurable themes for you.
|
130 |
|
131 |
+
[Premium WordPress Plugins](https://codecanyon.net/user/accesskeys/portfolio) - 45+ premium WordPress plugins of many different types. High user ratings, great quality and best sellers in CodeCanyon marketplace.
|
132 |
|
133 |
[AccessPress Themes](https://accesspressthemes.com/) - AccessPress Themes has 50+ beautiful and elegant, fully responsive, multipurpose themes to meet your need for free and commercial basis.
|
134 |
|
164 |
10. Backend Entry Detail
|
165 |
|
166 |
== Changelog ==
|
167 |
+
= 1.4.1 =
|
168 |
+
* Few Code refinement on timezone issues fixed.
|
169 |
+
|
170 |
+
= 1.4.0 =
|
171 |
* Removed use of php session
|
172 |
* Updated few sanitizations
|
173 |
+
* WordPress 5.0 compatibility checked
|
174 |
|
175 |
+
= 1.3.9 =
|
176 |
* Updaed More WordPress Resources tab
|
177 |
|
178 |
+
= 1.3.8 =
|
179 |
* Fixed security bugs reported by Neven Biruski
|
180 |
|
181 |
+
= 1.3.7 =
|
182 |
+
* Fixed security bugs reported by WordFence Security Team and Few plugin users
|
183 |
|
184 |
+
= 1.3.6 =
|
185 |
+
* Added a fallback message for invalid form id in the form edit page
|
186 |
|
187 |
+
= 1.3.5 =
|
188 |
+
* WordPress version 4.8 compatibility check
|
189 |
|
190 |
+
= 1.3.4 =
|
191 |
+
* Fixed found out XSS issues
|
192 |
|
193 |
+
= 1.3.3 =
|
194 |
* Fixed XSS issues on preview page and backend form settings page
|
195 |
+
- Special Thanks to 0xSec Team for reporting the security bugs
|
196 |
|
197 |
+
= 1.3.2 =
|
198 |
* Added documentation link in how to use section
|
199 |
|
200 |
+
= 1.3.1 =
|
201 |
* Provided notes for from name and from email field
|
202 |
* Fixed small layout fix for email settings
|
203 |
|
204 |
+
= 1.3.0 =
|
205 |
+
* Enqueued Font Awesome CSS locally as per WordPress Guidelines
|
206 |
|
207 |
+
= 1.2.9 =
|
208 |
* Revised about section
|
209 |
|
210 |
+
= 1.2.8 =
|
211 |
+
* Added ufb_form_response filter to filter form submission response
|
212 |
|
213 |
+
= 1.2.7 =
|
214 |
* Added ufbl_email_receivers filter for email receivers
|
215 |
|
216 |
= 1.2.6 =
|
217 |
* Removed Unused form builder function
|
218 |
+
|
219 |
+
= 1.2.5 =
|
220 |
* Added More WordPress Resources Link
|
221 |
|
222 |
+
= 1.2.4 =
|
223 |
+
* Added ufbl_time_format filter for time format change
|
224 |
|
225 |
+
= 1.2.3 =
|
226 |
* Added ufbl_form_template_count filter
|
227 |
+
* Updated trasnlation ready text for some missing text
|
228 |
|
229 |
+
= 1.2.2 =
|
230 |
+
* Updated form modified date and form entry submission date to match the WordPress Timezone
|
231 |
|
232 |
+
= 1.2.1 =
|
233 |
* Fixed small bug for stripping slashes from saved values
|
234 |
|
235 |
+
= 1.2.0 =
|
236 |
* Added Edit Form link in preview mode
|
237 |
|
238 |
+
= 1.1.9 =
|
239 |
+
* Added ufbl_mail_header filter
|
240 |
* Fixed small bug regarding incomplete mail subject
|
241 |
* Added ufbl_email_send action after email sending
|
242 |
|
243 |
+
= 1.1.8 =
|
244 |
* Added Swedish Language
|
245 |
|
246 |
+
= 1.1.7 =
|
247 |
* Added note for csv export
|
248 |
+
* Updated pagination layout in backend
|
249 |
|
250 |
+
= 1.1.6 =
|
251 |
+
* Fixed multiple select dropdown issue for template 4
|
252 |
|
253 |
= 1.1.5 =
|
254 |
* Addition of pot file for the translation of a plugin.
|
ultimate-form-builder-lite.php
CHANGED
@@ -1,12 +1,9 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
|
4 |
-
|
5 |
/*
|
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.4.
|
10 |
Author: AccessPress Themes
|
11 |
Author URI: http://accesspressthemes.com
|
12 |
License: GPL2
|
@@ -19,7 +16,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.4.
|
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
|
@@ -131,11 +128,11 @@ if ( !class_exists( 'UFBL_Class' ) ) {
|
|
131 |
function ufbl_menu() {
|
132 |
add_menu_page( __( 'Forms', 'ultimate-form-builder-lite' ), __( 'Forms', 'ultimate-form-builder-lite' ), 'manage_options', UFBL_SLUG, array( $this, 'forms_list' ),'dashicons-welcome-widgets-menus',35.7 );
|
133 |
add_submenu_page( UFBL_SLUG, isset( $_GET['form_id'] ) ? __( 'Edit Form', 'ultimate-form-builder-lite' ) : __( 'All Forms', 'ultimate-form-builder-lite' ), __( 'All Forms', 'ultimate-form-builder-lite' ), 'manage_options', UFBL_SLUG, array( $this, 'forms_list' ) );
|
134 |
-
add_submenu_page( UFBL_SLUG, __( 'New Form', 'ultimate-form-builder-lite' ), __( 'New Form', 'ultimate-form-builder-lite' ), 'manage_options', 'ufbl-new-form', array( $this, 'add_new_form' ) );
|
135 |
add_submenu_page( UFBL_SLUG, __( 'Form Entries', 'ultimate-form-builder-lite' ), __( 'Form Entries', 'ultimate-form-builder-lite' ), 'manage_options', 'ufbl-form-entries', array( $this, 'forms_entries' ) );
|
136 |
add_submenu_page( UFBL_SLUG, __( 'How to use', 'ultimate-form-builder-lite' ), __( 'How to use', 'ultimate-form-builder-lite' ), 'manage_options', 'ufbl-how-to-use', array( $this, 'how_to_use' ) );
|
137 |
add_submenu_page( UFBL_SLUG, __( 'About', 'ultimate-form-builder-lite' ), __( 'About', 'ultimate-form-builder-lite' ), 'manage_options', 'ufbl-about', array( $this, 'about' ) );
|
138 |
-
|
139 |
}
|
140 |
|
141 |
/**
|
@@ -203,7 +200,7 @@ if ( !class_exists( 'UFBL_Class' ) ) {
|
|
203 |
function no_permission() {
|
204 |
die( 'No script kiddies please!' );
|
205 |
}
|
206 |
-
|
207 |
/**
|
208 |
* Add New Form
|
209 |
*/
|
@@ -320,7 +317,7 @@ if ( !class_exists( 'UFBL_Class' ) ) {
|
|
320 |
|
321 |
/**
|
322 |
* Form HTML
|
323 |
-
*
|
324 |
*/
|
325 |
function generate_form( $form_row ) {
|
326 |
$data['form_row'] = $form_row;
|
@@ -403,38 +400,38 @@ if ( !class_exists( 'UFBL_Class' ) ) {
|
|
403 |
die( 'No script kiddies please' );
|
404 |
}
|
405 |
}
|
406 |
-
|
407 |
/**
|
408 |
* Form Preview
|
409 |
*/
|
410 |
function preview_form(){
|
411 |
if(isset($_GET['ufbl_form_preview'],$_GET['ufbl_form_id']) && is_user_logged_in()){
|
412 |
-
|
413 |
$current_user = wp_get_current_user();
|
414 |
if (user_can( $current_user, 'administrator' )) {
|
415 |
// user is an admin
|
416 |
$this->library->load_view('frontend/preview-form');
|
417 |
exit();
|
418 |
}
|
419 |
-
|
420 |
}
|
421 |
}
|
422 |
-
|
423 |
/**
|
424 |
* How to use page
|
425 |
*/
|
426 |
function how_to_use(){
|
427 |
$this->library->load_view('backend/how-to-use');
|
428 |
}
|
429 |
-
|
430 |
/**
|
431 |
* About page
|
432 |
*/
|
433 |
function about(){
|
434 |
$this->library->load_view('backend/about');
|
435 |
}
|
436 |
-
|
437 |
-
|
438 |
}
|
439 |
|
440 |
/**
|
1 |
+
<?php defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
|
|
|
|
|
|
|
2 |
/*
|
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.4.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.4.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
|
128 |
function ufbl_menu() {
|
129 |
add_menu_page( __( 'Forms', 'ultimate-form-builder-lite' ), __( 'Forms', 'ultimate-form-builder-lite' ), 'manage_options', UFBL_SLUG, array( $this, 'forms_list' ),'dashicons-welcome-widgets-menus',35.7 );
|
130 |
add_submenu_page( UFBL_SLUG, isset( $_GET['form_id'] ) ? __( 'Edit Form', 'ultimate-form-builder-lite' ) : __( 'All Forms', 'ultimate-form-builder-lite' ), __( 'All Forms', 'ultimate-form-builder-lite' ), 'manage_options', UFBL_SLUG, array( $this, 'forms_list' ) );
|
131 |
+
add_submenu_page( UFBL_SLUG, __( 'New Form', 'ultimate-form-builder-lite' ), __( 'New Form', 'ultimate-form-builder-lite' ), 'manage_options', 'ufbl-new-form', array( $this, 'add_new_form' ) );
|
132 |
add_submenu_page( UFBL_SLUG, __( 'Form Entries', 'ultimate-form-builder-lite' ), __( 'Form Entries', 'ultimate-form-builder-lite' ), 'manage_options', 'ufbl-form-entries', array( $this, 'forms_entries' ) );
|
133 |
add_submenu_page( UFBL_SLUG, __( 'How to use', 'ultimate-form-builder-lite' ), __( 'How to use', 'ultimate-form-builder-lite' ), 'manage_options', 'ufbl-how-to-use', array( $this, 'how_to_use' ) );
|
134 |
add_submenu_page( UFBL_SLUG, __( 'About', 'ultimate-form-builder-lite' ), __( 'About', 'ultimate-form-builder-lite' ), 'manage_options', 'ufbl-about', array( $this, 'about' ) );
|
135 |
+
|
136 |
}
|
137 |
|
138 |
/**
|
200 |
function no_permission() {
|
201 |
die( 'No script kiddies please!' );
|
202 |
}
|
203 |
+
|
204 |
/**
|
205 |
* Add New Form
|
206 |
*/
|
317 |
|
318 |
/**
|
319 |
* Form HTML
|
320 |
+
*
|
321 |
*/
|
322 |
function generate_form( $form_row ) {
|
323 |
$data['form_row'] = $form_row;
|
400 |
die( 'No script kiddies please' );
|
401 |
}
|
402 |
}
|
403 |
+
|
404 |
/**
|
405 |
* Form Preview
|
406 |
*/
|
407 |
function preview_form(){
|
408 |
if(isset($_GET['ufbl_form_preview'],$_GET['ufbl_form_id']) && is_user_logged_in()){
|
409 |
+
|
410 |
$current_user = wp_get_current_user();
|
411 |
if (user_can( $current_user, 'administrator' )) {
|
412 |
// user is an admin
|
413 |
$this->library->load_view('frontend/preview-form');
|
414 |
exit();
|
415 |
}
|
416 |
+
|
417 |
}
|
418 |
}
|
419 |
+
|
420 |
/**
|
421 |
* How to use page
|
422 |
*/
|
423 |
function how_to_use(){
|
424 |
$this->library->load_view('backend/how-to-use');
|
425 |
}
|
426 |
+
|
427 |
/**
|
428 |
* About page
|
429 |
*/
|
430 |
function about(){
|
431 |
$this->library->load_view('backend/about');
|
432 |
}
|
433 |
+
|
434 |
+
|
435 |
}
|
436 |
|
437 |
/**
|