Description
Format the CSS as part of the content, if required
Usage
bw_format_style( $atts, $content );Parameters
- $atts
- ( array ) required – array of parameters. The formal parameter name is "text" but ANY value will do the job
- $content
- ( string ) required – the CSS to be displayed
Returns
voidSource
File name: oik-css/shortcodes/oik-css.phpLines:
1 to 15 of 15
function bw_format_style( $atts, $content ) { if ( function_exists( 'bw_array_get_from') ) { $text=bw_array_get_from( $atts, "text,0", null ); } else { $text = bw_array_get( $atts, 'text', null ); } if ( $text ) { sdiv( "bw_css" ); if ( $text <> "." ) { e( $text ); } e( bw_geshi_it( $content ) ); ediv(); } }View on GitHub View on Trac
Called by
1 to 2 of 2
Invoked by
Calls
1 to 3 of 3
