diff options
| author | Nathan Kinkade <nkinkade@creativecommons.org> | 2012-02-04 09:48:22 -0500 |
|---|---|---|
| committer | Nathan Kinkade <nkinkade@creativecommons.org> | 2012-02-04 09:48:22 -0500 |
| commit | 39cf99335e2db693c7e779b0e3a8489c817a9a3c (patch) | |
| tree | 1f6d019cfe84d6cd9788c1e65970019eb7fad751 | |
| parent | 91d114f50733f56692d74f86658cb2c9f9733b74 (diff) | |
Allow a height parameter to be passed as well.
| -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 c470889..d0fd90b 100644 --- a/views/randimg.html.php +++ b/views/randimg.html.php @@ -30,10 +30,13 @@ if ( ! empty($item) ) { $width = Input::instance()->get("width"); $width = $width ? "width: {$width}px;" : ""; + $height = Input::instance()->get("height"); + $height = $height ? "height: {$height}px;" : ""; + echo <<<HTML <div class="g-randimg"> <a href="http://$g3path/$link_path" title="$img_title"> - <img src="$thumb_url" style="border: thin solid black; $width" alt="$img_title" /> + <img src="$thumb_url" style="border: thin solid black; $width; $height" alt="$img_title" /> </a> </div> HTML; |
