From b820559b0dabce18321bc0e502dc8b3d9d226eac Mon Sep 17 00:00:00 2001 From: Cameron Date: Fri, 17 Aug 2018 14:15:06 -0700 Subject: [PATCH] Fixes #3103 - Image resizing for custom fields. --- e107_handlers/e_customfields_class.php | 2 +- e107_themes/bootstrap3/templates/page_template.php | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/e107_handlers/e_customfields_class.php b/e107_handlers/e_customfields_class.php index dd76b92fb..15486efd6 100644 --- a/e107_handlers/e_customfields_class.php +++ b/e107_handlers/e_customfields_class.php @@ -164,7 +164,7 @@ case "image": - return ($raw) ? $tp->thumbUrl($value) : $tp->toImage($value); + return ($raw) ? $tp->thumbUrl($value,$parm) : $tp->toImage($value,$parm); break; case "icon": diff --git a/e107_themes/bootstrap3/templates/page_template.php b/e107_themes/bootstrap3/templates/page_template.php index 74de04714..ec79b913b 100644 --- a/e107_themes/bootstrap3/templates/page_template.php +++ b/e107_themes/bootstrap3/templates/page_template.php @@ -155,6 +155,9 @@ $sc_style['CPAGENAV|default']['post'] = ''; // Override the wrapper above for {CPAGEFIELD: name=myvideo} $PAGE_WRAPPER['customfields']['CPAGEFIELD: name=myvideo'] = "{---}"; + // Make image clickable for the display of a larger image in a modal window. + $PAGE_WRAPPER['customfields']['CPAGEFIELD: name=myimage'] = "{---}"; + $PAGE_TEMPLATE['customfields']['body'] = '