'hidden', "name"=>'image_id', "value"=>$image_id]), SHM_SUBMIT('Regenerate Thumbnail') ); } /** * Show a link to the new thumbnail. */ public function display_results(Page $page, Image $image) { $page->set_title("Thumbnail Regenerated"); $page->set_heading("Thumbnail Regenerated"); $page->add_html_header(""); $page->add_block(new NavBlock()); $page->add_block(new Block("Thumbnail", $this->build_thumb_html($image))); } public function bulk_html(): string { return ""; } public function display_admin_block(): void { global $page, $database; $mimes = []; $results = $database->get_all("SELECT mime, count(*) count FROM images group by mime"); foreach ($results as $result) { array_push($mimes, ""); } $html = " Will only regenerate missing thumbnails, unless force is selected. Force will override the limit and will likely take a very long time to process.
".make_form(make_link("admin/regen_thumbs"))."
".make_form(make_link("admin/delete_thumbs"), "POST", false, "", "return confirm('Are you sure you want to delete all thumbnails?')")."