From 73be7b5d7b96f9ec451bc2bc0a0c1d322e4417c5 Mon Sep 17 00:00:00 2001 From: Achim Ennenbach Date: Fri, 13 Jul 2018 23:58:24 +0200 Subject: [PATCH] Closes #1027 Show thumb of main image instead of plain text link --- e107_plugins/download/download_shortcodes.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/e107_plugins/download/download_shortcodes.php b/e107_plugins/download/download_shortcodes.php index f197855b8..c1e3353a5 100644 --- a/e107_plugins/download/download_shortcodes.php +++ b/e107_plugins/download/download_shortcodes.php @@ -653,7 +653,16 @@ class download_shortcodes extends e_shortcode } elseif($this->var['download_image']) { - return "" . LAN_dl_40 . ""; + $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 "" . $image . ""; + //return "" . LAN_dl_40 . ""; } else {