merge image admin buttons into a single block

git-svn-id: file:///home/shish/svn/shimmie2/trunk@897 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
shish
2008-06-14 11:36:19 +00:00
parent fab31bcb53
commit 8f252df282
8 changed files with 40 additions and 20 deletions

View File

@ -8,14 +8,13 @@ class FeaturedTheme extends Themelet {
$page->add_block(new Block("Featured Image", $this->build_thumb_html($image), "left", 3));
}
public function display_buttons($page, $image_id) {
$html = "
public function get_buttons_html($image_id) {
return "
<form action='".make_link("set_feature")."' method='POST'>
<input type='hidden' name='image_id' value='$image_id'>
<input type='submit' value='Featue This'>
</form>
";
$page->add_block(new Block("Featured Image", $html, "left"));
}
}
?>