You appear to be a bot. Output may be restricted
Description
Implement 'wp_enqueue_scripts' action to enqueue the oik.css and $customCSS stylesheets as requiredoik.css contains styles for oik shortcodes. It is embedded if not specifically excluded. $customCSS is embedded only if selected on oik options If you want some of oik.css then copy the contents into custom.css and exclude oik.css Note: bwlink.css contains styles for the bobbingwide and oik branding colours It is now only enqueued by the oik-bob-bing-wide plugin
Usage
oik_enqueue_stylesheets();
Parameters
Returns
voidSource
File name: oik/oik.phpLines:
1 to 28 of 28
function oik_enqueue_stylesheets() { $oikCSS = bw_get_option( 'oikCSS' ); // bw_trace2( $oikCSS, "oikCSS" ); if ( !$oikCSS ) { if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) { $version = oik_version(); } else { $version = false; } $url = plugins_url( "/oik/oik.css" ); bw_trace2( $url, "oikCSS URL", false, BW_TRACE_VERBOSE ); wp_enqueue_style( 'oikCSS', $url, array(), $version ); } $customCSS = bw_get_option( 'customCSS' ); if ( !empty( $customCSS) ) { if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) { $timestamp = oik_query_timestamp( get_stylesheet_directory(), $customCSS ); } else { $timestamp = false; } if ( $timestamp !== null ) { $customCSSurl = get_stylesheet_directory_uri() . '/' . $customCSS; // bw_trace( $customCSSurl, __FUNCTION__, __LINE__, __FILE__, "customCSSurl"); wp_register_style( 'customCSS', $customCSSurl, array(), $timestamp ); wp_enqueue_style( 'customCSS' ); } } }View on GitHub View on Trac