1 | <?php |
||
23 | class Kirki_Control_Code extends WP_Customize_Control { |
||
24 | |||
25 | /** |
||
26 | * The control type. |
||
27 | * |
||
28 | * @access public |
||
29 | * @var string |
||
30 | */ |
||
31 | public $type = 'kirki-code'; |
||
32 | |||
33 | /** |
||
34 | * Used to automatically generate all CSS output. |
||
35 | * |
||
36 | * @access public |
||
37 | * @var array |
||
38 | */ |
||
39 | public $output = array(); |
||
40 | |||
41 | /** |
||
42 | * Data type |
||
43 | * |
||
44 | * @access public |
||
45 | * @var string |
||
46 | */ |
||
47 | public $option_type = 'theme_mod'; |
||
48 | |||
49 | /** |
||
50 | * Enqueue control related scripts/styles. |
||
51 | * |
||
52 | * @access public |
||
53 | */ |
||
54 | public function enqueue() { |
||
65 | |||
66 | /** |
||
67 | * Refresh the parameters passed to the JavaScript via JSON. |
||
68 | * |
||
69 | * @see WP_Customize_Control::to_json() |
||
70 | */ |
||
71 | public function to_json() { |
||
90 | |||
91 | /** |
||
92 | * An Underscore (JS) template for this control's content (but not its container). |
||
93 | * |
||
94 | * Class variables for this control class are available in the `data` JS object; |
||
95 | * export custom variables by overriding {@see WP_Customize_Control::to_json()}. |
||
96 | * |
||
97 | * @see WP_Customize_Control::print_template() |
||
98 | * |
||
99 | * @access protected |
||
100 | */ |
||
101 | protected function content_template() { |
||
117 | } |
||
118 |