Exemplo n.º 1
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;
}
Exemplo n.º 2
0
function BaseFooter($showbottom = true)
{
    global $_USER, $_CONF, $LANG_GF02, $forum, $CONF_FORUM;
    if (!$CONF_FORUM['registration_required'] or $_USER['uid'] > 1) {
        $footer = new Template($_CONF['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');
        echo $footer->finish($footer->get_var('output'));
    }
}
Exemplo n.º 3
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(CTL_plugin_templatePath('forum'));
        $footer->set_file(array('footerblock' => 'footer/footer.thtml'));
        $footer->set_var('imgset', $CONF_FORUM['imgset']);
        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;
}