public function modTagsTrendingHTML($group = null) { $tags = new StreamTag(); $trendingTags = $tags->getTrending($group); $tmpl = new StreamTemplate(); $tmpl->set('title', JText::_('COM_STREAM_LABEL_TRENDING_TAGS')); $tmpl->set('trendingTags', $trendingTags); if (!is_null($group)) { // Filter tags in viewed group $tmpl->set('groupId', $group->id); } $html = $tmpl->fetch('stream.tag.trending'); return $html; }