function bs_shortcodes_divider in Bootstrap 3 shortcodes 7
bs_shortcodes_dropdown_divider
@author M. W. Delaney
File
- ./
bs_shortcodes.module, line 351
Code
function bs_shortcodes_divider($attrs, $content = '') {
extract(shortcode_attrs(array(
"xclass" => '',
"data" => '',
), $attrs));
$class = 'divider';
$class .= $xclass ? ' ' . $xclass : '';
$data_props = _bs_shortcodes_parse_data_attributes($data);
return sprintf('<li class="%s"%s>%s</li>', check_plain($class), $data_props ? ' ' . $data_props : '', $content);
}