function bs_shortcodes_shortcode_tooltipleft in Bootstrap Theme Shortcodes 7
1 string reference to 'bs_shortcodes_shortcode_tooltipleft'
File
- inc/
elements/ tooltips.php, line 109
Code
function bs_shortcodes_shortcode_tooltipleft($attrs, $text) {
$attrs = shortcode_attrs(array(
'title' => '',
'tooltipleft' => '',
), $attrs);
$tooltipleft = url($attrs['tooltipleft']);
if ($text) {
$style = empty($style) ? '' : ' style="' . $style . '"';
$id = empty($id) ? '' : ' id="' . $id . '"';
if ($attrs['title'] == '<none>') {
$title = '';
}
else {
$title = empty($attrs['title']) ? check_plain($text) : check_plain($attrs['title']);
$title = ' title="' . $title . '"';
}
return '<a href="#" rel="tooltip" class="hint" data-placement="left"' . $id . $style . $title . '>' . $text . '</a>';
}
return $tooltipleft;
}