1 | <?php |
||
22 | class Kirki_Control_Slider extends WP_Customize_Control { |
||
23 | |||
24 | /** |
||
25 | * The control type. |
||
26 | * |
||
27 | * @access public |
||
28 | * @var string |
||
29 | */ |
||
30 | public $type = 'kirki-slider'; |
||
31 | |||
32 | /** |
||
33 | * Used to automatically generate all CSS output. |
||
34 | * |
||
35 | * @access public |
||
36 | * @var array |
||
37 | */ |
||
38 | public $output = array(); |
||
39 | |||
40 | /** |
||
41 | * Data type |
||
42 | * |
||
43 | * @access public |
||
44 | * @var string |
||
45 | */ |
||
46 | public $option_type = 'theme_mod'; |
||
47 | |||
48 | /** |
||
49 | * Refresh the parameters passed to the JavaScript via JSON. |
||
50 | * |
||
51 | * @see WP_Customize_Control::to_json() |
||
52 | */ |
||
53 | public function to_json() { |
||
75 | |||
76 | /** |
||
77 | * Enqueue control related scripts/styles. |
||
78 | * |
||
79 | * @access public |
||
80 | */ |
||
81 | public function enqueue() { |
||
85 | |||
86 | /** |
||
87 | * An Underscore (JS) template for this control's content (but not its container). |
||
88 | * |
||
89 | * Class variables for this control class are available in the `data` JS object; |
||
90 | * export custom variables by overriding {@see WP_Customize_Control::to_json()}. |
||
91 | * |
||
92 | * @see WP_Customize_Control::print_template() |
||
93 | * |
||
94 | * @access protected |
||
95 | */ |
||
96 | protected function content_template() { |
||
120 | } |
||
121 |