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

Easy Bootstrap Shortcode, version 2.5. 35 lines.

- Page: https://pluginprobe.com/plugins/easy-bootstrap-shortcodes/2.5/code/shortcode/thumbnail/plugin_shortcode.php
- Raw: https://pluginprobe.com/plugins/easy-bootstrap-shortcodes/2.5/raw/shortcode/thumbnail/plugin_shortcode.php
- Modified: 2014-02-20T16:54:14+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/2.5/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'=>''
                    ), $params));
    $out = '';
	if ($border != '') {
		$borderClass = 'img-thumbnail';
	} else {
		$borderClass = 'img-responsive';
	}


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

add_shortcode('thumbnail', 'osc_theme_oscitasthumbnail');


```
