1 | <?php |
||
23 | class Kirki_Control_MultiCheck extends WP_Customize_Control { |
||
24 | |||
25 | /** |
||
26 | * The control type. |
||
27 | * |
||
28 | * @access public |
||
29 | * @var string |
||
30 | */ |
||
31 | public $type = 'kirki-multicheck'; |
||
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() { |
||
58 | |||
59 | /** |
||
60 | * Refresh the parameters passed to the JavaScript via JSON. |
||
61 | * |
||
62 | * @see WP_Customize_Control::to_json() |
||
63 | */ |
||
64 | public function to_json() { |
||
83 | |||
84 | /** |
||
85 | * An Underscore (JS) template for this control's content (but not its container). |
||
86 | * |
||
87 | * Class variables for this control class are available in the `data` JS object; |
||
88 | * export custom variables by overriding {@see WP_Customize_Control::to_json()}. |
||
89 | * |
||
90 | * @see WP_Customize_Control::print_template() |
||
91 | * |
||
92 | * @access protected |
||
93 | */ |
||
94 | protected function content_template() { |
||
119 | |||
120 | /** |
||
121 | * Render the control's content. |
||
122 | * |
||
123 | * @see WP_Customize_Control::render_content() |
||
124 | */ |
||
125 | protected function render_content() {} |
||
126 | } |
||
127 |