';
// If the user is logged in, display stuff like their name, new messages, etc.
if ($context['user']['is_logged'])
{
echo '
- ', $txt['hello_member_ndt'], ' ', $context['user']['name'], '', $context['subaccount_dropdown'], '
';
// 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'], '
';
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 '
';
}
echo '
';
// le bloc de titre
echo '
';
// The main content should go here.
echo '
';
// Custom banners and shoutboxes should be placed here, before the linktree.
// Show the navigation tree.
theme_linktree();
}
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 '
', !empty($settings['forum_width']) ? '