1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-28 10:20:45 +02: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

View File

@@ -653,7 +653,16 @@ class download_shortcodes extends e_shortcode
} }
elseif($this->var['download_image']) 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 else
{ {