function display_tagcloud($limit = null, $tag = null) { $view = new TagCloud(); $tagcloud = $this->get_tagcloud($limit, $tag); foreach ($tagcloud as $tag => $count) { $url = get_script_uri() . '?' . 'cmd=lsx&tag=' . rawurlencode($tag); $view->add(htmlspecialchars($tag), $url, $count); } return $view->html(); }
function display_tagcloud($limit = null, $tag = null) { $view = new TagCloud(); $tagcloud = $this->get_tagcloud($limit, $tag); foreach ($tagcloud as $tag => $count) { $url = $this->conf['listcmd'] . rawurlencode($tag); $view->add(htmlspecialchars($tag), $url, $count); } return $view->html(); }
/** * Display tagcloud * * @access public * @param integer $limit Number to show * @param string $relate_tag Show only related tags of this * @param string $basehref base href * @return string HTML */ function display_tagcloud($limit = null, $relate_tag = null) { $view = new TagCloud(); $tagcloud = $this->get_tagcloud($limit, $relate_tag); foreach ($tagcloud as $tag => $count) { $url = $this->get_tag_uri($tag); $view->add(htmlspecialchars($tag), $url, $count); } return $view->html(); }