1 | <?php |
||
15 | class Kirki_Control { |
||
16 | |||
17 | /** |
||
18 | * The $wp_customize WordPress global. |
||
19 | * |
||
20 | * @access protected |
||
21 | * @var WP_Customize_Manager |
||
22 | */ |
||
23 | protected $wp_customize; |
||
24 | |||
25 | /** |
||
26 | * An array of all available control types. |
||
27 | * |
||
28 | * @access protected |
||
29 | * @var array |
||
30 | */ |
||
31 | protected static $control_types = array(); |
||
32 | |||
33 | /** |
||
34 | * The class constructor. |
||
35 | * Creates the actual controls in the customizer. |
||
36 | * |
||
37 | * @access public |
||
38 | * @param array $args The field definition as sanitized in Kirki_Field. |
||
39 | */ |
||
40 | public function __construct( $args ) { |
||
55 | |||
56 | /** |
||
57 | * Get the class name of the class needed to create tis control. |
||
58 | * |
||
59 | * @access private |
||
60 | * @param array $args The field definition as sanitized in Kirki_Field. |
||
61 | * |
||
62 | * @return string the name of the class that will be used to create this control. |
||
63 | */ |
||
64 | final private function get_control_class_name( $args ) { |
||
75 | |||
76 | /** |
||
77 | * Adds the control. |
||
78 | * |
||
79 | * @access protected |
||
80 | * @param array $args The field definition as sanitized in Kirki_Field. |
||
81 | */ |
||
82 | final protected function add_control( $args ) { |
||
111 | |||
112 | /** |
||
113 | * Sets the $control_types property. |
||
114 | * Makes sure the kirki/control_types filter is applied |
||
115 | * and that the defined classes actually exist. |
||
116 | * If a defined class does not exist, it is removed. |
||
117 | * |
||
118 | * @access private |
||
119 | */ |
||
120 | final private function set_control_types() { |
||
137 | } |
||
138 |