';
$o .= '
' . t('Trending Interests') . '
';
$o .= '';
}
return $o;
}
function country_widget()
{
$o = '';
$r = q("SELECT `country-name`, COUNT(`country-name`) AS `total`"
. " FROM `profile`"
. " WHERE `country-name` != ''"
. " GROUP BY `country-name`"
. " ORDER BY COUNT(`country-name`) DESC"
. " LIMIT 20");
if (count($r)) {
$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;
}