PluginProbe
Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News / 2.2.10
Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News v2.2.10
4.0.8 4.0.7 4.0.6 4.0.5 4.0.4 4.0.3 4.0.2 4.0.1 2.3.5 2.3.6 2.4.0 2.4.1 2.4.10 2.4.11 2.4.12 2.4.13 2.4.14 2.4.15 2.4.16 2.4.17 2.4.18 2.4.19 2.4.2 2.4.20 2.4.21 All 88 releases
← All changes | admin/views/sp-framework/fields/spinner/spinner.php +4 -14 2.4.11 → 2.2.10 View file →
@@ -25,19 +25,14 @@
25 25 'unit' => '',
26 26 )
27 27 );
28 28
29 - echo wp_kses_post( $this->field_before() );
30 - echo '<div class="spf--spin"><input type="number" name="' . esc_attr( $this->field_name() ) . '" value="' . esc_attr( $this->value ) . '"' . wp_kses_post( $this->field_attributes( array( 'class' => 'spf-input-number' ) ) ) . ' data-max="' . esc_attr( $args['max'] ) . '" data-min="' . esc_attr( $args['min'] ) . '" data-step="' . esc_attr( $args['step'] ) . '" data-unit="' . esc_attr( $args['unit'] ) . '"/></div>';
31 - echo wp_kses_post( $this->field_after() );
29 + echo $this->field_before();
30 + echo '<div class="spf--spin"><input type="number" name="'. $this->field_name() .'" value="'. $this->value .'"'. $this->field_attributes( array( 'class' => 'spf-input-number' ) ) .' data-max="'. $args['max'] .'" data-min="'. $args['min'] .'" data-step="'. $args['step'] .'" data-unit="'. $args['unit'] .'"/></div>';
31 + echo $this->field_after();
32 32
33 33 }
34 34
35 - /**
36 - * Enqueue jQuery UI Spinner.
37 - *
38 - * @return void
39 - */
40 35 public function enqueue() {
41 36
42 37 if ( ! wp_script_is( 'jquery-ui-spinner' ) ) {
43 38 wp_enqueue_script( 'jquery-ui-spinner' );
@@ -44,13 +39,8 @@
44 39 }
45 40
46 41 }
47 42
48 - /**
49 - * The output method.
50 - *
51 - * @return mixed
52 - */
53 43 public function output() {
54 44
55 45 $output = '';
56 46 $elements = ( is_array( $this->field['output'] ) ) ? $this->field['output'] : array_filter( (array) $this->field['output'] );
@@ -57,9 +47,9 @@
57 47 $important = ( ! empty( $this->field['output_important'] ) ) ? '!important' : '';
58 48 $mode = ( ! empty( $this->field['output_mode'] ) ) ? $this->field['output_mode'] : 'width';
59 49 $unit = ( ! empty( $this->field['unit'] ) ) ? $this->field['unit'] : 'px';
60 50
61 - if ( ! empty( $elements ) && isset( $this->value ) && '' !== $this->value ) {
51 + if ( ! empty( $elements ) && isset( $this->value ) && $this->value !== '' ) {
62 52 foreach ( $elements as $key_property => $element ) {
63 53 if ( is_numeric( $key_property ) ) {
64 54 if ( $mode ) {
65 55 $output = implode( ',', $elements ) . '{' . $mode . ':' . $this->value . $unit . $important . ';}';