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

Easy Bootstrap Shortcode, version trunk. 33 lines.

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

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

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

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

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

	$type  = Sanitizer::class_list( $atts['type'] );
	$class = Sanitizer::class_list( $atts['class'] );

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

	return $out;
}

ebs_backward_compatibility_callback( 'well', 'osc_theme_well' );

```
