| @@ -73,9 +73,9 @@ | ||
| 73 | 73 | ), |
| 74 | 74 | $defaults |
| 75 | 75 | ); |
| 76 | 76 | } |
| 77 | - } | |
| 77 | + }//end foreach | |
| 78 | 78 | } |
| 79 | 79 | |
| 80 | 80 | /** |
| 81 | 81 | * Gets default sub field. |
| @@ -112,9 +112,10 @@ | ||
| 112 | 112 | continue; |
| 113 | 113 | } |
| 114 | 114 | |
| 115 | 115 | foreach ( $sub_field['options'] as $option ) { |
| 116 | - if ( 'default_value' === $option ) { // We parse default value from field column. | |
| 116 | + if ( 'default_value' === $option ) { | |
| 117 | + // We parse default value from field column. | |
| 117 | 118 | continue; |
| 118 | 119 | } |
| 119 | 120 | |
| 120 | 121 | if ( is_string( $option ) ) { |
| @@ -181,9 +182,10 @@ | ||
| 181 | 182 | |
| 182 | 183 | return $default_value; |
| 183 | 184 | } |
| 184 | 185 | |
| 185 | - return json_decode( $default_value, true ); // We store default value as JSON string in db. | |
| 186 | + // We store default value as JSON string in db. | |
| 187 | + return json_decode( $default_value, true ); | |
| 186 | 188 | } |
| 187 | 189 | |
| 188 | 190 | /** |
| 189 | 191 | * Gets labels for built-in options of fields or sub fields. |
| @@ -206,9 +208,10 @@ | ||
| 206 | 208 | protected function field_settings_for_type() { |
| 207 | 209 | $settings = array( |
| 208 | 210 | 'description' => false, |
| 209 | 211 | 'default' => false, |
| 210 | - 'clear_on_focus' => false, // Don't use the regular placeholder option. | |
| 212 | + // Don't use the regular placeholder option. | |
| 213 | + 'clear_on_focus' => false, | |
| 211 | 214 | 'logic' => true, |
| 212 | 215 | 'visibility' => true, |
| 213 | 216 | ); |
| 214 | 217 | |
| @@ -374,9 +377,10 @@ | ||
| 374 | 377 | if ( $classes ) { |
| 375 | 378 | $field['input_class'] = esc_attr( $classes ); |
| 376 | 379 | } |
| 377 | 380 | |
| 378 | - $field['default_value'] = ''; // fake it to avoid printing frm-val attribute. | |
| 381 | + // Fake it to avoid printing frm-val attribute. | |
| 382 | + $field['default_value'] = ''; | |
| 379 | 383 | |
| 380 | 384 | do_action( 'frm_field_input_html', $field ); |
| 381 | 385 | |
| 382 | 386 | // Print custom attributes. |
| @@ -441,9 +445,8 @@ | ||
| 441 | 445 | return $headings; |
| 442 | 446 | } |
| 443 | 447 | |
| 444 | 448 | /** |
| 445 | - * | |
| 446 | 449 | * Get a list of all field settings that should be translated |
| 447 | 450 | * on a multilingual site. |
| 448 | 451 | * |
| 449 | 452 | * @since 3.06.01 |