From 39cf99335e2db693c7e779b0e3a8489c817a9a3c Mon Sep 17 00:00:00 2001 From: Nathan Kinkade Date: Sat, 4 Feb 2012 09:48:22 -0500 Subject: Allow a height parameter to be passed as well. --- views/randimg.html.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 << - $img_title + $img_title HTML; -- cgit v1.2.3