| @@ -5,20 +5,12 @@ | ||
| 5 | 5 | * ********************************************************* */ |
| 6 | 6 | |
| 7 | 7 | function osc_theme_icon($params, $content = null) { |
| 8 | 8 | extract(shortcode_atts(array( |
| 9 | - 'type' => '', | |
| 10 | - 'color'=>'', | |
| 11 | - 'class' => '', | |
| 12 | - 'fontsize'=>'' | |
| 13 | - ), $params)); | |
| 14 | - if($color!=''){ | |
| 15 | - $color='color:'.$color.';'; | |
| 16 | - } | |
| 17 | - if($fontsize!=''){ | |
| 18 | - $fontsize=' font-size:'.$fontsize.'px;'; | |
| 19 | - } | |
| 20 | - $out = '<i class="glyphicon ' . $type . ' ' . $class . '" style="'.$color.$fontsize.'"></i>'; | |
| 9 | + 'type' => '', | |
| 10 | + 'class' => '', | |
| 11 | + ), $params)); | |
| 12 | + $out = '<i class="glyphicon ' . $type . ' ' . $class . '"></i>'; | |
| 21 | 13 | return $out; |
| 22 | 14 | } |
| 23 | 15 | |
| 24 | 16 | add_shortcode('icon', 'osc_theme_icon'); |