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

Easy Bootstrap Shortcode, version 4.4. 35 lines.

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

```php
<?php

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

function osc_theme_oscitasthumbnail($params, $content = 'Label') {
    extract(shortcode_atts(array(
                'src' => '',
                'class' => '',
                'link' => '',
                'border'=>'',
                'target'=>'_self',
                'alt'=>'',
                    ), $params));
    $out = '';
	if ($border != '') {
		$borderClass = 'img-thumbnail';
	} else {
		$borderClass = 'img-responsive';
	}


	//$out = ' <div class="img-thumbnail ' . $class . '">';
	if ($link != '') {
		$out .='<a href="' . $link . '" target="'.$target.'">';
	}
	$out .= '<img src="' . $src . '" class="' . $borderClass.EBS_CONTAINER_CLASS . ' oscitas-res-image" alt="'.$alt.'">';
	if ($link != '') {
		$out .='</a>';
	}
    return $out;
}

ebs_backward_compatibility_callback('thumbnail', 'osc_theme_oscitasthumbnail');
```
