1 | <?php |
||
19 | final class Kirki_Toolkit { |
||
20 | |||
21 | /** |
||
22 | * @static |
||
23 | * @access protected |
||
24 | * @var object |
||
25 | */ |
||
26 | protected static $instance = null; |
||
27 | |||
28 | /** |
||
29 | * @static |
||
30 | * @access protected |
||
31 | * @var string |
||
32 | */ |
||
33 | protected static $version = '2.2.0.beta.3'; |
||
34 | |||
35 | /** |
||
36 | * Access the single instance of this class |
||
37 | * |
||
38 | * @static |
||
39 | * @access public |
||
40 | * @return Kirki_Toolkit |
||
41 | */ |
||
42 | public static function get_instance() { |
||
48 | |||
49 | /** |
||
50 | * Return true if we are debugging Kirki |
||
51 | * |
||
52 | * @access public |
||
53 | * @return bool |
||
54 | */ |
||
55 | public static function is_debug() { |
||
58 | |||
59 | /** |
||
60 | * Take a path and return it clean |
||
61 | * |
||
62 | * @param string $path |
||
63 | * @return string |
||
64 | */ |
||
65 | public static function clean_file_path( $path ) { |
||
69 | |||
70 | /** |
||
71 | * Determine if we're on a parent theme |
||
72 | * |
||
73 | * @param $file string |
||
74 | * @return bool |
||
75 | */ |
||
76 | public static function is_parent_theme( $file ) { |
||
81 | |||
82 | /** |
||
83 | * Determine if we're on a child theme. |
||
84 | * |
||
85 | * @param $file string |
||
86 | * @return bool |
||
87 | */ |
||
88 | public static function is_child_theme( $file ) { |
||
93 | |||
94 | /** |
||
95 | * Determine if we're running as a plugin |
||
96 | */ |
||
97 | public static function is_plugin() { |
||
106 | |||
107 | /** |
||
108 | * Determine if we're on a theme |
||
109 | * |
||
110 | * @param $file string |
||
111 | * @return bool |
||
112 | */ |
||
113 | public static function is_theme( $file ) { |
||
116 | |||
117 | /** |
||
118 | * Get the version |
||
119 | * |
||
120 | * @return string |
||
121 | */ |
||
122 | public static function get_version() { |
||
125 | |||
126 | } |
||
127 | |||
129 |