You are here

function bs_shortcodes_container in Bootstrap 3 shortcodes 7

bs_shortcodes_container

@author Robin Wouters @since 3.0.3.3

File

./bs_shortcodes.module, line 262

Code

function bs_shortcodes_container($attrs, $content = '') {
  extract(shortcode_attrs(array(
    "fluid" => '',
    "xclass" => '',
    "data" => '',
  ), $attrs));
  $class = $fluid != '' ? 'container-fluid' : 'container';
  $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);
}