Changed the 192x192 default to use the max thumbnail size. Made this work with SVG aswell.

This commit is contained in:
Daku 2011-12-16 18:36:08 +00:00
parent a38327b6d3
commit 56931b0eaa
7 changed files with 14 additions and 14 deletions

View file

@ -20,8 +20,8 @@ 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();
if($image->ext == 'swf'){
$tsize = get_thumbnail_size(192, 192); }
if($image->ext == 'swf' || 'svg'){
$tsize = get_thumbnail_size('thumb_width', 'thumb_height'); }
else{
$tsize = get_thumbnail_size($image->width, $image->height); }
return "<a href='$h_view_link'><img title='$h_tip' alt='$h_tip' ".

View file

@ -33,8 +33,8 @@ 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();
if($image->ext == 'swf'){
$tsize = get_thumbnail_size(192, 192); }
if($image->ext == 'swf' || 'svg'){
$tsize = get_thumbnail_size('thumb_width', 'thumb_height'); }
else{
$tsize = get_thumbnail_size($image->width, $image->height); }
return "

View file

@ -33,8 +33,8 @@ 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();
if($image->ext == 'swf'){
$tsize = get_thumbnail_size(192, 192); }
if($image->ext == 'swf' || 'svg'){
$tsize = get_thumbnail_size('thumb_width', 'thumb_height'); }
else{
$tsize = get_thumbnail_size($image->width, $image->height); }
return "

View file

@ -21,8 +21,8 @@ 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();
if($image->ext == 'swf'){
$tsize = get_thumbnail_size(192, 192); }
if($image->ext == 'swf' || 'svg'){
$tsize = get_thumbnail_size('thumb_width', 'thumb_height'); }
else{
$tsize = get_thumbnail_size($image->width, $image->height); }
return "<a class='thumb' href='$h_view_link'><img title='$h_tip' alt='$h_tip' ".

View file

@ -33,8 +33,8 @@ 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();
if($image->ext == 'swf'){
$tsize = get_thumbnail_size(192, 192); }
if($image->ext == 'swf' || 'svg'){
$tsize = get_thumbnail_size('thumb_width', 'thumb_height'); }
else{
$tsize = get_thumbnail_size($image->width, $image->height); }
return "

View file

@ -31,8 +31,8 @@ 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();
if($image->ext == 'swf'){
$tsize = get_thumbnail_size(192, 192); }
if($image->ext == 'swf' || 'svg'){
$tsize = get_thumbnail_size('thumb_width', 'thumb_height'); }
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' ".

View file

@ -34,8 +34,8 @@ class Themelet {
$h_tip = html_escape($image->get_tooltip());
$h_image_link = $image->get_image_link();
$h_thumb_link = $image->get_thumb_link();
if($image->ext == 'swf'){
$tsize = get_thumbnail_size(192, 192); }
if($image->ext == 'swf' || 'svg'){
$tsize = get_thumbnail_size('thumb_width', 'thumb_height'); }
else{
$tsize = get_thumbnail_size($image->width, $image->height); }
return "