|
@@ -3,7 +3,7 @@ discard block |
|
|
block discarded – undo |
|
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 |
|
|
block discarded – undo |
|
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 = 'gv-merge-tag-support mt-position-right mt-hide_all_fields '; |
|
25
|
25
|
} |
|
26
|
26
|
|
|
@@ -31,9 +31,9 @@ discard block |
|
|
block discarded – undo |
|
31
|
31
|
$step = \GV\Utils::get( $this->field, 'step', null ); |
|
32
|
32
|
|
|
33
|
33
|
$atts = ''; |
|
34
|
|
- $atts .= isset( $max ) ? ' max="' . (int) $max . '"' : ''; |
|
35
|
|
- $atts .= isset( $min ) ? ' min="' . (int) $min . '"' : ''; |
|
36
|
|
- $atts .= isset( $step ) ? ' step="' . (int) $step . '"' : ''; |
|
|
34
|
+ $atts .= isset( $max ) ? ' max="' . (int)$max . '"' : ''; |
|
|
35
|
+ $atts .= isset( $min ) ? ' min="' . (int)$min . '"' : ''; |
|
|
36
|
+ $atts .= isset( $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 ); ?>" |
Please login to merge, or discard this patch.