'; $o .= '

' . t('Trending Interests') . '

'; $o .= ''; } return $o; } function country_widget() { $o = ''; $r = q("select distinct(`country-name`), count(`country-name`) as total from profile where `country-name` != '' group by `country-name` order by count(`country-name`) desc limit 10"); if(count($r)) { $o .= '
'; $o .= '

' . t('Locations') . '

'; $o .= '
'; } return $o; } function get_taglist($limit = 50) { $r = q("select distinct(term), count(term) as total from tag group by term order by count(term) desc limit %d", intval($limit) ); return $r; }