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

Easy Bootstrap Shortcode, version trunk. 36 lines.

- Page: https://pluginprobe.com/plugins/easy-bootstrap-shortcodes/trunk/code/shortcode/jumbotron/plugin_shortcode.php
- Raw: https://pluginprobe.com/plugins/easy-bootstrap-shortcodes/trunk/raw/shortcode/jumbotron/plugin_shortcode.php
- Modified: 2026-08-06T19:58:08+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/trunk/code/shortcode/jumbotron/plugin_shortcode.php#L10-L20`.

```php
<?php
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}
use EBS\Security\Sanitizer;

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

function osc_theme_jumbotron( $params, $content = 'Label' ) {
	$atts = shortcode_atts(
		array(
			'bgcolor' => '',
			'class'   => '',
		),
		$params
	);

	$out     = '';
	$content = str_replace( '<br class="osc" />', '', $content );
	$content = str_replace( '<br class="osc" />\n', '', $content );

	$class      = Sanitizer::class_list( $atts['class'] );
	$style_attr = '';
	if ( '' !== $atts['bgcolor'] ) {
		$style_attr = ' style="background:' . Sanitizer::hex_color( $atts['bgcolor'] ) . ';"';
	}

	$out = '<div class="jumbotron ' . $class . EBS_CONTAINER_CLASS . '"' . $style_attr . '>' . do_shortcode( $content ) . '</div>';

	return $out;
}

ebs_backward_compatibility_callback( 'jumbotron', 'osc_theme_jumbotron' );

```
