title = $title; $this -> cnt = $cnt; $this -> rlink = $url; $this -> rdLbl = "($cnt)"; $this->icon = getExternalThemeFile("media/noicon.png"); } function render() { $GLOBALS['rss']->currentFeedsFeed = $this; eval($GLOBALS['rss'] ->getCachedTemplateFile("feedsfeed.php")); } } /** * A TagList renders a list of all the tags */ class TagList extends FeedList{ var $tags; var $folders = array(); var $countTaggedItems = 0; var $tagCount = 0; function TagList() { $this -> populate(); $this -> columnTitle = __('Tags'); $GLOBALS['rss']-> feedList = $this; } function populate() { $t = new Tags(); $this -> tags = $t -> allTags; $this -> folders[0] = new FeedFolder(null , null ,$this); foreach ($this -> tags as $tag => $count) { $this -> tagCount++; $this -> countTaggedItems += $count; $tt = new TagListItem($tag,$count, $t -> makeTagLink($tag) ); $this->folders[0]->feeds[] = $tt; } } function getStats() { return sprintf(__('%d tagged items, in %d tags'), $this -> countTaggedItems, $this->tagCount); } } ?>