# easy-bootstrap-shortcodes/4.4/shortcode/jumbotron/plugin_shortcode.php

Easy Bootstrap Shortcode, version 4.4. 20 lines.

- Page: https://pluginprobe.com/plugins/easy-bootstrap-shortcodes/4.4/code/shortcode/jumbotron/plugin_shortcode.php
- Raw: https://pluginprobe.com/plugins/easy-bootstrap-shortcodes/4.4/raw/shortcode/jumbotron/plugin_shortcode.php
- Modified: 2015-05-27T06:08: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.4/code/shortcode/jumbotron/plugin_shortcode.php#L10-L20`.

```php
<?php

/* * *********************************************************
 * Jumbotron
 * ********************************************************* */

function osc_theme_jumbotron($params, $content = 'Label') {
    extract(shortcode_atts(array(
                'bgcolor' => '',
                'class' => ''
                    ), $params));
    $out = '';
    $content = str_replace('<br class="osc" />', '', $content);
    $content = str_replace('<br class="osc" />\n', '', $content);
    $style=$bgcolor!=''?' style="background:'.$bgcolor.';"':'';
    $out = '<div class="jumbotron ' . $class .EBS_CONTAINER_CLASS. '"'.$style.'>' . do_shortcode($content) . '</div>';
    return $out;
}

ebs_backward_compatibility_callback('jumbotron', 'osc_theme_jumbotron');
```
