Description
Display CSV as a list- The list format is determined by the uo= parameter
- Empty lines are ignored
Usage
bw_csv_content_array_list( $content_array, $atts );Parameters
- $content_array
- ( array ) required – array of contents to be displayed
- $atts
- ( array ) optional – shortcode parameters
Returns
voidSource
File name: oik-bob-bing-wide/shortcodes/oik-csv.phpLines:
1 to 13 of 13
function bw_csv_content_array_list( $content_array, $atts=null ) { oik_require( "shortcodes/oik-list.php" ); $ol = bw_sl( $atts ); foreach ( $content_array as $line ) { $line = trim( $line ); if ( $line ) { $tablerow = str_getcsv( $line, $atts['del'] ); $tablerow = bw_csv_expand_shortcodes( $tablerow ); bw_csv_output_list_item( $tablerow, $ol ); } } bw_el( $ol ); }View on GitHub
Called by
Invoked by
Calls
1 to 2 of 2
Call hooks
API Letters:
