', $txt['members'], ': ', $context['common_stats']['total_members'], ' • ', $txt['posts_made'], ': ', $context['common_stats']['total_posts'], ' • ', $txt['topics_made'], ': ', $context['common_stats']['total_topics'], '
', $settings['show_latest_member'] ? ' ' . sprintf($txt['welcome_newest_member'], ' ' . $context['common_stats']['latest_member']['link'] . '') : '' , '
';
template_newsfader();
}
function template_newsfader()
{
global $context, $settings, $options, $txt, $scripturl, $modSettings;
// Show the news fader? (assuming there are things to show...)
if (!empty($settings['show_newsfader']) && !empty($context['news_lines']))
{
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'], '
', $board['is_redirect'] ? '' : ' |
';
if (!empty($board['last_post']['id']))
echo '
', $board['last_post']['last_post_message'], ' '; echo ' |
', $txt['parent_boards'], ': ', implode(', ', $children), ' |
|||