You are here

function bs_shortcodes_jumbotron in Bootstrap 3 shortcodes 7

bs_shortcodes_jumbotron

File

./bs_shortcodes.module, line 1606

Code

function bs_shortcodes_jumbotron($attrs, $content = '') {
  extract(shortcode_attrs(array(
    "title" => '',
    "xclass" => '',
    "data" => '',
  ), $attrs));
  $class = 'jumbotron';
  $class .= $xclass ? ' ' . $xclass : '';
  $data_props = _bs_shortcodes_parse_data_attributes($data);
  return sprintf('<div class="%s"%s>%s%s</div>', check_plain($class), $data_props ? ' ' . $data_props : '', $title ? '<h1>' . check_plain($title) . '</h1>' : '', $content);
}