Version Description
Download this release
Release Info
Developer | mmuro |
Plugin | Visual Form Builder |
Version | 2.9.7 |
Comparing to | |
See all releases |
Code changes from version 2.9.6 to 2.9.7
- admin/class-fields.php +2 -1
- public/class-form-display.php +9 -4
- readme.txt +7 -1
- visual-form-builder.php +2 -2
admin/class-fields.php
CHANGED
@@ -405,7 +405,8 @@ class Visual_Form_Builder_Admin_Fields {
|
|
405 |
<br />
|
406 |
<select name="field_default-<?php echo $field->field_id; ?>" class="widefat" id="edit-form-item-default-<?php echo $field->field_id; ?>">
|
407 |
<?php
|
408 |
-
|
|
|
409 |
echo '<option value="' . $country . '" ' . selected( $field->field_default, $country, 0 ) . '>' . $country . '</option>';
|
410 |
}
|
411 |
?>
|
405 |
<br />
|
406 |
<select name="field_default-<?php echo $field->field_id; ?>" class="widefat" id="edit-form-item-default-<?php echo $field->field_id; ?>">
|
407 |
<?php
|
408 |
+
$countries = include( VFB_WP_PLUGIN_DIR . '/inc/countries.php' );
|
409 |
+
foreach ( $countries as $country ) {
|
410 |
echo '<option value="' . $country . '" ' . selected( $field->field_default, $country, 0 ) . '>' . $country . '</option>';
|
411 |
}
|
412 |
?>
|
public/class-form-display.php
CHANGED
@@ -534,6 +534,12 @@ class Visual_Form_Builder_Form_Display {
|
|
534 |
break;
|
535 |
|
536 |
case 'address' :
|
|
|
|
|
|
|
|
|
|
|
|
|
537 |
$address = '';
|
538 |
|
539 |
$address_parts = array(
|
@@ -563,8 +569,7 @@ class Visual_Form_Builder_Form_Display {
|
|
563 |
)
|
564 |
);
|
565 |
|
566 |
-
$address_parts
|
567 |
-
|
568 |
$label_placement = apply_filters( 'vfb_address_labels_placement', $settings_address_labels, $form_id );
|
569 |
|
570 |
$placement_bottom = ( $label_placement ) ? '<label for="%2$s-%4$s">%5$s</label>' : '';
|
@@ -815,7 +820,7 @@ class Visual_Form_Builder_Form_Display {
|
|
815 |
* @param [type] $form_id [description]
|
816 |
* @return [type] [description]
|
817 |
*/
|
818 |
-
public function get_form( $form_id ) {
|
819 |
global $wpdb;
|
820 |
|
821 |
$order = sanitize_sql_orderby( 'form_id DESC' );
|
@@ -832,7 +837,7 @@ class Visual_Form_Builder_Form_Display {
|
|
832 |
* @param [type] $form_id [description]
|
833 |
* @return [type] [description]
|
834 |
*/
|
835 |
-
public function get_fields( $form_id ) {
|
836 |
global $wpdb;
|
837 |
|
838 |
$order_fields = sanitize_sql_orderby( 'field_sequence ASC' );
|
534 |
break;
|
535 |
|
536 |
case 'address' :
|
537 |
+
// Get global settings
|
538 |
+
$vfb_settings = get_option( 'vfb-settings' );
|
539 |
+
|
540 |
+
// Settings - Place Address labels above fields
|
541 |
+
$settings_address_labels = isset( $vfb_settings['address-labels'] ) ? false : true;
|
542 |
+
|
543 |
$address = '';
|
544 |
|
545 |
$address_parts = array(
|
569 |
)
|
570 |
);
|
571 |
|
572 |
+
$address_parts = apply_filters( 'vfb_address_labels', $address_parts, $form_id );
|
|
|
573 |
$label_placement = apply_filters( 'vfb_address_labels_placement', $settings_address_labels, $form_id );
|
574 |
|
575 |
$placement_bottom = ( $label_placement ) ? '<label for="%2$s-%4$s">%5$s</label>' : '';
|
820 |
* @param [type] $form_id [description]
|
821 |
* @return [type] [description]
|
822 |
*/
|
823 |
+
public static function get_form( $form_id ) {
|
824 |
global $wpdb;
|
825 |
|
826 |
$order = sanitize_sql_orderby( 'form_id DESC' );
|
837 |
* @param [type] $form_id [description]
|
838 |
* @return [type] [description]
|
839 |
*/
|
840 |
+
public static function get_fields( $form_id ) {
|
841 |
global $wpdb;
|
842 |
|
843 |
$order_fields = sanitize_sql_orderby( 'field_sequence ASC' );
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=G87A9
|
|
4 |
Tags: form, forms, contact form, contact forms, form, forms, form to email, email form, email, input, validation, jquery, shortcode, form builder, contact form builder, form manager, form creator
|
5 |
Requires at least: 4.3
|
6 |
Tested up to: 4.9.4
|
7 |
-
Stable tag: 2.9.
|
8 |
License: GPLv2 or later
|
9 |
|
10 |
Build beautiful, fully functional contact forms in only a few minutes without writing PHP, CSS, or HTML.
|
@@ -230,6 +230,12 @@ function my_scripts_method() {
|
|
230 |
|
231 |
== Changelog ==
|
232 |
|
|
|
|
|
|
|
|
|
|
|
|
|
233 |
**Version 2.9.6 - Feb 12, 2018**
|
234 |
|
235 |
* Fix bug with export
|
4 |
Tags: form, forms, contact form, contact forms, form, forms, form to email, email form, email, input, validation, jquery, shortcode, form builder, contact form builder, form manager, form creator
|
5 |
Requires at least: 4.3
|
6 |
Tested up to: 4.9.4
|
7 |
+
Stable tag: 2.9.7
|
8 |
License: GPLv2 or later
|
9 |
|
10 |
Build beautiful, fully functional contact forms in only a few minutes without writing PHP, CSS, or HTML.
|
230 |
|
231 |
== Changelog ==
|
232 |
|
233 |
+
**Version 2.9.7 - Mar 08, 2018**
|
234 |
+
|
235 |
+
* Fix bug with Default Country not able to be selected
|
236 |
+
* Fix bug with Address label position setting
|
237 |
+
* Update display class to insure methods are declared as static
|
238 |
+
|
239 |
**Version 2.9.6 - Feb 12, 2018**
|
240 |
|
241 |
* Fix bug with export
|
visual-form-builder.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Visual Form Builder
|
4 |
Plugin URI: https://wordpress.org/plugins/visual-form-builder/
|
5 |
Description: Dynamically build forms using a simple interface. Forms include jQuery validation, a basic logic-based verification system, and entry tracking.
|
6 |
-
Version: 2.9.
|
7 |
Author: Matthew Muro
|
8 |
Author URI: http://vfbpro.com
|
9 |
Text Domain: visual-form-builder
|
@@ -26,7 +26,7 @@ class Visual_Form_Builder {
|
|
26 |
* The current version of the plugin.
|
27 |
* @var [type]
|
28 |
*/
|
29 |
-
protected $version = '2.9.
|
30 |
|
31 |
/**
|
32 |
* The current DB version. Used if we need to update the DB later.
|
3 |
Plugin Name: Visual Form Builder
|
4 |
Plugin URI: https://wordpress.org/plugins/visual-form-builder/
|
5 |
Description: Dynamically build forms using a simple interface. Forms include jQuery validation, a basic logic-based verification system, and entry tracking.
|
6 |
+
Version: 2.9.7
|
7 |
Author: Matthew Muro
|
8 |
Author URI: http://vfbpro.com
|
9 |
Text Domain: visual-form-builder
|
26 |
* The current version of the plugin.
|
27 |
* @var [type]
|
28 |
*/
|
29 |
+
protected $version = '2.9.7';
|
30 |
|
31 |
/**
|
32 |
* The current DB version. Used if we need to update the DB later.
|