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

Optimized media-manager imagepicker() default thumbnail size for faster load times.

This commit is contained in:
Cameron
2016-06-05 13:32:22 -07:00
parent 9677cec5e9
commit a7e832f6e8

View File

@@ -848,14 +848,16 @@ class e_form
$title = (vartrue($sc_parameters['help'])) ? "title='".$sc_parameters['help']."'" : ""; $title = (vartrue($sc_parameters['help'])) ? "title='".$sc_parameters['help']."'" : "";
$width = vartrue($sc_parameters['w'], 120); $width = vartrue($sc_parameters['w'], 120);
$height = vartrue($sc_parameters['h'], 100); $height = vartrue($sc_parameters['h'], 0);
$ret = "<div class='imgselector-container e-tip' {$title} style='vertical-align:top;margin-right:25px; display:inline-block; width:".$width."px;min-height:".$height."px;'>"; $ret = "<div class='imgselector-container e-tip' {$title} style='vertical-align:top;margin-right:25px; display:inline-block; width:".$width."px;min-height:".$height."px;'>";
$att = 'aw='.$width."'&ah=".$height."'"; $att = 'aw='.$width."'&ah=".$height."'";
$thpath = isset($sc_parameters['nothumb']) || vartrue($hide) ? $default : $tp->thumbUrl($default_thumb, $att, true); $thpath = empty($default) ? $default_url : $tp->thumbUrl($default_thumb, $att, true);
//isset($sc_parameters['nothumb']) || vartrue($hide) ?
$label = "<img id='{$name_id}_prev' src='{$default_url}' alt='{$default_url}' class='well well-small image-selector img-responsive' style='display:block;' />"; $label = "<img id='{$name_id}_prev' src='".$thpath."' alt='{$default_url}' class='well well-small image-selector img-responsive' style='display:block;' />";
if($cat != 'news' && $cat !='page' && $cat !='') if($cat != 'news' && $cat !='page' && $cat !='')
{ {