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:
@@ -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":
|
||||
|
@@ -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">
|
||||
|
Reference in New Issue
Block a user