You are here

function bs_shortcodes_breadcrumb in Bootstrap 3 shortcodes 7

bs_shortcodes_breadcrumb

File

./bs_shortcodes.module, line 808

Code

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