Contact Form for WordPress – Ultimate Form Builder Lite - Version 1.4.3

Version Description

  • Added Documentation and other informational links to the plugin.
Download this release

Release Info

Developer Access Keys
Plugin Icon 128x128 Contact Form for WordPress – Ultimate Form Builder Lite
Version 1.4.3
Comparing to
See all releases

Code changes from version 1.4.2 to 1.4.3

inc/views/backend/about.php CHANGED
@@ -8,6 +8,27 @@
8
  <p>Ultimate Form Builder Lite is a <strong>FREE WordPress Plugin</strong> to build any kind of HTML 5 forms with various configurable backend fields.You can build unlimted forms each with different settings and restrictions.</p>
9
  <p>You can choose any of the pre designed templates for each form to assign the proper layout.</p>
10
  <p>With simple and easy drag and drop user interface, you can build forms in <strike>Minutes</strike> Seconds.</p>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
  </div>
12
  <div class="ufbl-content-section">
13
  <h4 class="ufbl-content-title">About Author</h4>
8
  <p>Ultimate Form Builder Lite is a <strong>FREE WordPress Plugin</strong> to build any kind of HTML 5 forms with various configurable backend fields.You can build unlimted forms each with different settings and restrictions.</p>
9
  <p>You can choose any of the pre designed templates for each form to assign the proper layout.</p>
10
  <p>With simple and easy drag and drop user interface, you can build forms in <strike>Minutes</strike> Seconds.</p>
11
+
12
+ <p><strong><?php _e('Please visit our product page for more details here:', 'ultimate-form-builder-lite'); ?></strong>
13
+ <br />
14
+ <a href="https://accesspressthemes.com/wordpress-plugins/ultimate-form-builder-lite/" target="_blank">Product Page</a>
15
+ </p>
16
+ <div class="wpmdia-halfseperator"></div>
17
+ <p><strong><?php _e('Please visit our demo page here:', 'ultimate-form-builder-lite'); ?></strong>
18
+ <br />
19
+ <a href="http://demo.accesspressthemes.com/wordpress-plugins/ultimate-form-builder-lite/" target="_blank">Demo</a>
20
+ </p>
21
+ <div class="wpmdia-halfseperator"></div>
22
+ <p><strong><?php _e('Plugin documentation can be found here:', 'ultimate-form-builder-lite'); ?></strong>
23
+ <br />
24
+ <a href="https://accesspressthemes.com/documentation/ultimate-form-builder-lite/" target="_blank">Documentation</a>
25
+ </p>
26
+ <div class="wpmdia-halfseperator"></div>
27
+ <p><strong><?php _e('For premium upgrade, please go here:', 'ultimate-form-builder-lite'); ?></strong>
28
+ <br />
29
+ <a href="https://1.envato.market/c/1302794/275988/4415?u=https%3A%2F%2Fcodecanyon.net%2Fitem%2Fultimate-form-builder%2F14644208" target="_blank" class="wpmm-upgrade-btn" target="_blank">Upgrade To Pro</a>
30
+ </p>
31
+
32
  </div>
33
  <div class="ufbl-content-section">
34
  <h4 class="ufbl-content-title">About Author</h4>
inc/views/backend/upgrade-block.php CHANGED
@@ -2,12 +2,12 @@
2
  <div class="ufbl-upgrade-top"><img src="<?php echo UFBL_IMG_DIR.'/upgrade/upgrade-top.png'?>"/></div>
3
  <div class="ufbl-upgrade-action-wrap">
4
  <a href="http://demo.accesspressthemes.com/wordpress-plugins/ultimate-form-builder/" target="_blank" title="Demo"><img src="<?php echo UFBL_IMG_DIR.'/upgrade/demo-btn.png'?>"/></a>
5
- <a href="http://codecanyon.net/item/ultimate-form-builder/14644208?ref=AccessKeys" target="_blank" title="Upgrade"><img src="<?php echo UFBL_IMG_DIR.'/upgrade/upgrade-btn.png'?>"/></a>
6
  </div>
7
  <div class="ufbl-upgrade-bottom"><img src="<?php echo UFBL_IMG_DIR.'/upgrade/upgrade-bottom.png'?>"/></div>
8
  <div class="ufbl-upgrade-action-wrap">
