| @@ -51,15 +51,10 @@ | ||
| 51 | 51 | echo '<label class="darkify--from">' . esc_attr( $args['text_from'] ) . ' <input type="text" name="' . esc_attr( $this->field_name( '[from]' ) ) . '" value="' . esc_attr( $value['from'] ) . '"' . wp_kses_post( $this->field_attributes() ) . ' data-type="from" /></label>'; |
| 52 | 52 | echo '<label class="darkify--to">' . esc_attr( $args['text_to'] ) . ' <input type="text" name="' . esc_attr( $this->field_name( '[to]' ) ) . '" value="' . esc_attr( $value['to'] ) . '"' . wp_kses_post( $this->field_attributes() ) . ' data-type="to" /></label>'; |
| 53 | 53 | |
| 54 | 54 | } else { |
| 55 | - $args = wp_parse_args( | |
| 56 | - $this->field, | |
| 57 | - array( | |
| 58 | - 'placeholder' => esc_html__( '', 'darkify' ), | |
| 59 | - ) | |
| 60 | - ); | |
| 61 | - echo '<input type="text" name="' . esc_attr( $this->field_name() ) . '" placeholder="'. esc_attr( $args['placeholder'] ) .'" value="' . esc_attr( $this->value ) . '"' . wp_kses_post( $this->field_attributes() ) . '/>'; | |
| 55 | + | |
| 56 | + echo '<input type="text" name="' . esc_attr( $this->field_name() ) . '" value="' . esc_attr( $this->value ) . '"' . wp_kses_post( $this->field_attributes() ) . '/>'; | |
| 62 | 57 | |
| 63 | 58 | } |
| 64 | 59 | |
| 65 | 60 | echo '<div class="darkify-datetime-settings" data-settings="' . esc_attr( wp_json_encode( $settings ) ) . '"></div>'; |