Added a parameter to the thumbnail linker to open the image in a new window.
This commit is contained in:
parent
cfeb07a9c9
commit
14249b4850
2 changed files with 5 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue