";
return $html;
}
public function display_resize_error(Page $page, $title, $message) {
$page->set_title("Resize Image");
$page->set_heading("Resize Image");
$page->add_block(new NavBlock());
$page->add_block(new Block($title, $message));
}
public function display_resize_page(Page $page, $image_id) {
global $config;
$default_width = $config->get_int('resize_default_width');
$default_height = $config->get_int('resize_default_height');
$image = Image::by_id($image_id);
$thumbnail = $this->build_thumb_html($image, null);
$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')."
";
$page->set_title("Resize Image");
$page->set_heading("Resize Image");
$page->add_block(new NavBlock());
$page->add_block(new Block("Resize Image", $html, "main", 20));
}
}
?>