Exemple #1
0
<?php

$LastRead = Forums::get_last_read($Forums);
View::show_header('Forums');
?>
<div class="thin">
	<h2>Forums</h2>
	<div class="forum_list">
<?php 
$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) {
            ?>
	</table>
<?php 
        }