1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-28 10:20:45 +02:00

Closes #1027 Show thumb of main image instead of plain text link

This commit is contained in:
Achim Ennenbach
2018-07-13 23:58:24 +02:00
parent 26d72ff21e
commit 73be7b5d7b

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
{