';
$alternate = true;
// Show all the blocks they want to see.
foreach ($context['mod_blocks'] as $block)
{
$block_function = 'template_' . $block;
echo '
';
if (!$alternate)
echo '
';
$alternate = !$alternate;
}
echo '
';
}
// Show all the group requests the user can see.
function template_group_requests_block()
{
global $settings, $options, $context, $txt, $scripturl;
echo '
';
// Don't have any watched users right now?
if (empty($context['group_requests']))
echo '
', $txt['mc_group_requests_none'], '
';
echo '
';
}
// A block to show the current top reported posts.
function template_reported_posts_block()
{
global $settings, $options, $context, $txt, $scripturl;
echo '
';
// Don't have any watched users right now?
if (empty($context['watched_users']))
echo '
', $txt['mc_watched_users_none'], '
';
echo '
';
}
// Little section for making... notes.
function template_notes()
{
global $settings, $options, $context, $txt, $scripturl;
echo '
';
}
function template_reported_posts()
{
global $settings, $options, $context, $txt, $scripturl;
// Let them know the action was a success.
if (!empty($context['report_post_action']) && !empty($txt['report_action_'. $context['report_post_action']]))
{
echo '
';
}
echo '
';
}
// Show a list of all the unapproved posts
function template_unapproved_posts()
{
global $settings, $options, $context, $txt, $scripturl;
// Just a big table of it all really...
echo '
';
}
function template_viewmodreport()
{
global $context, $scripturl, $txt;
echo '
';
}
// Callback function for showing a watched users post in the table.
function template_user_watch_post_callback($post)
{
global $scripturl, $context, $txt, $delete_button;
// We'll have a delete please bob.
if (empty($delete_button))
$delete_button = create_button('delete.png', 'remove_message', 'remove', 'class="centericon"');
$output_html = '
' . $post['body'];
return $output_html;
}
// Moderation settings
function template_moderation_settings()
{
global $settings, $options, $context, $txt, $scripturl;
echo '
';
}
// Show a notice sent to a user.
function template_show_notice()
{
global $txt, $settings, $options, $context;
// We do all the HTML for this one!
echo '
', $context['page_title'], '