"; $html .= "
"; $html .= "Tagger"; $html .= "
"; $html .= "
"; $html .= "
"; foreach ($tags as $tag) { $tag_name = $this->trimTag($tag['tag'],32); $html .= "".$tag_name."
"; } $html .= "
"; $page->add_block( new Block("Tagger", "Collapse this block to hide Tagger.

Use: Click the links to add the tag to the list, when done, press Set to save the tags.".$html, "left", 0)); } public function trimTag($s,$len=80) { if(strlen($s) > $len) { $s = substr($s, 0,$len-1); $s = substr($s,0, strrpos($s,'_'))."..."; } return $s; } } ?>