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

Easy Bootstrap Shortcode, version 3.7. 21 lines.

- Page: https://pluginprobe.com/plugins/easy-bootstrap-shortcodes/3.7/code/shortcode/well/plugin_shortcode.php
- Raw: https://pluginprobe.com/plugins/easy-bootstrap-shortcodes/3.7/raw/shortcode/well/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/well/plugin_shortcode.php#L10-L20`.

```php
<?php

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

function osc_theme_well($params, $content = 'Label') {
    extract(shortcode_atts(array(
                'type' => '',
                'class' => ''
                    ), $params));
    $out = '';
    $content = str_replace('<br class="osc" />', '', $content);
    $content = str_replace('<br class="osc" />\n', '', $content);
    $out = '<div class="well ' . $type . ' ' . $class . '">' . do_shortcode($content) . '</div>';
    return $out;
}

add_shortcode('well', 'osc_theme_well');


```
