|
HTML
# print channel image
if ($rss->{'image'}->{'link'}) {
print <<"HTML";
{'image'}->{'width'}\""
if $rss->{'image'}->{'width'};
print " height=\"$rss->{'image'}->{'height'}\""
if $rss->{'image'}->{'height'};
print ">
\n";
}
# print the channel items
foreach my $item (@{$rss->{'items'}}) {
next unless defined($item->{'title'}) && defined($item->{'link'});
print " {'link'}\">$item->{'title'} \n";
}
# if there's a textinput element
if ($rss->{'textinput'}->{'title'}) {
print <<"HTML";
HTML
}
# if there's a copyright element
if ($rss->{'channel'}->{'copyright'}) {
print <<"HTML";
$rss->{'channel'}->{'copyright'}
HTML
}
print <<"HTML";
|