function bs_shortcodes_media_object in Bootstrap 3 shortcodes 7
File
- ./
bs_shortcodes.module, line 1554
Code
function bs_shortcodes_media_object($attrs, $content = '') {
extract(shortcode_attrs(array(
"pull" => "left",
"xclass" => '',
"data" => '',
), $attrs));
$class = "media-object img-responsive";
$class .= $xclass ? ' ' . $xclass : '';
$return = '';
$tag = array(
'figure',
'div',
'img',
'i',
'span',
);
$title = '';
$content = preg_replace('/(<br>)+$/', '', $content);
$return .= _bs_shortcodes_scrape_dom_element($tag, $content, $class, $title, $data);
$return = '<span class="pull-' . check_plain($pull) . '">' . $return . '</span>';
return $return;
}