Beispiel #1
0
    $fVars->NEWTHREADBUTTONX = newthreadjump($ntUrl);
    // "<a class='btn btn-primary' href='".."'>New Thread</a>";
}
if (!BOOTSTRAP) {
    $fVars->NEWTHREADBUTTONX = $fVars->NEWTHREADBUTTON;
}
if (substr($forumInfo['forum_name'], 0, 1) == '*') {
    $forum_info['forum_name'] = substr($forum_info['forum_name'], 1);
    $container_only = true;
} else {
    $container_only = false;
}
if (substr($forum_info['sub_parent'], 0, 1) == '*') {
    $forum_info['sub_parent'] = substr($forum_info['sub_parent'], 1);
}
$forum->set_crumb(true, '', $fVars);
// set $BREADCRUMB (and $BACKLINK)
$fVars->FORUMTITLE = $forumInfo['forum_name'];
$fVars->MODERATORS = LAN_FORUM_1009 . ': ' . implode(', ', $modArray);
$fVars->BROWSERS = '';
if (varset($pref['track_online'])) {
    $fVars->BROWSERS = $users . ' ' . ($users == 1 ? LAN_FORUM_0059 : LAN_FORUM_0060) . ' (' . $member_users . ' ' . ($member_users == 1 ? LAN_FORUM_0061 : LAN_FORUM_0062) . ", " . $guest_users . " " . ($guest_users == 1 ? LAN_FORUM_0063 : LAN_FORUM_0064) . ')';
}
if (defset('BOOTSTRAP') == 3 && !empty($FORUM_VIEWFORUM_TEMPLATE['iconkey'])) {
    $fVars->ICONKEY = $tp->parseTemplate($FORUM_VIEWFORUM_TEMPLATE['iconkey'], true);
} else {
    $fVars->ICONKEY = "\n\t<table class='table table-bordered' style='width:100%'>\n\t<tr>\n\t<td style='vertical-align:middle; text-align:center; width:2%'>" . IMAGE_new_small . "</td>\n\t<td style='width:10%' class='smallblacktext'>" . LAN_FORUM_0039 . "</td>\n\t<td style='vertical-align:middle; text-align:center; width:2%'>" . IMAGE_nonew_small . "</td>\n\t<td style='width:10%' class='smallblacktext'>" . LAN_FORUM_0040 . "</td>\n\t<td style='vertical-align:middle; text-align:center; width:2%'>" . IMAGE_sticky_small . "</td>\n\t<td style='width:10%' class='smallblacktext'>" . LAN_FORUM_1011 . "</td>\n\t<td style='vertical-align:middle; text-align:center; width:2%'>" . IMAGE_announce_small . "</td>\n\t<td style='width:10%' class='smallblacktext'>" . LAN_FORUM_1013 . "</td>\n\t</tr>\n\t<tr>\n\t<td style='vertical-align:middle; text-align:center; width:2%'>" . IMAGE_new_popular_small . "</td>\n\t<td style='width:2%' class='smallblacktext'>" . LAN_FORUM_0039 . " " . LAN_FORUM_1010 . "</td>\n\t<td style='vertical-align:middle; text-align:center; width:2%'>" . IMAGE_nonew_popular_small . "</td>\n\t<td style='width:10%' class='smallblacktext'>" . LAN_FORUM_0040 . " " . LAN_FORUM_1010 . "</td>\n\t<td style='vertical-align:middle; text-align:center; width:2%'>" . IMAGE_stickyclosed_small . "</td>\n\t<td style='width:10%' class='smallblacktext'>" . LAN_FORUM_1012 . "</td>\n\t<td style='vertical-align:middle; text-align:center; width:2%'>" . IMAGE_closed_small . "</td>\n\t<td style='width:10%' class='smallblacktext'>" . LAN_FORUM_1014 . "</td>\n\t</tr>\n\t</table>";
}
$fVars->SEARCH = "\n\t<form method='get' class='form-inline input-append' action='" . e_BASE . "search.php'>\n\t<p>\n\t<input class='tbox' type='text' name='q' size='20' value='' maxlength='50' />\n\t<button class='btn btn-default button' type='submit' name='s' >" . LAN_SEARCH . "</button>\n\t<input type='hidden' name='r' value='0' />\n\t<input type='hidden' name='ref' value='forum' />\t\n\t</p>\n\t</form>";
if ($forum->checkPerm($forumId, 'post')) {
    $fVars->PERMS = LAN_FORUM_0043 . ' - ' . LAN_FORUM_0045 . ' - ' . LAN_FORUM_0047;
Beispiel #2
0
}
//Load forum templates
if (!$FORUMSTART) {
    if (file_exists(THEME . "forum_viewtopic_template.php")) {
        require_once THEME . "forum_viewtopic_template.php";
    } else {
        if (file_exists(THEME . "forum_template.php")) {
            require_once THEME . "forum_template.php";
        } else {
            require_once e_PLUGIN . "forum/templates/forum_viewtopic_template.php";
        }
    }
}
$forum_info['forum_name'] = $tp->toHTML($forum_info['forum_name'], TRUE, 'USER_TITLE');
// get info for main thread -------------------------------------------------------------------------------------------------------------------------------------------------------------------
$forum->set_crumb(TRUE);
// Set $BREADCRUMB (and BACKLINK)
$THREADNAME = $tp->toHTML($thread_info['head']['thread_name'], TRUE, 'USER_TITLE');
$NEXTPREV = "&lt;&lt; <a href='" . e_SELF . "?{$thread_id}.{$forum_info['forum_id']}.prev'>" . LAN_389 . "</a>";
$NEXTPREV .= " | ";
$NEXTPREV .= "<a href='" . e_SELF . "?{$thread_id}.{$forum_info['forum_id']}.next'>" . LAN_390 . "</a> &gt;&gt;";
if ($pref['forum_track'] && USER) {
    $TRACK = strpos(USERREALM, "-" . $thread_id . "-") !== FALSE ? "<span class='smalltext'><a href='" . e_SELF . "?" . $thread_id . ".0." . "untrack'>" . LAN_392 . "</a></span>" : "<span class='smalltext'><a href='" . e_SELF . "?" . $thread_id . ".0." . "track'>" . LAN_391 . "</a></span>";
}
$MODERATORS = LAN_321 . implode(", ", $modArray);
$THREADSTATUS = !$thread_info['head']['thread_active'] ? LAN_66 : "";
$pref['forum_postspage'] = $pref['forum_postspage'] ? $pref['forum_postspage'] : 10;
$pages = ceil(($replies + 1) / $pref['forum_postspage']);
if ($pages > 1) {
    $parms = $replies + 1 . ",{$pref['forum_postspage']},{$topic_from}," . e_SELF . '?' . $thread_id . '.[FROM],off';
    $GOTOPAGES = $tp->parseTemplate("{NEXTPREV={$parms}}");