You are here

function bs_shortcodes_media_body in Bootstrap 3 shortcodes 7

File

./bs_shortcodes.module, line 1575

Code

function bs_shortcodes_media_body($attrs, $content = '') {
  extract(shortcode_attrs(array(
    "title" => '',
    "xclass" => '',
    "data" => '',
  ), $attrs));
  $div_class = 'media-body';
  $div_class .= $xclass ? ' ' . $xclass : '';
  $h4_class = 'media-heading';
  $h4_class .= $xclass ? ' ' . $xclass : '';
  $data_props = _bs_shortcodes_parse_data_attributes($data);
  return sprintf('<div class="%s"%s><h4 class="%s">%s</h4>%s</div>', check_plain($div_class), $data_props ? ' ' . $data_props : '', check_plain($h4_class), check_markup($title), $content);
}