You are here

function bs_shortcodes_emphasis in Bootstrap 3 shortcodes 7

bs_shortcodes_emphasis

File

./bs_shortcodes.module, line 1682

Code

function bs_shortcodes_emphasis($attrs, $content = '') {
  extract(shortcode_attrs(array(
    "type" => '',
    "xclass" => '',
    "data" => '',
  ), $attrs));
  $class = '';
  $class .= $type ? 'text-' . $type : 'text-muted';
  $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);
}