1 | <?php |
||
21 | class Kirki_Modules_Search { |
||
22 | |||
23 | /** |
||
24 | * The object instance. |
||
25 | * |
||
26 | * @static |
||
27 | * @access private |
||
28 | * @since 3.0.0 |
||
29 | * @var object |
||
30 | */ |
||
31 | private static $instance; |
||
32 | |||
33 | /** |
||
34 | * An array containing field identifieds and their labels/descriptions. |
||
35 | * |
||
36 | * @access private |
||
37 | * @since 3.0.0 |
||
38 | * @var array |
||
39 | */ |
||
40 | private $search_content = array(); |
||
41 | |||
42 | /** |
||
43 | * The class constructor |
||
44 | * |
||
45 | * @access protected |
||
46 | * @since 3.0.0 |
||
47 | */ |
||
48 | protected function __construct() { |
||
54 | |||
55 | /** |
||
56 | * Gets an instance of this object. |
||
57 | * Prevents duplicate instances which avoid artefacts and improves performance. |
||
58 | * |
||
59 | * @static |
||
60 | * @access public |
||
61 | * @since 3.0.0 |
||
62 | * @return object |
||
63 | */ |
||
64 | public static function get_instance() { |
||
70 | |||
71 | /** |
||
72 | * Parses fields and adds their labels and descriptions to the |
||
73 | * object's $search_content property. |
||
74 | * |
||
75 | * @access private |
||
76 | * @since 3.0.0 |
||
77 | */ |
||
78 | private function parse_fields() { |
||
90 | |||
91 | /** |
||
92 | * Enqueue scripts. |
||
93 | * |
||
94 | * @access public |
||
95 | * @since 3.0.0 |
||
96 | */ |
||
97 | public function customize_controls_print_footer_scripts() { |
||
113 | |||
114 | /** |
||
115 | * Adds the section to the customizer. |
||
116 | * |
||
117 | * @access public |
||
118 | * @since 3.0.0 |
||
119 | * @param object $wp_customize The customizer object. |
||
120 | */ |
||
121 | public function customize_register( $wp_customize ) { |
||
150 | } |
||
151 |