Description
Implement example hook for the bw_geshi shortcodeWe can't use bw_invoke_shortcode() since we need to call esc_html() against the sample HTML code otherwise it just gets processed as normal output
Usage
bw_geshi__example( $shortcode );Parameters
- $shortcode
- ( string ) optional default: bw_geshi –
Returns
voidSource
File name: oik-css/shortcodes/oik-geshi.phpLines:
1 to 14 of 14
function bw_geshi__example( $shortcode="bw_geshi" ) { $text = __( "Demonstrating the HTML to create a link to oik-plugins.com", "oik-css" ); BW_::p( $text ); $example = "[$shortcode"; $example .= ' lang=html]<a href="https://www.oik-plugins.com">' . __( "Visit oik-plugins.com", "oik-css" ) . '</a>[/bw_geshi'; $example .= ']'; sp(); stag( "code" ); e( esc_html( $example ) ); etag( "code" ); bw_echo( '</p>' ); $expanded = apply_filters( 'the_content', $example ); e( $expanded ); }View on GitHub View on Trac
Called by
1 to 2 of 2
Invoked by
Calls
1 to 5 of 5
