PluginProbe
JetFormBuilder — Dynamic Blocks Form Builder / 3.6.6
JetFormBuilder — Dynamic Blocks Form Builder v3.6.6
3.6.6.1 3.6.6 3.6.5.4 3.6.5.3 3.6.5.2 3.6.5.1 3.6.5 3.6.4.2 3.6.4.1 3.6.4 3.6.3.1 3.6.3 3.6.2.2 3.6.2.1 3.6.2 3.6.1.1 3.6.1 3.6.0.1 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 All 134 releases
jetformbuilder / modules / framework / blocks-style-manager / field-handlers / range.php

range.php in JetFormBuilder — Dynamic Blocks Form Builder 3.6.6, at modules/framework/blocks-style-manager/field-handlers/range.php

29 lines 605 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 namespace Crocoblock\Blocks_Style\Field_Handlers;
3
4 class Range extends Base {
5
6 /**
7 * Get the parsed value.
8 *
9 * @return array
10 */
11 public function get_parsed_value() {
12
13 if ( is_array( $this->raw_value )
14 && isset( $this->raw_value['value'] )
15 && isset( $this->raw_value['unit'] )
16 ) {
17 return array(
18 'value' => ! empty( $this->raw_value['value'] ) ? esc_attr( $this->raw_value['value'] ) : 0,
19 'unit' => esc_attr( $this->raw_value['unit'] ),
20 );
21 }
22
23 return array(
24 'value' => ! empty( $this->raw_value ) ? esc_attr( $this->raw_value ) : 0,
25 'unit' => '',
26 );
27 }
28 }
29