9
  <a href="http://demo.accesspressthemes.com/wordpress-plugins/ultimate-form-builder/" target="_blank" title="Demo"><img src="<?php echo UFBL_IMG_DIR.'/upgrade/demo-btn.png'?>"/></a>
10
- <a href="http://codecanyon.net/item/ultimate-form-builder/14644208?ref=AccessKeys" target="_blank" title="Upgrade"><img src="<?php echo UFBL_IMG_DIR.'/upgrade/upgrade-btn.png'?>"/></a>
11
  </div>
12
  </div>
13
  <div class="ufbl-clear"></div>
2
  <div class="ufbl-upgrade-top"><img src="<?php echo UFBL_IMG_DIR.'/upgrade/upgrade-top.png'?>"/></div>
3
  <div class="ufbl-upgrade-action-wrap">
4
  <a href="http://demo.accesspressthemes.com/wordpress-plugins/ultimate-form-builder/" target="_blank" title="Demo"><img src="<?php echo UFBL_IMG_DIR.'/upgrade/demo-btn.png'?>"/></a>
5
+ <a href="https://1.envato.market/c/1302794/275988/4415?u=https%3A%2F%2Fcodecanyon.net%2Fitem%2Fultimate-form-builder%2F14644208" target="_blank" title="Upgrade"><img src="<?php echo UFBL_IMG_DIR.'/upgrade/upgrade-btn.png'?>"/></a>
6
  </div>
7
  <div class="ufbl-upgrade-bottom"><img src="<?php echo UFBL_IMG_DIR.'/upgrade/upgrade-bottom.png'?>"/></div>
8
  <div class="ufbl-upgrade-action-wrap">
9
  <a href="http://demo.accesspressthemes.com/wordpress-plugins/ultimate-form-builder/" target="_blank" title="Demo"><img src="<?php echo UFBL_IMG_DIR.'/upgrade/demo-btn.png'?>"/></a>
10
+ <a href="https://1.envato.market/c/1302794/275988/4415?u=https%3A%2F%2Fcodecanyon.net%2Fitem%2Fultimate-form-builder%2F14644208" target="_blank" title="Upgrade"><img src="<?php echo UFBL_IMG_DIR.'/upgrade/upgrade-btn.png'?>"/></a>
11
  </div>
12
  </div>
13
  <div class="ufbl-clear"></div>
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.0
7
- Stable tag: 1.4.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -90,7 +90,7 @@ Contact Forms | Subscription Forms | Enquiry/quote Forms - build any type of unl
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
@@ -164,6 +164,9 @@ Once you install the plugin , you can check some general documentation about how
164
  10. Backend Entry Detail
165
 
166
  == Changelog ==
 
 
 
167
  = 1.4.2 =
168
  * Plugin compatibility check with Elementor and site origin plugin
169
  * Issue on Column while implementing with elementor plugin using shortcode fixed.
4
  Donate link: http://accesspressthemes.com/donation/
5
  Requires at least: 4.5
6
  Tested up to: 5.0
7
+ Stable tag: 1.4.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
90
 
91
 
92
  = Premium Upgrade =
93
+ * For premium upgrade, please go [here](https://1.envato.market/c/1302794/275988/4415?u=https%3A%2F%2Fcodecanyon.net%2Fitem%2Fultimate-form-builder%2F14644208)
94
 
95
  = Available Language =
96
  * English
164
  10. Backend Entry Detail
165
 
166
  == Changelog ==
167
+ = 1.4.3 =
168
+ * Added Documentation and other informational links to the plugin.
169
+
170
  = 1.4.2 =
171
  * Plugin compatibility check with Elementor and site origin plugin
172
  * Issue on Column while implementing with elementor plugin using shortcode fixed.
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.4.2
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.4.2' ); //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
@@ -110,8 +110,48 @@ if ( !class_exists( 'UFBL_Class' ) ) {
110
  * Form Preview
111
  */
112
  add_action( 'template_redirect', array( $this, 'preview_form' ) );
 
 
 
113
  }
114
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
115
  /**
116
  * Tasks to be done in init hook
117
  * Loads plugin for translation
@@ -133,6 +173,9 @@ if ( !class_exists( 'UFBL_Class' ) ) {
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
  /**
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.3
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.3' ); //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
110
  * Form Preview
111
  */
112
  add_action( 'template_redirect', array( $this, 'preview_form' ) );
113
+ add_action( 'admin_init', array( $this, 'redirect_to_site' ), 1 );
114
+ add_filter( 'plugin_row_meta', array( $this, 'plugin_row_meta' ), 10, 2 );
115
+ add_filter( 'admin_footer_text', array( $this, 'admin_footer_text' ) );
116
  }
