| @@ -13,16 +13,16 @@ | ||
| 13 | 13 | 'class' => '' |
| 14 | 14 | ), $params)); |
| 15 | 15 | $out = ''; |
| 16 | 16 | if ($type == 'link') { |
| 17 | - $out = '<a href="' . $link . '" data-placement="' . $style . '" title="' . $tooltip . '" class="osc_tooltip ' . $class .'">' . do_shortcode($content) . '</a> | |
| 17 | + $out = '<a href="' . $link . '" data-placement="' . $style . '" title="' . $tooltip . '" class="osc_tooltip ' . $class . '">' . do_shortcode($content) . '</a> | |
| 18 | 18 | '; |
| 19 | 19 | } elseif ($type == 'button') { |
| 20 | - $out = '<button type="button" data-toggle="tooltip" data-placement="' . $style . '" title="' . $tooltip . '" class="btn osc_tooltip ' . $class . '">' . do_shortcode($content) . '</button>'; | |
| 20 | + $out = '<button type="button" data-toggle="tooltip" data-placement="' . $style . '" title="' . $tooltip . '" class="btn osc_tooltip ' . $class . '">' . do_shortcode($content) . '</button>'; | |
| 21 | 21 | } |
| 22 | 22 | |
| 23 | - if(EBS_TOOLTIP_TEMPLATE==''){ | |
| 24 | - $out .= " | |
| 23 | + | |
| 24 | + $out .= " | |
| 25 | 25 | <script> |
| 26 | 26 | jQuery(document).ready(function() { |
| 27 | 27 | jQuery('.osc_tooltip').tooltip(); |
| 28 | 28 | }); |
| @@ -27,19 +27,8 @@ | ||
| 27 | 27 | jQuery('.osc_tooltip').tooltip(); |
| 28 | 28 | }); |
| 29 | 29 | </script> |
| 30 | 30 | "; |
| 31 | - | |
| 32 | - } else{ | |
| 33 | - $out .= " | |
| 34 | - <script> | |
| 35 | - jQuery(document).ready(function(){ | |
| 36 | - jQuery('.osc_tooltip').tooltip({template:'".EBS_TOOLTIP_TEMPLATE."'}); | |
| 37 | - }); | |
| 38 | - </script> | |
| 39 | - "; | |
| 40 | - } | |
| 41 | - | |
| 42 | 31 | |
| 43 | 32 | return $out; |
| 44 | 33 | } |
| 45 | 34 | |