<?php
class ImageIOTheme {
/**
* Display a link to delete an image
* (Added inline Javascript to confirm the deletion)
*
* @param $image_id The image to delete
*/
public function get_deleter_html(/*int*/ $image_id) {
global $config;
if($config->get_bool("image_jquery_confirm")) {
$html = "
".make_form(make_link("image_admin/delete"),'POST',false,'delete_image')."
<input type='hidden' name='image_id' value='$image_id' />
<input type='submit' value='Delete' id='delete_image_submit' />
</form>
";
} else {
".make_form(make_link("image_admin/delete"))."
<input type='submit' value='Delete' onclick='return confirm(\"Delete the image?\");' />
}
return $html;
* Display link to replace the image
* @param $image_id The image to replace
public function get_replace_html(/*int*/ $image_id) {
$html = make_form(make_link("image_admin/replace"))."
<input type='submit' value='Replace' />
</form>";
?>