Form builder to get in touch with visitors, grow your email list and collect payments — Happyforms - Version 1.7.6

Version Description

  • Bugfix: Legal part was throwing a notice when there was a part before and after it.
  • Bugfix: Part padding set to Narrow caused no gutter between parts.
  • Bugfix: Long Text part kept submit button disabled even when value was valid.
  • Bugfix: Long Text part with title set to Display as placeholder was not collapsing label correctly after filling the value.
  • Bugfix: Remove unneeded editor.js dependency in Long Text part.
Download this release

Release Info

Developer thethemefoundry
Plugin Icon 128x128 Form builder to get in touch with visitors, grow your email list and collect payments — Happyforms
Version 1.7.6
Comparing to
See all releases

Code changes from version 1.7.5 to 1.7.6

happyforms.php CHANGED
@@ -5,7 +5,7 @@
5
  * Plugin URI: https://happyforms.me
6
  * Description: Your friendly drag and drop contact form builder for creating contact forms, lead generation forms, feedback forms, quote forms, survey forms and more!
7
  * Author: The Theme Foundry
8
- * Version: 1.7.5
9
  * Author URI: https://thethemefoundry.com
10
  * Upgrade URI: https://thethemefoundry.com
11
  */
@@ -13,7 +13,7 @@
13
  /**
14
  * The current version of the plugin.
15
  */
16
- define( 'HAPPYFORMS_VERSION', '1.7.5' );
17
 
18
  if ( ! function_exists( 'happyforms_plugin_file' ) ):
19
  /**
5
  * Plugin URI: https://happyforms.me
6
  * Description: Your friendly drag and drop contact form builder for creating contact forms, lead generation forms, feedback forms, quote forms, survey forms and more!
7
  * Author: The Theme Foundry
8
+ * Version: 1.7.6
9
  * Author URI: https://thethemefoundry.com
10
  * Upgrade URI: https://thethemefoundry.com
11
  */
13
  /**
14
  * The current version of the plugin.
15
  */
16
+ define( 'HAPPYFORMS_VERSION', '1.7.6' );
17
 
18
  if ( ! function_exists( 'happyforms_plugin_file' ) ):
