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/iconhead/plugin_shortcode.php +6 -8 2.53.7 View file →
@@ -3,20 +3,18 @@
3 3 function osc_theme_iconhead($params, $content = null) {
4 4 extract(shortcode_atts(array(
5 5 'class' => '',
6 6 'style' => '',
7 - 'type' => 'h1',
8 - 'color'=>''
7 + 'type' => 'h1'
9 8 ), $params));
10 9 $out = '';
11 - if($color!=''){
12 - $color='style="color:'.$color.';"';
10 + if ($style != '') {
11 + $style = ' <span class="glyphicon ' . $style . '"></span> ';
13 12 }
14 - if ($style != '') {
15 - $style = ' <span class="glyphicon ' . $style . '" '.$color.'></span> ';
13 + if ($class != '') {
14 + $class = ' class="' . $class . '"';
16 15 }
17 -
18 - $out = '<' . $type . ' class="' . $class .EBS_CONTAINER_CLASS. '" >' . $style . do_shortcode($content) . '</' . $type . '>';
16 + $out = '<' . $type . $class . '>' . $style . do_shortcode($content) . '</' . $type . '>';
19 17
20 18 return $out;
21 19 }
22 20