PluginProbe
Easy Bootstrap Shortcode / 3.7
Easy Bootstrap Shortcode v3.7
trunk 2.4.0 2.5 3.4 3.5 3.6 3.7 4.0.0 4.4 4.5 4.5.4 5.0.0 5.0.1 5.0.2
← All changes | shortcode/tooltip/plugin_shortcode.php +7 -18 4.53.7 View file →
@@ -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 +