';
if (!empty($context['user']['avatar']))
echo $context['user']['avatar']['image'], '
';
echo '
';
template_menu();
echo '
';
// 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'];
// Only tell them about their messages if they can read their messages!
if ($context['allow_pm'])
echo ', ', $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'];
echo '.
';
// Is the forum in maintenance mode?
if ($context['in_maintenance'] && $context['user']['is_admin'])
echo '
', $txt[616], '';
// 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'], '
';
echo '
', $txt['unread_since_visit'], '
', $txt['show_unread_replies'], '';
}
// Otherwise they're a guest - so politely ask them to register or login.
else
{
echo '
', $txt['welcome_guest'], '
', $context['current_time'], '
';
}
echo '
';
}
function template_content_above()
{
global $context, $settings, $options, $scripturl, $txt;
if(isset($_GET['action']))
echo '
';
else
echo '
';
}
function template_content_below()
{
global $context, $settings, $options, $scripturl, $txt;
if(isset($_GET['action']))
echo '
';
else
echo '
';
}
function template_main_below()
{
global $context, $settings, $options, $scripturl, $txt;
// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
echo '