# easy-bootstrap-shortcodes/4.5/shortcode/labels/plugin_shortcode.php

Easy Bootstrap Shortcode, version 4.5. 19 lines.

- Page: https://pluginprobe.com/plugins/easy-bootstrap-shortcodes/4.5/code/shortcode/labels/plugin_shortcode.php
- Raw: https://pluginprobe.com/plugins/easy-bootstrap-shortcodes/4.5/raw/shortcode/labels/plugin_shortcode.php
- Modified: 2015-09-28T11:09:44+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/4.5/code/shortcode/labels/plugin_shortcode.php#L10-L20`.

```php
<?php

/* * *********************************************************
 * BUTTONS
 * ********************************************************* */

function osc_theme_labels($params, $content = 'Label') {
    extract(shortcode_atts(array(
                'type' => 'label-default',
                'class' => ''
                    ), $params));
    $out = '';
    $content = str_replace("<br />", '', $content);
    $content = str_replace("<br />\n", '', $content);
    $out = '<span class="label ' . $type . ' ' . $class . EBS_CONTAINER_CLASS.'">' . do_shortcode($content) . '</span>';
    return $out;
}

ebs_backward_compatibility_callback('label', 'osc_theme_labels');
```