19
  /**
inc/core/assets/css/layout.css CHANGED
@@ -1427,7 +1427,7 @@ form .happyforms-flex>.happyforms-message-notices .happyforms-message-notice a {
1427
 
1428
  .happyforms-form--part-outer-padding-narrow .happyforms-form__part {
1429
  margin-bottom: 5px;
1430
- padding: 0;
1431
  }
1432
 
1433
  .happyforms-form--part-outer-padding-narrow .happyforms-part__select-wrap {
@@ -1448,7 +1448,7 @@ form .happyforms-flex>.happyforms-message-notices .happyforms-message-notice a {
1448
  }
1449
 
1450
  .happyforms-form--part-outer-padding-wide .happyforms-form__part {
1451
- padding: 20px 0;
1452
  }
1453
 
1454
  .happyforms-form--part-outer-padding-wide .happyforms-part .happyforms-part-option {
1427
 
1428
  .happyforms-form--part-outer-padding-narrow .happyforms-form__part {
1429
  margin-bottom: 5px;
1430
+ padding: 0 0.5%;
1431
  }
1432
 
1433
  .happyforms-form--part-outer-padding-narrow .happyforms-part__select-wrap {
1448
  }
1449
 
1450
  .happyforms-form--part-outer-padding-wide .happyforms-form__part {
1451
+ padding: 20px 3%;
1452
  }
1453
 
1454
  .happyforms-form--part-outer-padding-wide .happyforms-part .happyforms-part-option {
inc/core/assets/js/frontend/long-text.js CHANGED
@@ -8,6 +8,10 @@
8
  this.$input = $( 'textarea', this.$el );
9
  this.$counter = $( '.happyforms-part__char-counter span', this.$el );
10
 
 
 
 
 
11
  this.$el.on( 'keyup', this.refreshCounter.bind( this ) );
12
  this.refreshCounter();
13
  },
8
  this.$input = $( 'textarea', this.$el );
9
  this.$counter = $( '.happyforms-part__char-counter span', this.$el );
10
 
11
+ this.$input.on( 'blur', this.onBlur.bind( this ) );
12
+ this.$input.on( 'keyup', this.triggerChange.bind( this ) );
13
+ this.$input.on( 'change', this.triggerChange.bind( this ) );
14
+
15
  this.$el.on( 'keyup', this.refreshCounter.bind( this ) );
16
  this.refreshCounter();
17
  },
inc/core/classes/parts/class-part-legal.php CHANGED
@@ -152,21 +152,18 @@ class HappyForms_Part_Legal extends HappyForms_Form_Part {
152
 
153
  public function html_part_class( $class, $part, $form ) {
154
  if ( $this->type === $part['type'] ) {
155
- $part_index = array_search( $part['id'], wp_list_pluck( $form['parts'], 'id' ) );
156
-
157
- if ( $part_index ) {
158
- if ( isset( $form['parts'][$part_index-1] ) ) {
159
- $previous_part = $form['parts'][$part_index-1];
160
- if ( 'left' === $previous_part['label_placement'] && 'full' === $previous_part['width'] ) {
161
- $class[] = 'happyforms-part-legal--align-right';
162
- }
163
  }
 
164
 
165
- if ( isset( $form['parts'][$part_index+1] ) ) {
166
- $next_part = $form['parts'][$parts_index+1];
167
- if ( 'left' === $next_part['label_placement'] && 'full' === $next_part['width'] ) {
168
- $class[] = 'happyforms-part-legal--align-right';
169
- }
170
  }
171
  }
172
  }
152
 
153
  public function html_part_class( $class, $part, $form ) {
154
  if ( $this->type === $part['type'] ) {
155
+ if ( happyforms_get_previous_part( $part, $form ) ) {
156
+ $previous_part = happyforms_get_previous_part( $part, $form );
157
+ if ( 'left' === $previous_part['label_placement'] && 'full' === $previous_part['width'] ) {
158
+ $class[] = 'happyforms-part-legal--align-right';
 
 
 
 
159
  }
160
+ }
161
 
162
+ if ( happyforms_get_next_part( $part, $form ) ) {
163
+ $next_part = happyforms_get_next_part( $part, $form );
164
+
165
+ if ( 'left' === $next_part['label_placement'] && 'full' === $next_part['width'] ) {
166
+ $class[] = 'happyforms-part-legal--align-right';
167
  }
168
  }
169
  }
inc/core/classes/parts/class-part-multi-line-text.php CHANGED
@@ -235,7 +235,7 @@ class HappyForms_Part_MultiLineText extends HappyForms_Form_Part {
235
  wp_register_script(
236
  'happyforms-part-long-text',
237
  happyforms_get_plugin_url() . 'inc/core/assets/js/frontend/long-text.js',
238
- array( 'editor' ), HAPPYFORMS_VERSION, true
239
  );
240
 
241
  $deps[] = 'happyforms-part-long-text';
235
  wp_register_script(
236
  'happyforms-part-long-text',
237
  happyforms_get_plugin_url() . 'inc/core/assets/js/frontend/long-text.js',
238
+ array(), HAPPYFORMS_VERSION, true
239
  );
240
 
241
  $deps[] = 'happyforms-part-long-text';
languages/happyforms.pot CHANGED
@@ -2,9 +2,9 @@
2
  # This file is distributed under the same license as the HappyForms package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: HappyForms 1.7.5\n"
6
  "Report-Msgid-Bugs-To: https://thethemefoundry.com/support/\n"
7
- "POT-Creation-Date: 2019-03-27 13:53:52+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
@@ -1387,13 +1387,13 @@ msgstr ""
1387
  msgid "For paragraph text fields."
1388
  msgstr ""
1389
 
1390
- #: inc/core/classes/parts/class-part-multi-line-text.php:161
1391
- #: inc/core/classes/parts/class-part-rich-text.php:205
1392
  msgid "Value exceeds character limit."
1393
  msgstr ""
1394
 
1395
- #: inc/core/classes/parts/class-part-multi-line-text.php:212
1396
- #: inc/core/classes/parts/class-part-rich-text.php:252
1397
  msgid "characters"
1398
  msgstr ""
1399
 
2
  # This file is distributed under the same license as the HappyForms package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: HappyForms 1.7.6\n"
6
  "Report-Msgid-Bugs-To: https://thethemefoundry.com/support/\n"
7
+ "POT-Creation-Date: 2019-03-30 10:56:35+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
1387
  msgid "For paragraph text fields."
1388
  msgstr ""
1389
 
1390
+ #: inc/core/classes/parts/class-part-multi-line-text.php:162
1391
+ #: inc/core/classes/parts/class-part-rich-text.php:206
1392
  msgid "Value exceeds character limit."
1393
  msgstr ""
1394
 
1395
+ #: inc/core/classes/parts/class-part-multi-line-text.php:214
1396
+ #: inc/core/classes/parts/class-part-rich-text.php:254
1397
  msgid "characters"
1398
  msgstr ""
1399
 
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: contact, contact form, email, feedback form, form, form builder, custom fo
5
  Requires at least: 4.8
6
  Tested up to: 5.1
7
  Requires PHP: 5.3
8
- Stable tag: 1.7.5
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -99,6 +99,13 @@ Yep! HappyForms free isn't going anywhere but for those looking for even more po
99
 
100
  == Changelog ==
101
 
 
 
 
 
 
 
 
102
  = 1.7.5 =
103
  * New feature: Realtime character counter for Long Text and Text Editor parts.
104
  * New feature: New styles and style controls for form notices.
@@ -445,6 +452,9 @@ Yep! HappyForms free isn't going anywhere but for those looking for even more po
445
 
446
  == Upgrade Notice ==
447
 
 
 
 
448
  = 1.7.5 =
449
  * Improved styles, character counter for Long Text and Text Editor parts, minor improvements and bugfixes.
450
 
5
  Requires at least: 4.8
6
  Tested up to: 5.1
7
  Requires PHP: 5.3
8
+ Stable tag: 1.7.6
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
99
 
100
  == Changelog ==
101
 
102
+ = 1.7.6 =
103
+ * Bugfix: Legal part was throwing a notice when there was a part before and after it.
104
+ * Bugfix: Part padding set to Narrow caused no gutter between parts.
105
+ * Bugfix: Long Text part kept submit button disabled even when value was valid.
106
+ * Bugfix: Long Text part with title set to Display as placeholder was not collapsing label correctly after filling the value.
107
+ * Bugfix: Remove unneeded editor.js dependency in Long Text part.
108
+
109
  = 1.7.5 =
110
  * New feature: Realtime character counter for Long Text and Text Editor parts.
111
  * New feature: New styles and style controls for form notices.
452
 
453
  == Upgrade Notice ==
454
 
455
+ = 1.7.6 =
456
+ * Bug fixes.
457
+
458
  = 1.7.5 =
459
  * Improved styles, character counter for Long Text and Text Editor parts, minor improvements and bugfixes.
460