Tagger
@@ -136,7 +135,26 @@ class taggerTheme extends Themelet {
"Artanis (Erik Youngren <artanis.00@gmail.com>)","main",0));
$page->add_block( new Block("Use", $html,"main",1));
}
-
+
+ function configTagger($page/*,$presets*/) {
+ $presets = array(
+ 'test_set_01' => 'tag set 01',
+ 'test_set_02' => 'tag set 02',
+ 'tsuryuya' => 'tsuryuya hair_green eyes_yellow suzumiya_haruhi_no_yuutsu',
+ 'suzumiya_haruhi' => 'suzumiya_haruhi hair_brown eyes_brown suzumiya_haruhi_no_yuutsu');
+
+ $html="
";
+ $html .= "Set Name | Tags |
";
+ foreach($presets as $keyname => $tags) {
+ $html .= "$keyname | $tags |
";
+ }
+ $html .= "
";
+
+
+ $page->set_title("Shimmie / Configure / Tagger");
+ $page->set_heading("Configure / Tagger");
+ $page->add_block( new Block("Tag Presets",$html,'main',0));
+ }
final function tag_to_html ($tag) {
// Important for script.js, no override. You can CSS this, though.