ParseLinkTemplateEvent, and handlers for text_score, numeric_score and rating

git-svn-id: file:///home/shish/svn/shimmie2/trunk@611 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
shish
2007-11-04 08:16:41 +00:00
parent d880c8cac0
commit ac2af2d1c0
7 changed files with 54 additions and 7 deletions

View File

@ -69,6 +69,10 @@ class NumericScore extends Extension {
$sb->add_bool_option("numeric_score_anon", "Allow anonymous votes: ");
$event->panel->add_block($sb);
}
if(is_a($event, 'ParseLinkTemplateEvent')) {
$event->replace('$score', $event->image->numeric_score);
}
}
private function install() {