1 | <?php |
||
22 | class Kirki_Modules_Custom_Sections { |
||
23 | |||
24 | /** |
||
25 | * The object instance. |
||
26 | * |
||
27 | * @static |
||
28 | * @access private |
||
29 | * @since 3.0.0 |
||
30 | * @var object |
||
31 | */ |
||
32 | private static $instance; |
||
33 | |||
34 | /** |
||
35 | * Constructor. |
||
36 | * |
||
37 | * @access protected |
||
38 | * @since 3.0.0 |
||
39 | */ |
||
40 | protected function __construct() { |
||
50 | |||
51 | /** |
||
52 | * Gets an instance of this object. |
||
53 | * Prevents duplicate instances which avoid artefacts and improves performance. |
||
54 | * |
||
55 | * @static |
||
56 | * @access public |
||
57 | * @since 3.0.0 |
||
58 | * @return object |
||
59 | */ |
||
60 | public static function get_instance() { |
||
66 | |||
67 | /** |
||
68 | * Add the custom section types. |
||
69 | * |
||
70 | * @access public |
||
71 | * @since 3.0.0 |
||
72 | * @param array $section_types The registered section-types. |
||
73 | * @return array |
||
74 | */ |
||
75 | public function set_section_types( $section_types ) { |
||
85 | |||
86 | /** |
||
87 | * Add the custom panel types. |
||
88 | * |
||
89 | * @access public |
||
90 | * @since 3.0.0 |
||
91 | * @param array $panel_types The registered section-types. |
||
92 | * @return array |
||
93 | */ |
||
94 | public function set_panel_types( $panel_types ) { |
||
102 | |||
103 | /** |
||
104 | * Include the custom-section classes. |
||
105 | * |
||
106 | * @access public |
||
107 | * @since 3.0.0 |
||
108 | */ |
||
109 | public function include_sections_and_panels() { |
||
148 | |||
149 | /** |
||
150 | * Enqueues any necessary scripts and styles. |
||
151 | * |
||
152 | * @access public |
||
153 | * @since 3.0.0 |
||
154 | */ |
||
155 | public function enqueue_scrips() { |
||
161 | |||
162 | } |
||
163 |