summaryrefslogtreecommitdiff
path: root/views/randimg.html.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/randimg.html.php')
-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 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;