summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Kinkade <nkinkade@creativecommons.org>2012-02-04 10:18:02 -0500
committerNathan Kinkade <nkinkade@creativecommons.org>2012-02-04 10:18:02 -0500
commit57f9a625f544bef7358eeabe2e775f74a4246212 (patch)
treea6ad0a15705ac89b7a6e179539525fd85bdd75c0
parent39cf99335e2db693c7e779b0e3a8489c817a9a3c (diff)
Allow a target parameter to be passed as well.
-rw-r--r--views/randimg.html.php5
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>