This repository has been archived on 2024-09-05. You can view files and clone it, but cannot push or open issues or pull requests.
shimmie2/contrib/featured/theme.php
shish c5ed35fba7 typo fix
git-svn-id: file:///home/shish/svn/shimmie2/trunk@901 7f39781d-f577-437e-ae19-be835c7a54ca
2008-06-16 01:08:28 +00:00

20 lines
480 B
PHP

<?php
class FeaturedTheme extends Themelet {
/*
* Show $text on the $page
*/
public function display_featured($page, $image) {
$page->add_block(new Block("Featured Image", $this->build_thumb_html($image), "left", 3));
}
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='Feature This'>
</form>
";
}
}
?>