Made flash thumbnails have a default 192x192 resolution.
This commit is contained in:
parent
583de3fe6a
commit
a38327b6d3
7 changed files with 28 additions and 7 deletions
|
@ -20,7 +20,10 @@ class Themelet {
|
|||
$h_view_link = make_link("post/view/{$image->id}", $query);
|
||||
$h_tip = html_escape($image->get_tooltip());
|
||||
$h_thumb_link = $image->get_thumb_link();
|
||||
$tsize = get_thumbnail_size($image->width, $image->height);
|
||||
if($image->ext == 'swf'){
|
||||
$tsize = get_thumbnail_size(192, 192); }
|
||||
else{
|
||||
$tsize = get_thumbnail_size($image->width, $image->height); }
|
||||
return "<a href='$h_view_link'><img title='$h_tip' alt='$h_tip' ".
|
||||
"width='{$tsize[0]}' height='{$tsize[1]}' src='$h_thumb_link' /></a>";
|
||||
}
|
||||
|
|
|
@ -33,7 +33,10 @@ class Themelet {
|
|||
$h_view_link = make_link("post/view/$i_id", $query);
|
||||
$h_tip = html_escape($image->get_tooltip());
|
||||
$h_thumb_link = $image->get_thumb_link();
|
||||
$tsize = get_thumbnail_size($image->width, $image->height);
|
||||
if($image->ext == 'swf'){
|
||||
$tsize = get_thumbnail_size(192, 192); }
|
||||
else{
|
||||
$tsize = get_thumbnail_size($image->width, $image->height); }
|
||||
return "
|
||||
<!-- cancel border -->
|
||||
<div class='thumbblock'>
|
||||
|
|
|
@ -33,7 +33,10 @@ class Themelet {
|
|||
$h_view_link = make_link("post/view/$i_id", $query);
|
||||
$h_tip = html_escape($image->get_tooltip());
|
||||
$h_thumb_link = $image->get_thumb_link();
|
||||
$tsize = get_thumbnail_size($image->width, $image->height);
|
||||
if($image->ext == 'swf'){
|
||||
$tsize = get_thumbnail_size(192, 192); }
|
||||
else{
|
||||
$tsize = get_thumbnail_size($image->width, $image->height); }
|
||||
return "
|
||||
<div class='thumbblock'>
|
||||
<div class='rr thumb'>
|
||||
|
|
|
@ -21,7 +21,10 @@ class Themelet {
|
|||
$h_view_link = make_link("post/view/{$image->id}", $query);
|
||||
$h_tip = html_escape($image->get_tooltip());
|
||||
$h_thumb_link = $image->get_thumb_link();
|
||||
$tsize = get_thumbnail_size($image->width, $image->height);
|
||||
if($image->ext == 'swf'){
|
||||
$tsize = get_thumbnail_size(192, 192); }
|
||||
else{
|
||||
$tsize = get_thumbnail_size($image->width, $image->height); }
|
||||
return "<a class='thumb' href='$h_view_link'><img title='$h_tip' alt='$h_tip' ".
|
||||
"width='{$tsize[0]}' height='{$tsize[1]}' src='$h_thumb_link' /></a>";
|
||||
}
|
||||
|
|
|
@ -33,7 +33,10 @@ class Themelet {
|
|||
$h_view_link = make_link("post/view/$i_id", $query);
|
||||
$h_tip = html_escape($image->get_tooltip());
|
||||
$h_thumb_link = $image->get_thumb_link();
|
||||
$tsize = get_thumbnail_size($image->width, $image->height);
|
||||
if($image->ext == 'swf'){
|
||||
$tsize = get_thumbnail_size(192, 192); }
|
||||
else{
|
||||
$tsize = get_thumbnail_size($image->width, $image->height); }
|
||||
return "
|
||||
<div class='thumbblock'>
|
||||
|
||||
|
|
|
@ -31,7 +31,10 @@ class Themelet {
|
|||
$h_view_link = make_link("post/view/$i_id", $query);
|
||||
$h_tip = html_escape($image->get_tooltip());
|
||||
$h_thumb_link = $image->get_thumb_link();
|
||||
$tsize = get_thumbnail_size($image->width, $image->height);
|
||||
if($image->ext == 'swf'){
|
||||
$tsize = get_thumbnail_size(192, 192); }
|
||||
else{
|
||||
$tsize = get_thumbnail_size($image->width, $image->height); }
|
||||
return "<a class='thumb' href='$h_view_link'><img id='$i_id' title='$h_tip' alt='$h_tip' ".
|
||||
"width='{$tsize[0]}' height='{$tsize[1]}' src='$h_thumb_link' /></a>";
|
||||
}
|
||||
|
|
|
@ -34,7 +34,10 @@ class Themelet {
|
|||
$h_tip = html_escape($image->get_tooltip());
|
||||
$h_image_link = $image->get_image_link();
|
||||
$h_thumb_link = $image->get_thumb_link();
|
||||
$tsize = get_thumbnail_size($image->width, $image->height);
|
||||
if($image->ext == 'swf'){
|
||||
$tsize = get_thumbnail_size(192, 192); }
|
||||
else{
|
||||
$tsize = get_thumbnail_size($image->width, $image->height); }
|
||||
return "
|
||||
<div class='thumbblock'>
|
||||
<div class='rr thumb'>
|
||||
|
|
Reference in a new issue