示例#1
0
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();
}
<?php

/**
 * Copyright (c) Enalean 2011. All rights reserved
 *
 * Tuleap is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * Tuleap is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Tuleap. If not, see <http://www.gnu.org/licenses/>.
 */
?>
    <h3>Newest Releases</h3>
    <p><?php 
echo show_newest_releases();
?>
</p>