# easy-bootstrap-shortcodes/3.7/shortcode/iconhead/plugin_shortcode.php

Easy Bootstrap Shortcode, version 3.7. 23 lines.

- Page: https://pluginprobe.com/plugins/easy-bootstrap-shortcodes/3.7/code/shortcode/iconhead/plugin_shortcode.php
- Raw: https://pluginprobe.com/plugins/easy-bootstrap-shortcodes/3.7/raw/shortcode/iconhead/plugin_shortcode.php
- Modified: 2013-10-06T06:19:04+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/easy-bootstrap-shortcodes/3.7/code/shortcode/iconhead/plugin_shortcode.php#L10-L20`.

```php
<?php

function osc_theme_iconhead($params, $content = null) {
    extract(shortcode_atts(array(
                'class' => '',
                'style' => '',
                'type' => 'h1'
                    ), $params));
    $out = '';
    if ($style != '') {
        $style = ' <span class="glyphicon ' . $style . '"></span> ';
    }
    if ($class != '') {
        $class = ' class="' . $class . '"';
    }
    $out = '<' . $type . $class . '>' . $style . do_shortcode($content) . '</' . $type . '>';

    return $out;
}

add_shortcode('iconheading', 'osc_theme_iconhead');


```
