From a38327b6d3784b1ee3be41ae1606a4b1e42c4c91 Mon Sep 17 00:00:00 2001 From: Daku Date: Fri, 16 Dec 2011 16:34:23 +0000 Subject: [PATCH] Made flash thumbnails have a default 192x192 resolution. --- themes/danbooru/themelet.class.php | 5 ++++- themes/default/themelet.class.php | 5 ++++- themes/flat/themelet.class.php | 5 ++++- themes/futaba/themelet.class.php | 5 ++++- themes/lite/themelet.class.php | 5 ++++- themes/old_default/themelet.class.php | 5 ++++- themes/warm/themelet.class.php | 5 ++++- 7 files changed, 28 insertions(+), 7 deletions(-) diff --git a/themes/danbooru/themelet.class.php b/themes/danbooru/themelet.class.php index 2fa978a5..7cd8631c 100644 --- a/themes/danbooru/themelet.class.php +++ b/themes/danbooru/themelet.class.php @@ -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 "$h_tip"; } diff --git a/themes/default/themelet.class.php b/themes/default/themelet.class.php index 159f8881..4fd5e56d 100644 --- a/themes/default/themelet.class.php +++ b/themes/default/themelet.class.php @@ -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 "
diff --git a/themes/flat/themelet.class.php b/themes/flat/themelet.class.php index b79ccc73..5376e6fc 100644 --- a/themes/flat/themelet.class.php +++ b/themes/flat/themelet.class.php @@ -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 "
diff --git a/themes/futaba/themelet.class.php b/themes/futaba/themelet.class.php index 706f3f1b..c5a902cf 100644 --- a/themes/futaba/themelet.class.php +++ b/themes/futaba/themelet.class.php @@ -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 "$h_tip"; } diff --git a/themes/lite/themelet.class.php b/themes/lite/themelet.class.php index 8d57b147..2714233f 100644 --- a/themes/lite/themelet.class.php +++ b/themes/lite/themelet.class.php @@ -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 "
diff --git a/themes/old_default/themelet.class.php b/themes/old_default/themelet.class.php index 41c5cf5e..5b25a843 100644 --- a/themes/old_default/themelet.class.php +++ b/themes/old_default/themelet.class.php @@ -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 "$h_tip"; } diff --git a/themes/warm/themelet.class.php b/themes/warm/themelet.class.php index 89f4dcf8..7f90ba8a 100644 --- a/themes/warm/themelet.class.php +++ b/themes/warm/themelet.class.php @@ -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 "