scaled category thumbnails
This commit is contained in:
parent
0d5b2ecab1
commit
9695c6b45b
@ -191,7 +191,8 @@ class TagList implements Extension {
|
|||||||
$image = Image::by_random(array($row['tag']));
|
$image = Image::by_random(array($row['tag']));
|
||||||
if(is_null($image)) continue; // one of the popular tags has no images
|
if(is_null($image)) continue; // one of the popular tags has no images
|
||||||
$thumb = $image->get_thumb_link();
|
$thumb = $image->get_thumb_link();
|
||||||
$html .= "<td><a href='$link'><img src='$thumb'><br>$h_tag</a></td>\n";
|
$tsize = get_thumbnail_size($image->width, $image->height);
|
||||||
|
$html .= "<td><a href='$link'><img src='$thumb' style='height: {$tsize[1]}px; width: {$tsize[0]}px;'><br>$h_tag</a></td>\n";
|
||||||
if($n%3==2) $html .= "</tr>";
|
if($n%3==2) $html .= "</tr>";
|
||||||
$n++;
|
$n++;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user