mirror of
https://github.com/e107inc/e107.git
synced 2025-01-29 18:47:54 +01:00
Merge pull request #3283 from SimSync/fix_1027
Closes #1027 Show thumb of main image instead of plain text link
This commit is contained in:
commit
eda1a22113
@ -653,7 +653,16 @@ class download_shortcodes extends e_shortcode
|
||||
}
|
||||
elseif($this->var['download_image'])
|
||||
{
|
||||
return "<a href='" . $url . "'>" . LAN_dl_40 . "</a>";
|
||||
$opts = array(
|
||||
//'legacy' => "{e_FILE}downloadthumbs/",
|
||||
'class' => 'download-image dl_image img-responsive img-fluid',
|
||||
'w' => 200
|
||||
);
|
||||
$image = $tp->toImage($this->var['download_image'], $opts);
|
||||
|
||||
|
||||
return "<a href='" . $url . "'>" . $image . "</a>";
|
||||
//return "<a href='" . $url . "'>" . LAN_dl_40 . "</a>";
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user