'mm/dd/yy', ); $settings = ( ! empty( $this->field['settings'] ) ) ? $this->field['settings'] : array(); $settings = wp_parse_args( $settings, $default_settings ); echo $this->field_before(); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped if ( ! empty( $this->field['from_to'] ) ) { $args = wp_parse_args( $this->field, array( 'text_from' => esc_html__( 'From', 'streamcast' ), 'text_to' => esc_html__( 'To', 'streamcast' ), ) ); $value = wp_parse_args( $this->value, array( 'from' => '', 'to' => '', ) ); echo ''; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped echo ''; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped } else { echo 'field_attributes() .'/>'; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped } echo '
'; echo $this->field_after(); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped } public function enqueue() { if ( ! wp_script_is( 'jquery-ui-datepicker' ) ) { wp_enqueue_script( 'jquery-ui-datepicker' ); } } } }