Пример #1
0
function menu_print_sidebar($params)
{
    /*
    	See if this is a project or a foundry
    	and show the correct nav menus
    */
    if (!user_isloggedin()) {
        echo menu_notloggedin();
    } else {
        echo menu_loggedin($params['title']);
    }
    //search menu
    echo menu_search();
    if ($params['group']) {
        $grp =& group_get_object($params['group']);
    }
    if ($params['group'] && $grp && $grp->isProject()) {
        //this is a project page
        //sf global choices
        echo menu_project($params['group']);
        echo menu_software();
        echo menu_sourceforge();
    } else {
        if ($params['group'] && $grp) {
            //this is a foundry page
            echo menu_foundry_guides($params['group']);
            echo menu_foundry($params['group']);
        } else {
            echo menu_software();
            echo menu_sourceforge();
        }
    }
    //Foundry Links
    echo menu_foundry_links();
    if (!user_isloggedin()) {
        echo menu_language_box();
    }
    // else {
    //echo osdn_nav_dropdown();
    //}
}
Пример #2
0
function menu_print_sidebar($params)
{
    if (!user_isloggedin()) {
        echo menu_notloggedin();
        if (!$GLOBALS['sys_allow_anon']) {
            return;
        }
    } else {
        echo menu_loggedin($params['title']);
    }
    // LJ Site Admin menu added here
    if (user_is_super_user()) {
        echo menu_site_admin();
    }
    echo menu_software();
    echo menu_site();
    //search menu
    echo menu_search();
    ?>
	<div align="center">
	     <?php 
    echo $GLOBALS['HTML']->getOsdnNavDropdown();
    ?>
	     </div>
		   <?php 
}