Description
Format a tabs block – for jQuery UI tabs 1.9.2 or higher
Usage
bw_format_tabs( $post, $atts, $selector );Parameters
- $post
- ( object ) required – A post object
- $atts
- ( array ) required – Attributes array – passed from the shortcode
- $selector
- ( mixed ) required –
Returns
voidSource
File name: oik/shortcodes/oik-tabs.phpLines:
1 to 13 of 13
function bw_format_tabs( $post, $atts, $selector ) { $atts['title'] = get_the_title( $post->ID ); $thumbnail = bw_thumbnail( $post->ID, $atts ); $id = $selector . '-' . $post->ID; sdiv( "group", $id ); if ( $thumbnail ) { bw_format_thumbnail( $thumbnail, $post, $atts ); } e( bw_excerpt( $post ) ); bw_format_read_more( $post, $atts ); sediv( "cleared" ); ediv(); }View on GitHub View on Trac
Called by
1 to 1 of 1
Invoked by
Calls
1 to 8 of 8
- bw_excerpt() – Return the excerpt from the $post
- bw_format_read_more() – Produce a read_more link as required ( block )
- bw_format_thumbnail() – Format the thumbnail when displayed in a block
- bw_thumbnail() – Get the thumbnail of the specified size
- e() – Outputs some translated / non-translatable text
- ediv() – End a div
- sdiv() – Start a div
- sediv() – Create a dummy div which may be used for placing graphics using background images in CSS
