function bs_shortcodes_label in Bootstrap 3 shortcodes 7
bs_shortcodes_label
@author Filip Stefansson @since 1.0
File
- ./
bs_shortcodes.module, line 865
Code
function bs_shortcodes_label($attrs, $content = '') {
extract(shortcode_attrs(array(
"type" => '',
"xclass" => '',
"data" => '',
), $attrs));
$class = 'label';
$class .= $type ? ' label-' . $type : ' label-default';
$class .= $xclass ? ' ' . $xclass : '';
$data_props = _bs_shortcodes_parse_data_attributes($data);
return sprintf('<span class="%s"%s>%s</span>', check_plain($class), $data_props ? ' ' . $data_props : '', $content);
}