From 5ee6d76d49e0f8edf94053b578cb2e74dfda19ce Mon Sep 17 00:00:00 2001 From: Cameron Date: Wed, 28 Dec 2016 19:11:38 -0800 Subject: [PATCH] Issue #2207 - Downloads: responsive screenshot preview --- e107_plugins/download/request.php | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/e107_plugins/download/request.php b/e107_plugins/download/request.php index 50a49acd1..d58e9a04e 100644 --- a/e107_plugins/download/request.php +++ b/e107_plugins/download/request.php @@ -317,21 +317,24 @@ else if ($table == "download") { require_once(HEADERF); - $imagecaption = ''; // TODO ?name or text Screenshot + $imagecaption = ''; // TODO ?name or text Screenshot + if (file_exists(e_FILE."download/{$image}")) { - $disp = "
"; + $disp = "
"; } else if(file_exists(e_FILE."downloadimages/{$image}")) { - $disp = "
"; + $disp = "
"; } else { - $image = $tp->replaceConstants($image); - $disp = "
"; + $image = $tp->replaceConstants($image); + $disp = "
"; } + $disp .= "
".LAN_BACK."
"; + $ns->tablerender($imagecaption, $disp); require_once(FOOTERF);