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'] = '