1 | <?php |
||
20 | class Kirki_Control_Dimension extends WP_Customize_Control { |
||
21 | |||
22 | /** |
||
23 | * The control type. |
||
24 | * |
||
25 | * @access public |
||
26 | * @var string |
||
27 | */ |
||
28 | public $type = 'kirki-dimension'; |
||
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 | * The translation strings. |
||
56 | * |
||
57 | * @access protected |
||
58 | * @since 2.3.5 |
||
59 | * @var array |
||
60 | */ |
||
61 | protected $l10n = array(); |
||
62 | |||
63 | /** |
||
64 | * Enqueue control related scripts/styles. |
||
65 | * |
||
66 | * @access public |
||
67 | */ |
||
68 | public function enqueue() { |
||
75 | |||
76 | /** |
||
77 | * Refresh the parameters passed to the JavaScript via JSON. |
||
78 | * |
||
79 | * @see WP_Customize_Control::to_json() |
||
80 | */ |
||
81 | public function to_json() { |
||
106 | |||
107 | /** |
||
108 | * An Underscore (JS) template for this control's content (but not its container). |
||
109 | * |
||
110 | * Class variables for this control class are available in the `data` JS object; |
||
111 | * export custom variables by overriding {@see WP_Customize_Control::to_json()}. |
||
112 | * |
||
113 | * @see WP_Customize_Control::print_template() |
||
114 | * |
||
115 | * @access protected |
||
116 | */ |
||
117 | protected function content_template() { |
||
132 | |||
133 | /** |
||
134 | * Returns an array of translation strings. |
||
135 | * |
||
136 | * @access protected |
||
137 | * @since 2.4.0 |
||
138 | * @param string|false $id The string-ID. |
||
139 | * @return string |
||
140 | */ |
||
141 | protected function l10n( $id = false ) { |
||
147 | } |
||
148 |