You are here

function bs_shortcodes_well in Bootstrap 3 shortcodes 7

bs_shortcodes_well

@author Filip Stefansson @since 1.0

Options: size: sm = small, lg = large

File

./bs_shortcodes.module, line 1039

Code

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