Description
Calls a shortcode for a simple example.
Usage
bw_invoke_shortcode( $shortcode, $atts, $text );Parameters
- $shortcode
- ( string ) required – name of shortcode
- $atts
- ( string ) optional – attribute parameters to the shortcode
- $text
- ( string ) optional – translated brief description of the shortcode
Returns
voidSource
File name: oik/libs/oik-sc-help.phpLines:
1 to 19 of 19
function bw_invoke_shortcode( $shortcode, $atts=null, $text=null ) { BW_::p( $text ); $example = "[$shortcode"; if ($atts ) $example .= " $atts"; $example .= ']'; sp(); stag( "code" ); e( $example ); etag( "code" ); bw_echo( '</p>' ); //p( $example ); $saved = bw_global_post(); $expanded = bw_expand_shortcode( $example ); bw_global_post( $saved ); e( $expanded ); bw_trace2( $expanded, "expanded", true, BW_TRACE_DEBUG ); //bw_backtrace(); }View on GitHub View on Trac
Called by
1 to 15 of 18
- bwtrace__example() – Displays examples for [bwtrace] shortcode
- bw_accordion__example() –
- bw_address__example() –
- bw_bookmarks__example() – Example for [bw_bookmarks] shortcode
- bw_button__example() – Example for [bw_button]
- bw_contact_button__example() –
- bw_contact_form__example() – Implement example hook for [bw_contact_form]
- bw_countdown__example() – Examples for [bw_countdown] shortcode
- bw_iframe__example() –
- bw_link__example() – Example hook for [bw_link] shortcode
- bw_show_googlemap__example() – Example for [bw_show_googlemap] shortcode
- bw_tabs__example() – Example for [bw_tabs] shortcode
- bw_thumbs__example() – Example for [bw_thumbs] shortcode
- embed__example() – Example for the embed shortcode
- nggallery__example() – Give an example of the NextGEN gallery and a link to more examples
Invoked by
Calls
1 to 9 of 9
- BW_::p() – Outputs a paragraph of translated text
- bw_expand_shortcode() – Expand the shortcode
- bw_global_post() – Save/restore the global post and id
- bw_trace2() – Trace $value to the trace log file if tracing is active
- e() – Outputs some translated / non-translatable text
- ep() – End a paragraph (p) tag
- etag() – Output an end tag
- sp() – Start a paragraph
- stag() – Output an HTML opening tag
