You appear to be a bot. Output may be restricted
Description
Implement [bw_csv] shortcode for simpler table display- If there's embedded content then this is displayed
- If there is a src= parameter or unnamed parameter then this indicates the CSV source file
- If this is numeric it's considered to be a post ID
- The display format is controlled using the uo= and th= parameters
- We need to cater for filters already applied by WordPress core, such as removing any trailing br's added just before newlines
Usage
bw_csv( $atts, $content, $tag );
Parameters
- $atts
- ( array ) optional – shortcode parameters
- $content
- ( string ) optional – inline content is accepted
- $tag
- ( string ) optional – shortcode tag
Returns
voidSource
File name: oik-bob-bing-wide/shortcodes/oik-csv.phpLines:
1 to 16 of 16
function bw_csv( $atts=null, $content=null, $tag=null ) { // bw_trace2(); $content_array = null; oik_require_lib( 'class-oik-attachment-contents'); if ( class_exists( 'Oik_attachment_contents') ) { $oik_attachment_contents=new Oik_attachment_contents(); $content_array = $oik_attachment_contents->get_contents_array( $atts, $content ); } else { e( "Error: Oik_attachment_contents not loaded" ); } if ( $content_array ) { $atts['del'] = bw_csv_determine_delimiter( $content_array, $atts ); bw_csv_content_array_paged( $content_array, $atts ); } return( bw_ret() ); }View on GitHub