@@ -39,13 +39,13 @@ |
||
39 | 39 | 'tooltip' => __( 'Enter the number of words to be shown. If specified it truncates the text. Leave it blank if you want to show the full text.', 'gravityview' ), |
40 | 40 | ); |
41 | 41 | |
42 | - $field_options['make_clickable'] = array( |
|
43 | - 'type' => 'checkbox', |
|
44 | - 'merge_tags' => false, |
|
45 | - 'value' => 0, |
|
46 | - 'label' => __( 'Convert text URLs to HTML links', 'gravityview' ), |
|
47 | - 'tooltip' => __( 'Converts URI, www, FTP, and email addresses in HTML links', 'gravityview' ), |
|
48 | - ); |
|
42 | + $field_options['make_clickable'] = array( |
|
43 | + 'type' => 'checkbox', |
|
44 | + 'merge_tags' => false, |
|
45 | + 'value' => 0, |
|
46 | + 'label' => __( 'Convert text URLs to HTML links', 'gravityview' ), |
|
47 | + 'tooltip' => __( 'Converts URI, www, FTP, and email addresses in HTML links', 'gravityview' ), |
|
48 | + ); |
|
49 | 49 | |
50 | 50 | $field_options['allow_html'] = array( |
51 | 51 | 'type' => 'checkbox', |
@@ -27,11 +27,11 @@ discard block |
||
27 | 27 | |
28 | 28 | public function field_options( $field_options, $template_id, $field_id, $context, $input_type, $form_id ) { |
29 | 29 | |
30 | - if( 'edit' === $context ) { |
|
30 | + if ( 'edit' === $context ) { |
|
31 | 31 | return $field_options; |
32 | 32 | } |
33 | 33 | |
34 | - $field_options['trim_words'] = array( |
|
34 | + $field_options[ 'trim_words' ] = array( |
|
35 | 35 | 'type' => 'number', |
36 | 36 | 'merge_tags' => false, |
37 | 37 | 'value' => null, |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | 'tooltip' => __( 'Enter the number of words to be shown. If specified it truncates the text. Leave it blank if you want to show the full text.', 'gravityview' ), |
40 | 40 | ); |
41 | 41 | |
42 | - $field_options['make_clickable'] = array( |
|
42 | + $field_options[ 'make_clickable' ] = array( |
|
43 | 43 | 'type' => 'checkbox', |
44 | 44 | 'merge_tags' => false, |
45 | 45 | 'value' => 0, |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | 'tooltip' => __( 'Converts URI, www, FTP, and email addresses in HTML links', 'gravityview' ), |
48 | 48 | ); |
49 | 49 | |
50 | - $field_options['allow_html'] = array( |
|
50 | + $field_options[ 'allow_html' ] = array( |
|
51 | 51 | 'type' => 'checkbox', |
52 | 52 | 'merge_tags' => false, |
53 | 53 | 'value' => 1, |
@@ -3,7 +3,7 @@ discard block |
||
3 | 3 | * number input type |
4 | 4 | */ |
5 | 5 | |
6 | -if( !class_exists('GravityView_FieldType_text') ) { |
|
6 | +if ( ! class_exists( 'GravityView_FieldType_text' ) ) { |
|
7 | 7 | include_once( GRAVITYVIEW_DIR . 'includes/admin/field-types/type_text.php' ); |
8 | 8 | } |
9 | 9 | |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | |
21 | 21 | $show_mt = $this->show_merge_tags(); |
22 | 22 | |
23 | - if ( $show_mt && $this->field['merge_tags'] !== false || $this->field['merge_tags'] === 'force' ) { |
|
23 | + if ( $show_mt && $this->field[ 'merge_tags' ] !== false || $this->field[ 'merge_tags' ] === 'force' ) { |
|
24 | 24 | $class = 'merge-tag-support mt-position-right mt-hide_all_fields '; |
25 | 25 | } |
26 | 26 | |
@@ -31,9 +31,9 @@ discard block |
||
31 | 31 | $step = \GV\Utils::get( $this->field, 'step', null ); |
32 | 32 | |
33 | 33 | $atts = ''; |
34 | - $atts .= $max ? ' max="' . (int) $max . '"' : ''; |
|
35 | - $atts .= $min ? ' min="' . (int) $min . '"' : ''; |
|
36 | - $atts .= $step ? ' step="' . (int) $step . '"' : ''; |
|
34 | + $atts .= $max ? ' max="' . (int)$max . '"' : ''; |
|
35 | + $atts .= $min ? ' min="' . (int)$min . '"' : ''; |
|
36 | + $atts .= $step ? ' step="' . (int)$step . '"' : ''; |
|
37 | 37 | ?> |
38 | 38 | <input name="<?php echo esc_attr( $this->name ); ?>" id="<?php echo $this->get_field_id(); ?>" type="number" |
39 | 39 | value="<?php echo esc_attr( $this->value ); ?>" |