" if $horiz;
foreach my $i (@$images) {
my $title = LJ::ehtml($i->{'title'});
# don't set a size on images smaller than the requested width/height
# (we never scale larger, just smaller)
undef $size if $i->{width} <= $width || $i->{height} <= $height;
$html .= "" if $horiz;
$html .= "" if $opts->{imgcut} eq 'titles';
$html .= "{url}/\">";
$html .= " {url}$size\" alt=\"$title\" border=\"0\"> ";
$html .= "$i->{caption} " if $i->{caption};
$html .= $horiz ? ' | ' : '
';
$html .= " " if $opts->{imgcut} eq 'titles';
}
$html .= "