PluginProbe
Easy Bootstrap Shortcode / 4.5
Easy Bootstrap Shortcode v4.5
trunk 2.4.0 2.5 3.4 3.5 3.6 3.7 4.0.0 4.4 4.5 4.5.4 5.0.0 5.0.1 5.0.2
easy-bootstrap-shortcodes / shortcode / thumbnail / plugin_shortcode.php

plugin_shortcode.php in Easy Bootstrap Shortcode 4.5, at shortcode/thumbnail/plugin_shortcode.php

35 lines 980 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /* * *********************************************************
4 * BUTTONS
5 * ********************************************************* */
6
7 function osc_theme_oscitasthumbnail($params, $content = 'Label') {
8 extract(shortcode_atts(array(
9 'src' => '',
10 'class' => '',
11 'link' => '',
12 'border'=>'',
13 'target'=>'_self',
14 'alt'=>'',
15 ), $params));
16 $out = '';
17 if ($border != '') {
18 $borderClass = 'img-thumbnail';
19 } else {
20 $borderClass = 'img-responsive';
21 }
22
23
24 //$out = ' <div class="img-thumbnail ' . $class . '">';
25 if ($link != '') {
26 $out .='<a href="' . $link . '" target="'.$target.'">';
27 }
28 $out .= '<img src="' . $src . '" class="' . $borderClass.EBS_CONTAINER_CLASS . ' oscitas-res-image" alt="'.$alt.'">';
29 if ($link != '') {
30 $out .='</a>';
31 }
32 return $out;
33 }
34
35 ebs_backward_compatibility_callback('thumbnail', 'osc_theme_oscitasthumbnail');