1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-04 13:47:31 +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": case "image":
return ($raw) ? $tp->thumbUrl($value) : $tp->toImage($value); return ($raw) ? $tp->thumbUrl($value,$parm) : $tp->toImage($value,$parm);
break; break;
case "icon": case "icon":

View File

@@ -155,6 +155,9 @@ $sc_style['CPAGENAV|default']['post'] = '</div>';
// Override the wrapper above for {CPAGEFIELD: name=myvideo} // Override the wrapper above for {CPAGEFIELD: name=myvideo}
$PAGE_WRAPPER['customfields']['CPAGEFIELD: name=myvideo'] = "<tr><td colspan='2'>{---}</td></tr>"; $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'] = ' $PAGE_TEMPLATE['customfields']['body'] = '
<div class="col-xs-12 col-md-5 pull-right" style="margin-right:-15px"> <div class="col-xs-12 col-md-5 pull-right" style="margin-right:-15px">