PluginProbe
JetFormBuilder — Dynamic Blocks Form Builder / 3.6.5.4
JetFormBuilder — Dynamic Blocks Form Builder v3.6.5.4
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 / compatibility / jet-style-manager / blocks / range-field.php

range-field.php in JetFormBuilder — Dynamic Blocks Form Builder 3.6.5.4, at compatibility/jet-style-manager/blocks/range-field.php

51 lines 1.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3
4 namespace JFB_Compatibility\Jet_Style_Manager\Blocks;
5
6 use JFB_Compatibility\Jet_Style_Manager\Blocks\Interfaces\Style_Block_It;
7 use JFB_Compatibility\Jet_Style_Manager\Blocks\Traits\Style_Block_Trait;
8
9 class Range_Field implements Style_Block_It {
10
11 use Style_Block_Trait;
12
13 public function __construct() {
14 $this->set_css_scheme(
15 array(
16 'field' => '__field-wrap input.range-field',
17 'value' => '__field-wrap %1$s__field-value',
18 'wrapper' => '__field-wrap',
19 )
20 );
21 }
22
23 /**
24 * Not used
25 *
26 * @return string
27 */
28 public function rep_item_id() {
29 return '';
30 }
31
32 public function process_controls() {
33 }
34
35 public function style_slider( $style_line ): array {
36 return array(
37 $this->selector( 'field' ) . '::-webkit-slider-thumb' => $style_line,
38 $this->selector( 'field' ) . '::-moz-range-thumb' => $style_line,
39 $this->selector( 'field' ) . '::-ms-thumb' => $style_line,
40 );
41 }
42
43 public function style_range( $style_line ): array {
44 return array(
45 $this->selector( 'field' ) . '::-webkit-slider-runnable-track' => $style_line,
46 $this->selector( 'field' ) . '::-moz-range-track' => $style_line,
47 $this->selector( 'field' ) . '::-ms-track' => $style_line,
48 );
49 }
50 }
51