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