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