', empty($context['robot_no_index']) ? '' : ' ', '
';
// If the user is logged in, display stuff like their name, new messages, etc.
if ($context['user']['is_logged'])
{
echo '
', $txt['hello_member'], ' ', $context['user']['name'], '', $context['allow_pm'] ? ', ' . $txt[152] . ' ' . $context['user']['messages'] . ' ' . ($context['user']['messages'] != 1 ? $txt[153] : $txt[471]) . '' . $txt['newmessages4'] . ' ' . $context['user']['unread_messages'] . ' ' . ($context['user']['unread_messages'] == 1 ? $txt['newmessages0'] : $txt['newmessages1']) : '', '.';
// Are there any members waiting for approval?
if (!empty($context['unapproved_members']))
echo ' ', $context['unapproved_members'] == 1 ? $txt['approve_thereis'] : $txt['approve_thereare'], ' ', $context['unapproved_members'] == 1 ? $txt['approve_member'] : $context['unapproved_members'] . ' ' . $txt['approve_members'], ' ', $txt['approve_members_waiting']; // Is the forum in maintenance mode? if ($context['in_maintenance'] && $context['user']['is_admin']) echo ' ', $txt[616], ''; } // Otherwise they're a guest - so politely ask them to register or login. else echo ' ', $txt['welcome_guest']; echo ' ', $context['current_time'], ' |
|
'; // Show the menu here, according to the menu sub template. template_menu(); echo ' | |
', $txt[102], ': ', $context['random_news_line'], ' |
'; } function template_main_below() { global $context, $settings, $options, $scripturl, $txt; echo ' |
', theme_copyright(), ' |