Setup items support labels nicely, as pioneered by Artanis

git-svn-id: file:///home/shish/svn/shimmie2/trunk@78 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
shish
2007-05-08 20:36:02 +00:00
parent 3d4e4f1b8e
commit ea9da95c7b
11 changed files with 69 additions and 76 deletions

View File

@@ -103,8 +103,7 @@ class CommentList extends Extension {
if(is_a($event, 'SetupBuildingEvent')) {
$sb = new SetupBlock("Comment Options");
$sb->add_label("Allow anonymous comments ");
$sb->add_bool_option("comment_anon");
$sb->add_bool_option("comment_anon", "Allow anonymous comments: ");
$sb->add_label("<br>Limit to ");
$sb->add_int_option("comment_limit");
$sb->add_label(" comments per ");
@@ -113,8 +112,7 @@ class CommentList extends Extension {
$sb->add_label("<br>Show ");
$sb->add_int_option("comment_count");
$sb->add_label(" recent comments on the index");
$sb->add_label("<br>Akismet Key ");
$sb->add_text_option("comment_wordpress_key");
$sb->add_text_option("comment_wordpress_key", "<br>Akismet Key ");
$event->panel->add_main_block($sb);
}
if(is_a($event, 'ConfigSaveEvent')) {