Exemplo n.º 1
0
function BaseFooter($showbottom = true)
{
    global $_USER, $_CONF, $LANG_GF02, $forum, $CONF_FORUM;
    $retval = '';
    if (!$CONF_FORUM['registration_required'] or !COM_isAnonUser()) {
        $footer = COM_newTemplate($CONF_FORUM['path_layout'] . 'forum/layout');
        $footer->set_file(array('footerblock' => 'footer/footer.thtml', 'header' => 'forum_outline_header.thtml', 'footer' => 'forum_outline_footer.thtml'));
        $footer->set_var('imgset', $CONF_FORUM['imgset']);
        $footer->parse('outline_header', 'header', true);
        $footer->parse('outline_footer', 'footer', true);
        if ($forum == '') {
            //            $footer->set_var ('forum_time', f_forumtime() );
            if ($showbottom == "true") {
                $footer->set_var('forum_legend', f_legend());
                $footer->set_var('forum_whosonline', f_whosonline());
            }
        } else {
            //            $footer->set_var ('forum_time', f_forumtime() );
            if ($showbottom == "true") {
                $footer->set_var('forum_legend', f_legend());
                $footer->set_var('forum_rules', f_forumrules());
            }
        }
        $footer->set_var('search_forum', f_forumsearch());
        $footer->set_var('select_forum', f_forumjump());
        $footer->parse('output', 'footerblock');
        $retval .= $footer->finish($footer->get_var('output'));
    }
    return $retval;
}
Exemplo n.º 2
0
function FF_BaseFooter($showbottom = true)
{
    global $_USER, $_CONF, $LANG_GF02, $forum, $_FF_CONF;
    $retval = '';
    if (!$_FF_CONF['registration_required'] || !COM_isAnonUser()) {
        $footer = new Template($_CONF['path'] . 'plugins/forum/templates/footer/');
        $footer->set_file('footerblock', 'footer.thtml');
        if ($forum == '') {
            $footer->set_var('forum_time', f_forumtime());
            if ($showbottom == "true") {
                $footer->set_var('forum_legend', f_legend());
                $footer->set_var('forum_whosonline', f_whosonline());
            }
        } else {
            $footer->set_var('forum_time', f_forumtime());
            if ($showbottom == "true") {
                $footer->set_var('forum_legend', f_legend());
                $footer->set_var('forum_rules', f_forumrules());
            }
        }
        $footer->set_var('search_forum', f_forumsearch());
        $footer->set_var('select_forum', f_forumjump());
        $footer->parse('output', 'footerblock');
        $retval .= $footer->finish($footer->get_var('output'));
    }
    return $retval;
}