1 | <?php |
||
21 | class Kirki_Modules_Icons { |
||
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 of panels and sections with icons. |
||
35 | * |
||
36 | * @static |
||
37 | * @access private |
||
38 | * @var string |
||
39 | */ |
||
40 | private static $icons = array(); |
||
41 | |||
42 | /** |
||
43 | * The class constructor. |
||
44 | * |
||
45 | * @access protected |
||
46 | */ |
||
47 | 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 | * Adds icon for a section/panel. |
||
69 | * |
||
70 | * @access public |
||
71 | * @since 3.0.0 |
||
72 | * @param string $id The panel or section ID. |
||
73 | * @param string $icon The icon to add. |
||
74 | * @param string $context Lowercase 'section' or 'panel'. |
||
75 | */ |
||
76 | public function add_icon( $id, $icon, $context = 'section' ) { |
||
81 | |||
82 | /** |
||
83 | * Format the script in a way that will be compatible with WordPress. |
||
84 | */ |
||
85 | public function customize_controls_enqueue_scripts() { |
||
108 | } |
||
109 |