You are here

function bs_shortcodes_img in Bootstrap 3 shortcodes 7

bs_shortcodes_img

File

./bs_shortcodes.module, line 1709

Code

function bs_shortcodes_img($attrs, $content = '') {
  extract(shortcode_attrs(array(
    "type" => '',
    "responsive" => '',
    "xclass" => '',
    "title" => '',
    "data" => '',
  ), $attrs));
  $class = '';
  $class .= $type ? 'img-' . $type . ' ' : '';
  $class .= $responsive != '' ? ' img-responsive' : '';
  $class .= $xclass ? ' ' . $xclass : '';
  $return = '';
  $tag = array(
    'img',
  );
  $return .= _bs_shortcodes_scrape_dom_element($tag, $content, $class, $title, $data);
  return $return;
}