'; if (!empty($context['boards']) && (!empty($options['show_children']) || $context['start'] == 0)) { echo '
'; // If the board or children is new, show an indicator. if ($board['new'] || $board['children_new']) echo ' '; // Is it a redirection board? elseif ($board['is_redirect']) echo ' '; // No new posts at all! The agony!! else echo ' '; echo ' |
', $board['name'], '';
// Has it outstanding posts for approval?
if ($board['can_approve_posts'] && ($board['unapproved_posts'] || $board['unapproved_topics']))
echo '
(!)';
echo '
', $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['moderator'] : $txt['moderators'], ': ', implode(', ', $board['link_moderators']), ' '; // Show some basic information about the number of posts, etc. echo ' |
', comma_format($board['posts']), ' ', $board['is_redirect'] ? $txt['redirects'] : $txt['posts'], ' |
';
/* 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['last_post'], ' ', $txt['by'], ' ', $board['last_post']['member']['link'], ' |
', $txt['parent_boards'], ': ', implode(', ', $children), ' |
', $context['description'], '
'; // Create the button set... $normal_buttons = array( 'new_topic' => array('test' => 'can_post_new', 'text' => 'new_topic', 'image' => 'new_topic.png', 'lang' => true, 'url' => $scripturl . '?action=post;board=' . $context['current_board'] . '.0', 'active' => true), 'post_poll' => array('test' => 'can_post_poll', 'text' => 'new_poll', 'image' => 'new_poll.png', 'lang' => true, 'url' => $scripturl . '?action=post;board=' . $context['current_board'] . '.0;poll'), 'notify' => array('test' => 'can_mark_notify', 'text' => $context['is_marked_notify'] ? 'unnotify' : 'notify', 'image' => ($context['is_marked_notify'] ? 'un' : ''). 'notify.png', 'lang' => true, 'custom' => 'onclick="return confirm(\'' . ($context['is_marked_notify'] ? $txt['notification_disable_board'] : $txt['notification_enable_board']) . '\');"', 'url' => $scripturl . '?action=notifyboard;sa=' . ($context['is_marked_notify'] ? 'off' : 'on') . ';board=' . $context['current_board'] . '.' . $context['start'] . ';' . $context['session_var'] . '=' . $context['session_id']), 'markread' => array('text' => 'mark_read_short', 'image' => 'markread.png', 'lang' => true, 'url' => $scripturl . '?action=markasread;sa=board;board=' . $context['current_board'] . '.0;' . $context['session_var'] . '=' . $context['session_id']), ); // They can only mark read if they are logged in and it's enabled! if (!$context['user']['is_logged'] || !$settings['show_mark_read']) unset($normal_buttons['markread']); // Allow adding new buttons easily. call_integration_hook('integrate_messageindex_buttons', array(&$normal_buttons)); if (!$context['no_topic_listing']) { echo ''; if (!$context['no_topic_listing']) echo '
', $context['user']['is_logged'] ? ' '. $txt['participation_caption'] : '', ' ' . $txt['locked_topic'] . '' . ($modSettings['enableStickyTopics'] == '1' ? ' ' . $txt['sticky_topic'] . '' : '') . ($modSettings['pollMode'] == '1' ? ' ' . $txt['poll']. '' : '') . '
'; echo '