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/buttons/plugin_shortcode.php +2 -1 3.63.7 View file →
@@ -24,10 +24,11 @@
24 24 }
25 25 }else{
26 26 $value=$title;
27 27 }
28 + $target = ' target="'.($target != 'false' ? '_blank':'_self').'"';
28 29 if ($type == 'link') {
29 - $out = '<a class="btn ' . $style . ' ' . $class . '" href="' . $link . '" target="' . ($target) . '">' . $value . '</a>';
30 + $out = '<a class="btn ' . $style . ' ' . $class . '" href="' . $link . '" ' . ($target) . '>' . $value . '</a>';
30 31 } elseif ($type == 'button') {
31 32 $out = '<button class="btn ' . $style . ' ' . $class . '" >' . $value . '</button>';
32 33 }
33 34 return $out;