function bs_shortcodes_shortcode_popoverleft in Bootstrap Theme Shortcodes 7
1 string reference to 'bs_shortcodes_shortcode_popoverleft'
File
- inc/
elements/ popovers.php, line 123
Code
function bs_shortcodes_shortcode_popoverleft($attrs, $text) {
$attrs = shortcode_attrs(array(
'title' => '',
'contents' => '',
'popoverleft' => '',
), $attrs);
$popoverleft = url($attrs['popoverleft']);
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 . '"';
$contents = empty($attrs['contents']) ? check_plain($text) : check_plain($attrs['contents']);
$contents = $contents;
}
return '<a data-toggle="popover" data-container="body" data-placement="left" data-content="' . $contents . '"' . $id . $style . $title . '>' . $text . '</a>';
}
return $popoverleft;
}