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/oscpopover/plugin_shortcode.php +10 -20 2.53.7 View file →
@@ -1,20 +1,20 @@
1 1 <?php
2 2
3 3 function osc_theme_popover($params, $content = 'Popover') {
4 4 extract(shortcode_atts(array(
5 - 'trigger' => '',
6 - 'title' => '',
7 - 'pop_content' => '',
8 - 'style' => '',
9 - 'size' => '',
10 - 'type' => '',
11 - 'class' => ''
12 - ), $params));
5 + 'trigger' => '',
6 + 'title' => '',
7 + 'pop_content' => '',
8 + 'style' => '',
9 + 'size' => '',
10 + 'type' => '',
11 + 'class' => ''
12 + ), $params));
13 13 $out = '';
14 - $out = '<button class="osc_popover btn ' . $size . ' ' . $type . ' ' . $class .EBS_CONTAINER_CLASS. '" data-content="' . $pop_content . '" data-placement="' . $style . '" data-toggle="popover" data-trigger="' . $trigger . '" data-container="body" type="button" data-title="' . $title . '"> ' . do_shortcode($content) . ' </button>';
14 + $out = '<button class="osc_popover btn ' . $size . ' ' . $type . ' ' . $class . '" data-content="' . $pop_content . '" data-placement="' . $style . '" data-toggle="popover" data-trigger="' . $trigger . '" data-container="body" type="button" data-title="' . $title . '"> ' . do_shortcode($content) . ' </button>';
15 15
16 -if(EBS_POPOVER_TEMPLATE==''){
16 +
17 17 $out .= "
18 18 <script>
19 19 jQuery(document).ready(function(){
20 20 jQuery('.osc_popover').popover();
@@ -21,18 +21,8 @@
21 21 });
22 22 </script>
23 23 ";
24 24
25 -
26 -} else{
27 - $out .= "
28 - <script>
29 - jQuery(document).ready(function(){
30 - jQuery('.osc_popover').popover({template:'".EBS_POPOVER_TEMPLATE."'});
31 - });
32 - </script>
33 - ";
34 -}
35 25 return $out;
36 26 }
37 27
38 28 add_shortcode('popover', 'osc_theme_popover');