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