You appear to be a bot. Output may be restricted
Description
Start a listDefaulting to "uo=u" for an unordered list the other options are for an ordered list or a comma separated
Usage
$string = bw_sl( $atts, $start );
Parameters
- $atts
- ( array ) optional – shortcode parameters including the optional uo= parameter
- $start
- ( mixed ) optional default: 1 –
Returns
string list typeTO DO
For an ordered list, if the optional start= parameter is included then the list numbering starts from the value givenTO DO
Document how to use comma separated – which makes use of the span tag BTW. This function has nothing to do with http://en.wikipedia.org/wiki/Bandra%E2%80%93Worli_Sea_LinkSource
File name: oik/shortcodes/oik-list.phpLines:
1 to 22 of 22
function bw_sl( $atts=null, $start=1 ) { $uo = strtolower( bw_array_get( $atts, "uo", "u" ) ) ; $class = bw_array_get( $atts, 'class', 'bw_list' ); switch ( $uo ) { case "u": case "ul": sul( $class ); break; case "o": case "ol": $extra = kv( "start", $start ); sol( $class, null, $extra); break; case "d": case "dl": stag( "dl", $class ); break; default: span( $class ); } return( $uo ); }View on GitHub View on Trac