You appear to be a bot. Output may be restricted
Description
Format the "post" – in a simple list item listIf there is a thumbnail parameter we include the image as well! We originally expected the thumbnail parameter to be a small number e.g. thumbnail=80 but now we support any size since the list may be displayed with the Flexslider jQuery
Usage
bw_format_list( $post, $atts );
Parameters
- $post
- ( post ) required – the post object to be displayed
- $atts
- ( array ) required – shortcode parameters
Returns
voidSource
File name: oik/includes/bw_posts.phpLines:
1 to 17 of 17
function bw_format_list( $post, $atts ) { // bw_trace( $post, __FUNCTION__, __LINE__, __FILE__, "post" ); $atts['title'] = get_the_title( $post->ID ); $attachment = ( $post->post_type == "attachment" ) ; $thumbnail = bw_thumbnail( $post->ID, $atts, $attachment ); if ( $thumbnail ) { $title = $thumbnail . $atts['title']; } else { $title = $atts['title']; } if ( !$title ) { $title = __( "Post: " ) . $post->ID; } stag( 'li' ); BW_::alink( NULL, get_permalink( $post->ID ), $title ); etag( 'li' ); }View on GitHub View on Trac