@@ 869-871 (lines=3) @@ | ||
866 | case 'number': |
|
867 | ||
868 | $min = ''; |
|
869 | if( isset( $field['min'] ) ) { |
|
870 | $min = 'min="' . esc_attr( $field['min'] ) . '"'; |
|
871 | } |
|
872 | ||
873 | $max = ''; |
|
874 | if( isset( $field['max'] ) ) { |
|
@@ 874-876 (lines=3) @@ | ||
871 | } |
|
872 | ||
873 | $max = ''; |
|
874 | if( isset( $field['max'] ) ) { |
|
875 | $max = 'max="' . esc_attr( $field['max'] ) . '"'; |
|
876 | } |
|
877 | ||
878 | $html .= '<input id="' . esc_attr( $field['id'] ) . '" type="' . $field['type'] . '" name="' . esc_attr( $field['id'] ) . '" placeholder="' . esc_attr( $field['placeholder'] ) . '" value="' . $data . '" ' . $min . ' ' . $max . ' class="small-text" ' . $disabled . ' />' . "\n"; |
|
879 | break; |