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 +5 -9 2.53.7 View file →
@@ -12,20 +12,16 @@
12 12 'style' => '',
13 13 'align' => '',
14 14 'target' => '',
15 15 'icon' => '',
16 - 'class' => '',
17 - 'iconcolor'=>''
16 + 'class' => ''
18 17 ), $params));
19 18 $out = '';
20 19 if($icon!=''){
21 - if($iconcolor!=''){
22 - $iconcolor='style="color:'.$iconcolor.';"';
23 - }
24 20 if($align=='right'){
25 - $value=$title.' <i class="glyphicon '.$icon.'" '.$iconcolor.'></i>';
21 + $value=$title.' <i class="glyphicon '.$icon.'"></i>';
26 22 } else{
27 - $value='<i class="glyphicon '.$icon.'" '.$iconcolor.'></i> '.$title;
23 + $value='<i class="glyphicon '.$icon.'"></i> '.$title;
28 24 }
29 25 }else{
30 26 $value=$title;
31 27 }
@@ -30,11 +26,11 @@
30 26 $value=$title;
31 27 }
32 28 $target = ' target="'.($target != 'false' ? '_blank':'_self').'"';
33 29 if ($type == 'link') {
34 - $out = '<a class="btn ' . $style . ' ' . $class . ' '.EBS_CONTAINER_CLASS.'" href="' . $link . '" ' . ($target) . '>' . $value . '</a>';
30 + $out = '<a class="btn ' . $style . ' ' . $class . '" href="' . $link . '" ' . ($target) . '>' . $value . '</a>';
35 31 } elseif ($type == 'button') {
36 - $out = '<button class="btn ' . $style . ' ' . $class . ' '.EBS_CONTAINER_CLASS.'" >' . $value . '</button>';
32 + $out = '<button class="btn ' . $style . ' ' . $class . '" >' . $value . '</button>';
37 33 }
38 34 return $out;
39 35 }
40 36