| 1 |
<?php |
| 2 |
|
| 3 |
function osc_theme_iconhead($params, $content = null) { |
| 4 |
extract(shortcode_atts(array( |
| 5 |
'class' => '', |
| 6 |
'style' => '', |
| 7 |
'type' => 'h1', |
| 8 |
'color'=>'' |
| 9 |
), $params)); |
| 10 |
$out = ''; |
| 11 |
if($color!=''){ |
| 12 |
$color='style="color:'.$color.';"'; |
| 13 |
} |
| 14 |
if ($style != '') { |
| 15 |
$style = ' <span class="glyphicon ' . $style . '" '.$color.'></span> '; |
| 16 |
} |
| 17 |
|
| 18 |
$out = '<' . $type . ' class="' . $class .EBS_CONTAINER_CLASS. '" >' . $style . do_shortcode($content) . '</' . $type . '>'; |
| 19 |
|
| 20 |
return $out; |
| 21 |
} |
| 22 |
|
| 23 |
add_shortcode('iconheading', 'osc_theme_iconhead'); |
| 24 |
|
| 25 |
|