Added a parameter to the thumbnail linker to open the image in a new window.

This commit is contained in:
JT Smith 2003-04-16 02:22:59 +00:00
parent cfeb07a9c9
commit 14249b4850
2 changed files with 5 additions and 1 deletions

View file

@ -19,7 +19,9 @@ use WebGUI::Session;
sub process {
my @param = WebGUI::Macro::getParams($_[0]);
my $collateral = WebGUI::Collateral->find($param[0]);
my $output = '<a href="'.$collateral->getURL.'"><img src="'.$collateral->getThumbnail.
my $output = '<a href="'.$collateral->getURL.'"';
$output .= ' target="_blank"' if ($param[1]);
$output .= '><img src="'.$collateral->getThumbnail.
'" border="0"></a><br><b>'.$param[0].'</b><p>';
return $output;
}