Description
Implement [bw_blockquote] shortcodeDisplay a blockquote unaffected by wpautop If the text comes from the $content then we allow shortcode expansion of embedded shortcodes.
Usage
$string = bw_blockquote( $atts, $content, $tag );Parameters
- $atts
- ( array ) optional – shortcode attributes
- $content
- ( string ) optional – optional content overriding text= or positional parameter
- $tag
- ( string ) optional – shortcode used
Returns
string the generated blockquoteSource
File name: oik/shortcodes/oik-blockquote.phpLines:
1 to 10 of 10
function bw_blockquote( $atts=null, $content=null, $tag=null ) { if ( $content ) { $text = bw_do_shortcode( $content ); } else { $text = bw_array_get_from( $atts, "text,0", null ); } $class = bw_array_get( $atts, "class", NULL ); _bw_blockquote( $text, $class ); return( bw_ret()); }View on GitHub View on Trac
Called by
Invoked by
Calls
1 to 5 of 5
- bw_array_get() – Return the array[index] or array->index (for an object) or a default value if not set
- bw_array_get_from() – Return the value from a list of possible parameters
- bw_do_shortcode() – Perform nested shortcode expansion
- bw_ret() – Use bw_ret() to return the contents of $bwecho, leaving the global value as NULL
- _bw_blockquote() – Produce a blockquote tag
