PluginProbe ʕ •ᴥ•ʔ
ElementsKit Elementor Addons – Advanced Widgets & Templates Addons for Elementor / 4.0.1
ElementsKit Elementor Addons – Advanced Widgets & Templates Addons for Elementor v4.0.1
4.0.2 4.0.1 4.0.0 3.10.02 3.10.01 3.9.10 3.9.9 3.9.8 3.9.7 3.9.5 3.9.6 3.9.3 2.1.0 2.1.1 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.2.0 2.2.1 2.2.2 2.2.3 2.2.4 2.3.0 2.3.1 2.3.1.1 2.3.2 2.3.3 2.3.4 2.3.5 2.3.6 2.3.7 2.4.0 2.5.0 2.5.1 2.5.10 2.5.2 2.5.3 2.5.4 2.5.5 2.5.6 2.5.7 2.5.8 2.5.9 2.6.0 2.6.1 2.6.2 2.6.3 2.7.0 2.7.2 2.7.3 2.7.4 2.7.5 2.8.0 2.8.1 2.8.5 2.8.6 2.8.7 2.8.8 2.9.0 2.9.1 2.9.2 3.0.0 3.0.1 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.1.0 3.1.1 3.1.2 3.1.3 3.1.4 3.2.0 3.2.1 3.2.2 3.2.3 3.2.4 3.2.5 3.2.6 3.2.7 3.2.8 3.2.9 3.3.0 3.3.1 3.3.2 3.3.3 3.3.4 3.3.5 3.3.6 3.3.7 3.3.8 3.3.9 3.4.0 3.4.1 3.4.2 3.4.3 3.4.4 3.4.5 3.4.6 3.4.7 3.4.8 3.4.9 3.5.0 3.5.1 3.5.2 3.5.3 3.5.4 3.5.5 3.5.6 3.6.0 3.6.1 3.7.0 3.7.1 3.7.2 3.7.3 3.7.4 3.7.5 3.7.6 3.7.7 3.7.8 3.7.9 3.8.0 3.8.1 3.8.2 3.9.0 3.9.1 3.9.2 trunk 1.2.6 1.2.7 1.2.9 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.8 1.3.9 1.4.0 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.7 1.4.8 1.4.9 1.5.0 1.5.1 1.5.10 1.5.11 1.5.12 1.5.2 1.5.4 1.5.5 1.5.6 1.5.7 1.5.8 1.5.9 2.0.0 2.0.1 2.0.10 2.0.11 2.0.12 2.0.13 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8 2.0.9 2.0.9.1 2.0.9.2 2.0.9.3
elementskit-lite / modules / widget-builder / controls / control-type-slider.php
elementskit-lite / modules / widget-builder / controls Last commit date
control-type-animation.php 4 years ago control-type-background.php 2 years ago control-type-border.php 2 years ago control-type-box-shadow.php 4 years ago control-type-choose.php 4 years ago control-type-code.php 4 years ago control-type-color.php 4 years ago control-type-date-time.php 1 year ago control-type-dimensions.php 4 years ago control-type-font.php 4 years ago control-type-gallery.php 4 years ago control-type-hover.php 4 years ago control-type-icons.php 4 years ago control-type-image-dimensions.php 4 years ago control-type-image-size.php 4 years ago control-type-input.php 4 years ago control-type-media.php 4 years ago control-type-number.php 4 years ago control-type-select.php 4 years ago control-type-select2.php 4 years ago control-type-slider.php 4 years ago control-type-switch.php 4 years ago control-type-text-area.php 4 years ago control-type-text-shadow.php 4 years ago control-type-typography.php 4 years ago control-type-url.php 4 years ago control-type-wys.php 4 years ago ct-base.php 4 years ago ct-contract.php 4 years ago ct-factory.php 4 years ago widget-writer.php 3 weeks ago
control-type-slider.php
95 lines
1 <?php
2
3 namespace ElementsKit_Lite\Modules\Widget_Builder\Controls;
4
5 defined( 'ABSPATH' ) || exit;
6
7 /**
8 * Class Control_Type_Slider
9 *
10 * @see https://developers.elementor.com/elementor-controls/slider-control/
11 *
12 * @package ElementsKit_Lite\Modules\Widget_Builder\Controls
13 */
14 class Control_Type_Slider extends CT_Base {
15
16 public function start_writing_conf( $file_handler, $conf ) {
17
18 $ret = '';
19
20 if ( ! empty( $conf->description ) ) {
21 $ret .= "\t\t\t\t" . '\'description\' => esc_html( \'' . esc_html( $conf->description ) . '\' ),' . PHP_EOL;
22 }
23
24 if ( ! empty( $conf->separator ) ) {
25 $ret .= "\t\t\t\t" . '\'separator\' => \'' . esc_html( $conf->separator ) . '\',' . PHP_EOL;
26 }
27
28 if ( ! empty( $conf->classes ) ) {
29 $ret .= "\t\t\t\t" . '\'classes\' => \'' . esc_html( $conf->classes ) . '\',' . PHP_EOL;
30 }
31
32 if ( isset( $conf->show_label ) ) {
33 $ret .= "\t\t\t\t" . '\'show_label\' => ' . ( $conf->show_label == 1 ? 'true' : 'false' ) . ',' . PHP_EOL;
34 }
35
36 if ( isset( $conf->label_block ) ) {
37 $ret .= "\t\t\t\t" . '\'label_block\' => ' . ( $conf->label_block == 1 ? 'true' : 'false' ) . ',' . PHP_EOL;
38 }
39
40 if ( ! empty( $conf->default ) ) {
41
42 $ret .= "\t\t\t\t" . '\'default\' => array(' . PHP_EOL;
43 $ret .= "\t\t\t\t\t" . '\'unit\' => \'' . esc_html( $conf->default->unit ) . '\',' . PHP_EOL;
44 $ret .= "\t\t\t\t\t" . '\'size\' => \'' . esc_html( $conf->default->size ) . '\',' . PHP_EOL;
45 $ret .= "\t\t\t\t" . '),' . PHP_EOL;
46
47 }
48
49 if ( ! empty( $conf->size_units ) ) {
50
51 $ret .= "\t\t\t\t" . '\'size_units\' => array(' . PHP_EOL;
52
53 foreach ( $conf->size_units as $size ) {
54
55 $ret .= "\t\t\t\t\t" . '\'' . esc_html( $size ) . '\',' . PHP_EOL;
56 }
57
58 $ret .= "\t\t\t\t" . '),' . PHP_EOL;
59 }
60
61 if ( ! empty( $conf->range ) ) {
62
63 $ret .= "\t\t\t\t" . '\'range\' => array(' . PHP_EOL;
64
65 $realArray = (array) $conf->range;
66
67 foreach ( $realArray as $val => $label ) {
68
69 $ret .= "\t\t\t\t\t" . '\'' . $val . '\' => array(' . PHP_EOL;
70 $ret .= "\t\t\t\t\t\t" . '\'min\' => \'' . floatval( $label->min ) . '\',' . PHP_EOL;
71 $ret .= "\t\t\t\t\t\t" . '\'max\' => \'' . floatval( $label->max ) . '\',' . PHP_EOL;
72 $ret .= "\t\t\t\t\t\t" . '\'step\' => \'' . esc_html( $label->step ) . '\',' . PHP_EOL;
73 $ret .= "\t\t\t\t\t" . '),' . PHP_EOL;
74 }
75
76 $ret .= "\t\t\t\t" . ')' . PHP_EOL;
77 }
78
79 if ( ! empty( $conf->selectors ) ) {
80
81 $selectors = (array) $conf->selectors;
82 $ret .= "\t\t\t\t" . '\'selectors\' => array(' . PHP_EOL;
83
84 foreach ( $selectors as $selectorName => $selectorValue ) {
85 $selectorProperty = str_replace( ',', ', {{WRAPPER}} ', $selectorName );
86 $ret .= "\t\t\t\t\t" . '\'{{WRAPPER}} ' . $selectorProperty . '\' => \'' . esc_html( $selectorValue ) . '\',' . PHP_EOL;
87 }
88
89 $ret .= "\t\t\t\t" . '),' . PHP_EOL;
90 }
91
92 return $ret;
93 }
94 }
95