function bs_shortcodes_tooltip in Bootstrap 3 shortcodes 7
bs_shortcodes_tooltip
@author @since 1.0
File
- ./
bs_shortcodes.module, line 1465
Code
function bs_shortcodes_tooltip($attrs, $content = '') {
$defaults = array(
'title' => '',
'placement' => 'top',
'animation' => 'TRUE',
'html' => 'FALSE',
'data' => '',
);
extract(shortcode_attrs($defaults, $attrs));
$class = 'bs-tooltip';
$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;
}