function bs_shortcodes_dropdown_header in Bootstrap 3 shortcodes 7
bs_shortcodes_dropdown_header
@author M. W. Delaney
File
- ./
bs_shortcodes.module, line 378
Code
function bs_shortcodes_dropdown_header($attrs, $content = '') {
extract(shortcode_attrs(array(
"xclass" => '',
"data" => '',
), $attrs));
$class = 'dropdown-header';
$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);
}