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 +4 -15 2.53.7 View file →
@@ -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