diff options
| -rw-r--r-- | views/randimg.html.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/views/randimg.html.php b/views/randimg.html.php index d0fd90b..06057e9 100644 --- a/views/randimg.html.php +++ b/views/randimg.html.php @@ -33,9 +33,12 @@ if ( ! empty($item) ) { $height = Input::instance()->get("height"); $height = $height ? "height: {$height}px;" : ""; + $target = Input::instance()->get("target"); + $target = $target ? "target='$target'" : ""; + echo <<<HTML <div class="g-randimg"> - <a href="http://$g3path/$link_path" title="$img_title"> + <a href="http://$g3path/$link_path" title="$img_title" $target> <img src="$thumb_url" style="border: thin solid black; $width; $height" alt="$img_title" /> </a> </div> |
