Skip to content

Commit

Permalink
v4.6.7
Browse files Browse the repository at this point in the history
Fix: Radio buttons not responsding to predefined `$_GET` or `$_POST` parameters
Fix: When doing custom POST and "Enable custom parameter string for POST method" is enabled file URL's where not parsed as data
  • Loading branch information
RensTillmann committed May 17, 2019
1 parent 6e90c18 commit 8ac9d6b
Show file tree
Hide file tree
Showing 9 changed files with 94 additions and 36 deletions.
4 changes: 3 additions & 1 deletion docs/changelog.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
### May 15, 2019 - Version 4.6.6
### May 16, 2019 - Version 4.6.7
- Added: A custom Ajax handler for faster Ajax requests (significant speed improvement for building/editing forms)
- Added: Translation feature (allows you to translate your form into multiple languages, this also includes translating specific form settings)
*when in translation mode, you won't be able to delete and change the layout of the form, just the strings of each element and the form settings*
- Fix: Radio buttons not responsding to predefined `$_GET` or `$_POST` parameters
- Fix: When doing custom POST and "Enable custom parameter string for POST method" is enabled file URL's where not parsed as data
- Fix: Bug in Ajax handler, make sure to not load external unrequired plugins, because they might depend on functions that we didn't load
- Fix: Compatibility for Ajax handler with Multisites
- Fix: reCAPTCHA v2 bug
Expand Down
44 changes: 31 additions & 13 deletions src/assets/css/frontend/elements.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/assets/css/frontend/elements.css.map

Large diffs are not rendered by default.

34 changes: 23 additions & 11 deletions src/assets/css/frontend/elements.sass
Original file line number Diff line number Diff line change
Expand Up @@ -734,17 +734,6 @@ h1.super-thanks-title
to
+transform(rotate(360deg))


\::-webkit-input-placeholder
color: #000

\:-moz-placeholder, ::-moz-placeholder
color: #000
opacity: 1

\:-ms-input-placeholder
color: #000

.super-form
*
+boxSizing(border-box)
Expand All @@ -765,6 +754,29 @@ h1.super-thanks-title
> *
visibility: visible
background: none
\::-webkit-input-placeholder
color: #000
\:-moz-placeholder, ::-moz-placeholder
color: #000
opacity: 1
\:-ms-input-placeholder
color: #000


@media screen and (-webkit-min-device-pixel-ratio: 0)
.super-form.super-window-first-responsiveness ::-webkit-input-placeholder,
.super-form.super-window-second-responsiveness ::-webkit-input-placeholder
font-size: 16px !important
.super-form.super-window-first-responsiveness :-moz-placeholder,
.super-form.super-window-second-responsiveness :-moz-placeholder
font-size: 16px !important
.super-form.super-window-first-responsiveness ::-moz-placeholder,
.super-form.super-window-second-responsiveness ::-moz-placeholder
font-size: 16px !important
.super-form.super-window-first-responsiveness :-ms-input-placeholder,
.super-form.super-window-second-responsiveness :-ms-input-placeholder
font-size: 16px !important


.super-field
width: 100%
Expand Down
4 changes: 3 additions & 1 deletion src/docs/changelog.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
### May 15, 2019 - Version 4.6.6
### May 16, 2019 - Version 4.6.7
- Added: A custom Ajax handler for faster Ajax requests (significant speed improvement for building/editing forms)
- Added: Translation feature (allows you to translate your form into multiple languages, this also includes translating specific form settings)
*when in translation mode, you won't be able to delete and change the layout of the form, just the strings of each element and the form settings*
- Fix: Radio buttons not responsding to predefined `$_GET` or `$_POST` parameters
- Fix: When doing custom POST and "Enable custom parameter string for POST method" is enabled file URL's where not parsed as data
- Fix: Bug in Ajax handler, make sure to not load external unrequired plugins, because they might depend on functions that we didn't load
- Fix: Compatibility for Ajax handler with Multisites
- Fix: reCAPTCHA v2 bug
Expand Down
8 changes: 5 additions & 3 deletions src/includes/class-ajax.php
Original file line number Diff line number Diff line change
Expand Up @@ -3088,17 +3088,19 @@ public static function send_email( $settings=null ) {
// When left empty we will send all form data
foreach($data as $k => $v){
if( $v['type']=='files' ) {
$files_value = '';
$files = array();
if( ( !isset( $v['files'] ) ) || ( count( $v['files'] )==0 ) ) {
$v['value'] = '';
}else{
$v['value'] = '-';
foreach( $v['files'] as $key => $value ) {
$v['value'] = $value['url'];
$files[] = $value['url'];
}
}
$parameters[$k] = $files;
}else{
$parameters[$v['name']] = $v['value'];
}
$parameters[$v['name']] = $v['value'];
}
}else{
// If not empty only send specific fields
Expand Down
5 changes: 4 additions & 1 deletion src/includes/class-shortcodes.php
Original file line number Diff line number Diff line change
Expand Up @@ -2204,7 +2204,10 @@ public static function text( $tag, $atts, $inner, $shortcodes=null, $settings=nu
if( $atts['enable_keywords']=='true' ) {
$result .= ' super-keyword';
}
$result .= '" type="text"';

// @since 4.7.0 - field types
if( !isset( $atts['type'] ) ) $atts['type'] = 'text';
$result .= '" type="' . $atts['type'] . '"';
if( $atts['enable_keywords']=='true' ) {
$result .= ' data-keyword-max="' . $atts['keyword_max'] . '" data-split-method="' . $atts['keyword_split_method'] . '"';
}
Expand Down
25 changes: 22 additions & 3 deletions src/includes/shortcodes/form-elements.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,9 @@
'name' => __( 'email', 'super-forms' ),
'email' => __( 'Email address:', 'super-forms' ),
'placeholder' => __( 'Your Email Address', 'super-forms' ),
'type' => 'email',
'validation' => 'email',
'icon' => 'envelope;far',
'icon' => 'envelope;far'
)
)
),
Expand Down Expand Up @@ -184,7 +185,7 @@
'placeholder' => 'Zipcode',
'validation' => 'empty',
'minlength' => '4',
'icon' => 'map-marker',
'icon' => 'map-marker'
)
)
),
Expand Down Expand Up @@ -273,8 +274,24 @@
'desc' => __( 'Set a default value for this field. {post_id} and {post_title} can be used (leave blank for none)', 'super-forms' ),
'i18n' => true
),
'tooltip' => $tooltip,
'type' => array(
'name' => __( 'Field type', 'super-forms' ),
'label' => __( 'Choose an appropriate type for your field. Please note that this setting will affect the keyboard layout on mobile devices, choose wisely!', 'super-forms' ),
'type' => 'select',
'values' => array(
'text' => __( '[text] normal text field (default)', 'super-forms' ),
'email' => __( '[email] for entering email addresses', 'super-forms' ),
'tel' => __( '[tel] for entering phonenumbers', 'super-forms' ),
'url' => __( '[url] for entering URL\'s', 'super-forms' ),
'color' => __( '[color] for choosing HEX colors (or use the native Colorpicker element)', 'super-forms' ),
'date' => __( '[date] for choosing dates (or use the native Date element)', 'super-forms' ),
'datetime-local' => __( '[datetime-local] for choosing date + time', 'super-forms' ),
'month' => __( '[month] for choosing months', 'super-forms' ),
'time' => __( '[time] for choosing time', 'super-forms' )
),
),
'validation' => $special_validations,
'tooltip' => $tooltip,
'custom_regex' => $custom_regex,
'conditional_validation' => $conditional_validation,
'conditional_validation_value' => $conditional_validation_value,
Expand Down Expand Up @@ -2206,6 +2223,7 @@
'placeholder' => __( 'Your Phonenumber', 'super-forms' ),
'validation' => 'phone',
'icon' => 'phone',
'type' => 'tel'
)
)
),
Expand All @@ -2224,6 +2242,7 @@
'placeholder' => __( 'http://', 'super-forms' ),
'validation' => 'website',
'icon' => 'link',
'type' => 'url'
)
)
),
Expand Down
4 changes: 2 additions & 2 deletions src/super-forms.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* Plugin Name: Super Forms - Drag & Drop Form Builder
* Plugin URI: http://codecanyon.net/user/feeling4design
* Description: Build forms anywhere on your website with ease.
* Version: 4.6.6
* Version: 4.6.7
* Author: feeling4design
* Author URI: http://codecanyon.net/user/feeling4design
* Text Domain: super-forms
Expand All @@ -41,7 +41,7 @@ final class SUPER_Forms {
*
* @since 1.0.0
*/
public $version = '4.6.6';
public $version = '4.6.7';
public $slug = 'super-forms';

/**
Expand Down

0 comments on commit 8ac9d6b

Please sign in to comment.