1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-01 20:30:39 +02:00

Fixes #3103 - Image resizing for custom fields.

This commit is contained in:
Cameron
2018-08-17 14:15:06 -07:00
parent 744a71f785
commit b820559b0d
2 changed files with 4 additions and 1 deletions

View File

@@ -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":

View File

@@ -155,6 +155,9 @@ $sc_style['CPAGENAV|default']['post'] = '</div>';
// Override the wrapper above for {CPAGEFIELD: name=myvideo}
$PAGE_WRAPPER['customfields']['CPAGEFIELD: name=myvideo'] = "<tr><td colspan='2'>{---}</td></tr>";
// Make image clickable for the display of a larger image in a modal window.
$PAGE_WRAPPER['customfields']['CPAGEFIELD: name=myimage'] = "<td><a class='e-modal' data-modal-caption='{CPAGEFIELDTITLE: name=myimage}' target='_blank' href='{CPAGEFIELD: name=myimage&mode=raw&w=800}'>{---}</a></td></tr>";
$PAGE_TEMPLATE['customfields']['body'] = '
<div class="col-xs-12 col-md-5 pull-right" style="margin-right:-15px">