Chris@76: '; Chris@76: Chris@76: if (!empty($context['boards']) && (!empty($options['show_children']) || $context['start'] == 0)) Chris@76: { Chris@76: echo ' Chris@76:
', $txt['parent_boards'], ' | Chris@76:|||
Chris@76: ';
Chris@76:
Chris@76: // If the board or children is new, show an indicator.
Chris@76: if ($board['new'] || $board['children_new'])
Chris@76: echo '
Chris@76: ![]() ![]() ![]() |
Chris@76:
Chris@76: ', $board['name'], ''; Chris@76: Chris@76: // Has it outstanding posts for approval? Chris@76: if ($board['can_approve_posts'] && ($board['unapproved_posts'] || $board['unapproved_topics'])) Chris@76: echo ' Chris@76: (!)'; Chris@76: Chris@76: echo ' Chris@76:Chris@76:', $board['description'] , ' '; Chris@76: Chris@76: // Show the "Moderators: ". Each has name, href, link, and id. (but we're gonna use link_moderators.) Chris@76: if (!empty($board['moderators'])) Chris@76: echo ' Chris@76:', count($board['moderators']) == 1 ? $txt['moderator'] : $txt['moderators'], ': ', implode(', ', $board['link_moderators']), ' '; Chris@76: Chris@76: // Show some basic information about the number of posts, etc. Chris@76: echo ' Chris@76: |
Chris@76:
Chris@76: ', comma_format($board['posts']), ' ', $board['is_redirect'] ? $txt['redirects'] : $txt['posts'], ' Chris@76: ', $board['is_redirect'] ? '' : comma_format($board['topics']) . ' ' . $txt['board_topics'], ' Chris@76: |
Chris@76: ';
Chris@76:
Chris@76: /* The board's and children's 'last_post's have:
Chris@76: time, timestamp (a number that represents the time.), id (of the post), topic (topic id.),
Chris@76: link, href, subject, start (where they should go for the first unread post.),
Chris@76: and member. (which has id, name, link, href, username in it.) */
Chris@76: if (!empty($board['last_post']['id']))
Chris@76: echo '
Chris@76: ', $txt['last_post'], ' ', $txt['by'], ' ', $board['last_post']['member']['link'] , ' Chris@76: ', $txt['in'], ' ', $board['last_post']['link'], ' Chris@76: ', $txt['on'], ' ', $board['last_post']['time']; Chris@76: echo ' Chris@76: |
Chris@76:
', $txt['parent_boards'], ': ', implode(', ', $children), ' | Chris@76:
'; Chris@76: Chris@76: if (!$context['no_topic_listing']) Chris@76: echo ' Chris@76: