You appear to be a bot. Output may be restricted
Description
Format an accordion block – for jQuery UI accordion 1.9.2 or higher
Usage
bw_format_accordion( $post, $atts );
Parameters
- $post
- ( object ) required – A post object
- $atts
- ( array ) required – Attributes array – passed from the shortcode Should we not do this using apply_filters( "bw_format_accordion", $post, $atts ); or even do_action( "bw_format_accordion", … ); ?
Returns
void
Source
File name: oik/shortcodes/oik-accordion.php
Lines:
1 to 12 of 12
function bw_format_accordion( $post, $atts ) { $atts['title'] = get_the_title( $post->ID ); $thumbnail = bw_thumbnail( $post->ID, $atts ); h3( $atts['title'] ); sdiv(); if ( $thumbnail ) { bw_format_thumbnail( $thumbnail, $post, $atts ); } e( bw_excerpt( $post ) ); bw_format_read_more( $post, $atts ); ediv(); }