You are here

function bs_shortcodes_page_header in Bootstrap 3 shortcodes 7

bs_shortcodes_page_header

File

./bs_shortcodes.module, line 1633

Code

function bs_shortcodes_page_header($attrs, $content = '') {
  extract(shortcode_attrs(array(
    "xclass" => '',
    "data" => '',
  ), $attrs));
  $data_props = _bs_shortcodes_parse_data_attributes($data);
  $class = "page-header";
  $class .= $xclass ? ' ' . $xclass : '';
  $return = '';
  $title = '';
  $tag = 'div';
  $content = _bs_shortcodes_strip_paragraph($content);
  $content = _bs_shortcodes_nest_dom_element('h1', 'div', $content);
  $return .= _bs_shortcodes_get_dom_element($tag, $content, $class, $title, $data);
  return $return;
}