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; } else { $fVars->PERMS = LAN_FORUM_0044 . ' - ' . LAN_FORUM_0046 . ' - ' . LAN_FORUM_0048; } $sticky_threads = 0; $stuck = false; $reg_threads = 0; $unstuck = false; $threadList = $forum->forumGetThreads($forumId, $threadFrom, $view); $subList = $forum->forumGetSubs(vartrue($forum_id)); $gen = new convert(); $fVars->SUBFORUMS = ''; if (is_array($subList) && isset($subList[$forumInfo['forum_parent']][$forumId])) { $newflag_list = $forum->forumGetUnreadForums(); $sub_info = ''; foreach ($subList[$forumInfo['forum_parent']][$forumId] as $sub) { $sub_info .= parse_sub($sub); } $fVars->SUBFORUMS = $FORUM_VIEW_SUB_START . $sub_info . $FORUM_VIEW_SUB_END; } if (count($threadList)) { foreach ($threadList as $thread_info) { if ($thread_info['thread_options']) { $thread_info['thread_options'] = unserialize($thread_info['thread_options']);