function bs_shortcodes_popover in Bootstrap 3 shortcodes 7
bs_shortcodes_popover
File
- ./
bs_shortcodes.module, line 1496
Code
function bs_shortcodes_popover($attrs, $content = '') {
$defaults = array(
'title' => '',
'text' => '',
'placement' => 'top',
'animation' => 'TRUE',
'html' => 'FALSE',
'data' => '',
);
extract(shortcode_attrs($defaults, $attrs));
$class = 'bs-popover';
$data .= _bs_shortcodes_check_for_data($data) . 'toggle,popover';
$data .= _bs_shortcodes_check_for_data($data) . 'content,' . str_replace(',', ',', $text);
$data .= $animation ? _bs_shortcodes_check_for_data($data) . 'animation,' . $animation : '';
$data .= $placement ? _bs_shortcodes_check_for_data($data) . 'placement,' . $placement : '';
$data .= $html ? _bs_shortcodes_check_for_data($data) . 'html,' . $html : '';
$return = '';
$tag = 'span';
$content = $content;
$return .= _bs_shortcodes_get_dom_element($tag, $content, $class, $title, $data);
return $return;
}