font_registry = new Kirki_Google_Fonts_Registry(); $kirki->api = new Kirki(); $kirki->scripts = new Kirki_Scripts_Registry(); $kirki->styles = array( 'back' => new Kirki_Styles_Customizer(), 'front' => new Kirki_Styles_Frontend(), ); /** * The path of the current Kirki instance */ Kirki::$path = dirname( __FILE__ ); return $kirki; } global $kirki; $kirki = Kirki(); } /** * Apply the filters to the Kirki::$url */ if ( ! function_exists( 'kirki_filtered_url' ) ) { function kirki_filtered_url() { $config = apply_filters( 'kirki/config', array() ); if ( isset( $config['url_path'] ) ) { Kirki::$url = esc_url_raw( $config['url_path'] ); } } add_action( 'after_setup_theme', 'kirki_filtered_url' ); } include_once get_template_directory() . '/inc/kirki/includes/deprecated.php'; // Include the API class include_once get_template_directory() . '/inc/kirki/includes/class-kirki.php'; // Add an empty config for global fields Kirki::add_config( '' );