From bf035c247df33505915743ad3e4ee44a5e70a0f5 Mon Sep 17 00:00:00 2001 From: "green-ponies (jgen)" Date: Sun, 4 Sep 2011 13:46:12 -0400 Subject: [PATCH] Slight changes to how the Replace & Resize forms are displayed. --- contrib/resize/style.css | 5 +++++ contrib/resize/theme.php | 3 ++- ext/upload/theme.php | 10 ++++++---- 3 files changed, 13 insertions(+), 5 deletions(-) create mode 100644 contrib/resize/style.css diff --git a/contrib/resize/style.css b/contrib/resize/style.css new file mode 100644 index 00000000..ccfc01c2 --- /dev/null +++ b/contrib/resize/style.css @@ -0,0 +1,5 @@ +form#form_resize { + float: left; + margin: 0; + width: 60%; +} diff --git a/contrib/resize/theme.php b/contrib/resize/theme.php index 0b73749e..ee920b81 100644 --- a/contrib/resize/theme.php +++ b/contrib/resize/theme.php @@ -36,7 +36,8 @@ class ResizeImageTheme extends Themelet { $image = Image::by_id($image_id); $thumbnail = $this->build_thumb_html($image, null); - $html = "

Resize Image ID ".$image_id."
".$thumbnail."

+ $html = "
+

Resize Image ID ".$image_id."
".$thumbnail."

Please note: You will have to refresh the image page, or empty your browser cache.

Enter the new size for the image, or leave blank to scale the image automatically.


" .make_form(make_link('resize/'.$image_id), 'POST', $multipart=True,'form_resize')." diff --git a/ext/upload/theme.php b/ext/upload/theme.php index df0e5868..f26905c0 100644 --- a/ext/upload/theme.php +++ b/ext/upload/theme.php @@ -86,16 +86,16 @@ class UploadTheme extends Themelet { File + "; if($tl_enabled) { $upload_list .= " + URL + "; } - $upload_list .= " - - "; $max_size = $config->get_int('upload_size'); $max_kb = to_shorthand_int($max_size); @@ -103,7 +103,9 @@ class UploadTheme extends Themelet { $image = Image::by_id($image_id); $thumbnail = $this->build_thumb_html($image, null); - $html = "

Replacing Image ID ".$image_id."
Please note: You will have to refresh the image page, or empty your browser cache.

" + $html = " +
+

Replacing Image ID ".$image_id."
Please note: You will have to refresh the image page, or empty your browser cache.

" .$thumbnail."
" .make_form(make_link("upload/replace/".$image_id), "POST", $multipart=True)."