function show_features_boxes() { global $HTML, $Language; $return .= $HTML->box1_top($Language->SYSTEM_STATISTICS, 0); $return .= show_sitestats(); // $return .= $HTML->box1_middle($Language->SFOS); // $return .= show_sfos(); $return .= $HTML->box1_middle($Language->TOP_PROJECT_DOWNLOADS); $return .= show_top_downloads(); $return .= $HTML->box1_middle($Language->NEWEST_PROJECTS); $return .= show_newest_projects(); // $return .= $HTML->box1_middle($Language->HIGHEST_RANKED_USERS); // $return .= show_highest_ranked_users(); $return .= $HTML->box1_middle($Language->MOST_ACTIVE_THIS_WEEK); $return .= show_highest_ranked_projects(); $return .= $HTML->box1_bottom(0); return $return; }
function show_features_boxes() { global $HTML, $sys_use_ratings; $return = ''; $return .= $HTML->boxTop(sprintf(_('%1$s Statistics'), $GLOBALS['sys_name']), 0); $return .= show_sitestats(); $return .= $HTML->boxMiddle(_('Top Project Downloads')); $return .= show_top_downloads(); if ($sys_use_ratings) { $return .= $HTML->boxMiddle(_('Highest Ranked Users')); $return .= show_highest_ranked_users(); } $return .= $HTML->boxMiddle(_('Most Active This Week')); $return .= show_highest_ranked_projects(); $return .= $HTML->boxMiddle(_('Recently Registered Projects')); $return .= show_newest_projects(); $return .= $HTML->boxBottom(0); return $return; }
function show_features_boxes() { global $HTML, $Language; $return = ""; $w = new Widget_Static($GLOBALS['sys_name'] . ' ' . $Language->getText('include_features_boxes', 'stats')); $w->setContent(show_sitestats()); $w->display(); $w = new Widget_Static($Language->getText('include_features_boxes', 'top_download_yesterday')); $w->setContent(show_top_downloads()); $w->display(); $w = new Widget_Static($Language->getText('include_features_boxes', 'newest_releases')); $w->setContent(show_newest_releases()); $w->setRssUrl('/export/rss_sfnewreleases.php'); $w->display(); $w = new Widget_Static($Language->getText('include_features_boxes', 'newest_projects')); $w->setContent(show_newest_projects()); $w->setRssUrl('/export/rss_sfprojects.php?type=rss&option=newest'); $w->display(); $w = new Widget_Static($Language->getText('include_features_boxes', 'most_active_week')); $w->setContent(show_highest_ranked_projects()); $w->display(); }