$Row = 'a';
$LastCategoryID = 0;
$OpenTable = false;
foreach ($Forums as $Forum) {
list($ForumID, $CategoryID, $ForumName, $ForumDescription, $MinRead, $MinWrite, $MinCreate, $NumTopics, $NumPosts, $LastPostID, $LastAuthorID, $LastTopicID, $LastTime, $SpecificRules, $LastTopic, $Locked, $Sticky) = array_values($Forum);
if (!Forums::check_forumperm($ForumID)) {
continue;
}
if ($ForumID == DONOR_FORUM) {
$ForumDescription = Donations::get_forum_description();
}
$Tooltip = $ForumID == DONOR_FORUM ? 'tooltip_gold' : 'tooltip';
$Row = $Row === 'a' ? 'b' : 'a';
$ForumDescription = display_str($ForumDescription);
if ($CategoryID != $LastCategoryID) {
$Row = 'b';
$LastCategoryID = $CategoryID;
if ($OpenTable) { ?>
} ?>
=$ForumCats[$CategoryID]?>
|
Forum |
Last Post |
Topics |
Posts |
$OpenTable = true;
}
$Read = Forums::is_unread($Locked, $Sticky, $LastPostID, $LastRead, $LastTopicID, $LastTime) ? 'unread' : 'read';
/* Removed per request, as distracting
if ($Locked) {
$Read .= '_locked';
}
if ($Sticky) {
$Read .= '_sticky';
}
*/
?>
|
|
if ($NumPosts == 0) { ?>
There are no topics here.=(($MinCreate <= $LoggedUser['Class']) ? ' Create one!' : '')?>
|
0 |
0 |
} else { ?>
=display_str(Format::cut_string($LastTopic, 50, 1))?>
if (!empty($LastRead[$LastTopicID])) { ?>
} ?>
by =Users::format_username($LastAuthorID, false, false, false)?> =time_diff($LastTime, 1)?>
|
=number_format($NumTopics)?> |
=number_format($NumPosts)?> |
} ?>
} ?>