| ', $txt[102], ' |
| ';
// Prepare all the javascript settings.
echo '
', $context['news_lines'][0], '
|
| '; // If this category even can collapse, show a link to collapse it. if ($category['can_collapse']) echo ' ', $category['collapse_image'], ''; echo ' ', $category['link'], ' | |||
';
// If the board is new, show a strong indicator.
if ($board['new'])
echo ' ';
// This board doesn't have new posts, but its children do.
elseif ($board['children_new'])
echo ' ';
// No new posts at all! The agony!!
else
echo ' ';
echo ' |
', $board['name'], ' ', $board['description']; // Show the "Moderators: ". Each has name, href, link, and id. (but we're gonna use link_moderators.) if (!empty($board['moderators'])) echo ' ', count($board['moderators']) == 1 ? $txt[298] : $txt[299], ': ', implode(', ', $board['link_moderators']), ' ';
// Show the "Child Boards: ". (there's a link_children but we're going to bold the new ones...)
if (!empty($board['children']))
{
// Sort the links into an array with new boards bold so it can be imploded.
$children = array();
/* Each child in each board's children has:
id, name, description, new (is it new?), topics (#), posts (#), href, link, and last_post. */
foreach ($board['children'] as $child)
{
$child['link'] = '' . $child['name'] . '';
$children[] = $child['new'] ? '' . $child['link'] . '' : $child['link'];
}
echo '
', $txt['parent_boards'], ': ', implode(', ', $children), ' ';
}
// Show some basic information about the number of posts, etc.
echo '
|
', $board['posts'], ' ', $txt[21], ' ', $txt['smf88'], ' ', $board['topics'], ' ', $txt[330], ' |
';
/* The board's and children's 'last_post's have:
time, timestamp (a number that represents the time.), id (of the post), topic (topic id.),
link, href, subject, start (where they should go for the first unread post.),
and member. (which has id, name, link, href, username in it.) */
if (!empty($board['last_post']['id']))
echo '
', $txt[22], ' ', $txt[30], ' ', $board['last_post']['time'], ' ', $txt['smf88'], ' ', $board['last_post']['link'], ' ', $txt[525], ' ', $board['last_post']['member']['link']; echo ' |
', $txt[333], '
', $txt[334], '
|
';
// Show the mark all as read button?
if ($settings['show_mark_read'])
echo '
', ($settings['use_image_buttons'] ? ' ' : $txt[452]), '';
echo '
|