117
 
118
+ function admin_footer_text( $text ){
119
+ if ( isset( $_GET[ 'page' ] ) && $_GET[ 'page' ] == 'ufbl' || $_GET['page'] == 'ufbl-new-form'
120
+ || $_GET['page'] == 'ufbl-new-form' || $_GET['page'] =='ufbl-form-entries'
121
+ || $_GET['page'] =='ufbl-how-to-use' || $_GET['page'] =='ufbl-about') {
122
+ $link = 'https://wordpress.org/support/plugin/ultimate-form-builder-lite/reviews/#new-post';
123
+ $pro_link = 'https://1.envato.market/c/1302794/275988/4415?u=https%3A%2F%2Fcodecanyon.net%2Fitem%2Fultimate-form-builder%2F14644208';
124
+ $text = 'Enjoyed Ultimate Form Builder Lite? <a href="' . $link . '" target="_blank">Please leave us a ★★★★★ rating</a> We really appreciate your support! | Try premium version of <a href="' . $pro_link . '" target="_blank">Ultimate Form Builder</a> - more features, more power!';
125
+ return $text;
126
+ } else {
127
+ return $text;
128
+ }
129
+ }
130
+
131
+ function redirect_to_site(){
132
+ if ( isset( $_GET[ 'page' ] ) && $_GET[ 'page' ] == 'ufbl-doclinks' ) {
133
+ wp_redirect( 'https://accesspressthemes.com/documentation/ultimate-form-builder-lite/' );
134
+ exit();
135
+ }
136
+ if ( isset( $_GET[ 'page' ] ) && $_GET[ 'page' ] == 'ufbl-premium' ) {
137
+ wp_redirect( 'https://1.envato.market/c/1302794/275988/4415?u=https%3A%2F%2Fcodecanyon.net%2Fitem%2Fultimate-form-builder%2F14644208' );
138
+ exit();
139
+ }
140
+ }
141
+
142
+ function plugin_row_meta( $links, $file ){
143
+ if ( strpos( $file, 'ultimate-form-builder-lite.php' ) !== false ) {
144
+ $new_links = array(
145
+ 'demo' => '<a href="http://demo.accesspressthemes.com/wordpress-plugins/ultimate-form-builder-lite" target="_blank"><span class="dashicons dashicons-welcome-view-site"></span>Live Demo</a>',
146
+ 'doc' => '<a href="https://accesspressthemes.com/documentation/ultimate-form-builder-lite/" target="_blank"><span class="dashicons dashicons-media-document"></span>Documentation</a>',
147
+ 'support' => '<a href="http://accesspressthemes.com/support" target="_blank"><span class="dashicons dashicons-admin-users"></span>Support</a>',
148
+ 'pro' => '<a href="https://1.envato.market/c/1302794/275988/4415?u=https%3A%2F%2Fcodecanyon.net%2Fitem%2Fultimate-form-builder%2F14644208" target="_blank"><span class="dashicons dashicons-cart"></span>Premium version</a>'
149
+ );
150
+ $links = array_merge( $links, $new_links );
151
+ }
152
+ return $links;
153
+ }
154
+
155
  /**
156
  * Tasks to be done in init hook
157
  * Loads plugin for translation
173
  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' ) );
174
  add_submenu_page( UFBL_SLUG, __( 'About', 'ultimate-form-builder-lite' ), __( 'About', 'ultimate-form-builder-lite' ), 'manage_options', 'ufbl-about', array( $this, 'about' ) );
175
 
176
+ add_submenu_page( UFBL_SLUG, __( 'Documentation','ultimate-form-builder-lite' ), __( 'Documentation', 'ultimate-form-builder-lite' ), 'manage_options', 'ufbl-doclinks', '__return_false', null, 9 );
177
+ add_submenu_page( UFBL_SLUG, __( 'Check Premium Version', 'ultimate-form-builder-lite' ), __( 'Check Premium Version', 'ultimate-form-builder-lite' ), 'manage_options', 'ufbl-premium', '__return_false', null, 9 );
178
+
179
  }
180
 
181
  /**