1 | <?php |
||
20 | class Kirki_Control_Number extends WP_Customize_Control { |
||
21 | |||
22 | /** |
||
23 | * The control type. |
||
24 | * |
||
25 | * @access public |
||
26 | * @var string |
||
27 | */ |
||
28 | public $type = 'kirki-number'; |
||
29 | |||
30 | /** |
||
31 | * Used to automatically generate all CSS output. |
||
32 | * |
||
33 | * @access public |
||
34 | * @var array |
||
35 | */ |
||
36 | public $output = array(); |
||
37 | |||
38 | /** |
||
39 | * Data type |
||
40 | * |
||
41 | * @access public |
||
42 | * @var string |
||
43 | */ |
||
44 | public $option_type = 'theme_mod'; |
||
45 | |||
46 | /** |
||
47 | * The kirki_config we're using for this control |
||
48 | * |
||
49 | * @access public |
||
50 | * @var string |
||
51 | */ |
||
52 | public $kirki_config = 'global'; |
||
53 | |||
54 | /** |
||
55 | * Enqueue control related scripts/styles. |
||
56 | * |
||
57 | * @access public |
||
58 | */ |
||
59 | public function enqueue() { |
||
64 | |||
65 | /** |
||
66 | * Refresh the parameters passed to the JavaScript via JSON. |
||
67 | * |
||
68 | * @see WP_Customize_Control::to_json() |
||
69 | */ |
||
70 | public function to_json() { |
||
94 | |||
95 | /** |
||
96 | * An Underscore (JS) template for this control's content (but not its container). |
||
97 | * |
||
98 | * Class variables for this control class are available in the `data` JS object; |
||
99 | * export custom variables by overriding {@see WP_Customize_Control::to_json()}. |
||
100 | * |
||
101 | * @see WP_Customize_Control::print_template() |
||
102 | * |
||
103 | * @access protected |
||
104 | */ |
||
105 | protected function content_template() { |
||
120 | |||
121 | /** |
||
122 | * Returns an array of translation strings. |
||
123 | * |
||
124 | * @access protected |
||
125 | * @since 3.0.0 |
||
126 | * @param string|false $id The string-ID. |
||
127 | * @return string |
||
128 | */ |
||
129 | protected function l10n( $id = false ) { |
||
137 | } |
||
138 |