public_html/wp-content/themes/LocalTwo/core/customizer/includes/class-kirki-scripts.php
/**
	 * Add a dummy, empty stylesheet if no stylesheet_id has been defined and we need one.
	 */
Add a dummy, empty stylesheet if no stylesheet_id has been defined and we need one.
Add a dummy empty stylesheet if no stylesheet_id has been defined and we need one .
function frontend_styles() {
		global $kirki;
		$config   = $kirki->get_config();
		$controls = $kirki->get_controls();
		$kirki_url = isset( $options['url_path'] ) ? $options['url_path'] : KIRKI_URL;
		foreach( $controls as $control ) {
			if ( isset( $control['output'] ) ) {
				$uses_output = true;
			}
		}
		if ( isset( $uses_output )  && (! isset( $config['stylesheet_id'] ) || $config['stylesheet_id'] === 'kirki-styles' ) ) {
			wp_enqueue_style( 'kirki-styles', $kirki_url . 'assets/css/kirki-styles.css', NULL, NULL );
		}
	}
function frontend_styles ( ) { global $ kirki ; $ config = $ kirki -> get_config ( ) ; $ controls = $ kirki -> get_controls ( ) ; $ kirki_url = isset ( $ options [ 'url_path' ] ) ? $ options [ 'url_path' ] : KIRKI_URL ; foreach ( $ controls as $ control ) { if ( isset ( $ control [ 'output' ] ) ) { $ uses_output = true ; } } if ( isset ( $ uses_output ) && ( ! isset ( $ config [ 'stylesheet_id' ] ) || $ config [ 'stylesheet_id' ] === 'kirki-styles' ) ) { wp_enqueue_style ( 'kirki-styles' , $ kirki_url . 'assets/css/kirki-styles.css' , NULL , NULL ) ; } }
Add a dummy, empty stylesheet if no stylesheet_id has been defined and we need one.
Add a dummy empty stylesheet if no stylesheet_id has been defined and we need one .