1
0
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:
Cameron 2018-07-14 12:53:10 -07:00 committed by GitHub
commit eda1a22113
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
{