';
// if ($context['user']['is_logged'] || !empty($context['show_login_bar']))
// echo '
//
//
';
// if (!empty($context['user']['avatar']))
// echo '
//
', $context['user']['avatar']['image'], '
';
// If the user is logged in, display stuff like their name, new messages, etc.
if ($context['user']['is_logged'])
{
// echo '
//
// - ', $txt['unread_since_visit'], '
// - ', $txt['show_unread_replies'], '
';
// Is the forum in maintenance mode?
if ($context['in_maintenance'] && $context['user']['is_admin'])
echo '
- ', $txt['maintain_mode_on'], '
';
// 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'], '
';
// Show the total time logged in?
// if (!empty($context['user']['total_time_logged_in']))
// {
// echo '
// - ', $txt['totalTimeLogged1'];
// If days is just zero, don't bother to show it.
// if ($context['user']['total_time_logged_in']['days'] > 0)
// echo $context['user']['total_time_logged_in']['days'] . $txt['totalTimeLogged2'];
// Same with hours - only show it if it's above zero.
// if ($context['user']['total_time_logged_in']['hours'] > 0)
// echo $context['user']['total_time_logged_in']['hours'] . $txt['totalTimeLogged3'];
// But, let's always show minutes - Time wasted here: 0 minutes ;).
// echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '
//
';
// }
if (!empty($context['open_mod_reports']) && $context['show_open_reports'])
echo '
- ', sprintf($txt['mod_reports_waiting'], $context['open_mod_reports']), '
';
echo '
';
}
// Otherwise they're a guest - this time ask them to either register or login - lazy bums...
elseif (!empty($context['show_login_bar']))
{
// echo '
//
//
';
}
// if ($context['user']['is_logged'] || !empty($context['show_login_bar']))
// echo '
//
//
//
';
// Show a random news item? (or you could pick one from news_lines...)
if (!empty($settings['enable_news']))
echo '
', '
', $context['random_news_line'], '
';
echo '
';
// Define the upper_section toggle in JavaScript.
echo '
';
// Show the menu here, according to the menu sub template.
template_menu();
// Show the navigation tree.
theme_linktree();
// The main content should go here.
echo '
';
}
function template_body_below()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;
echo '
';
// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
echo '
';
}
function template_html_below()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;
echo '