';
}
echo '
';
}
/**
* Show all the group requests the user can see.
*/
function template_group_requests_block()
{
global $context, $txt, $scripturl;
echo '
';
foreach ($context['reported_users'] as $user)
echo '
', $user['user']['link'], '
';
// Don't have any watched users right now?
if (empty($context['reported_users']))
echo '
', $txt['mc_reported_users_none'], '
';
echo '
';
}
/**
* Little section for making... notes.
*/
function template_notes()
{
global $context, $txt, $scripturl;
// Let them know the action was a success.
if (!empty($context['report_post_action']))
echo '
';
}
/**
* Show a list of all the unapproved posts
*/
function template_unapproved_posts()
{
global $options, $context, $txt, $scripturl;
// Just a big table of it all really...
echo '
';
}
/**
* Callback function for showing a watched users post in the table.
*
* @param array $post An array of data about the post.
* @return string An array of HTML for showing the post info.
*/
function template_user_watch_post_callback($post)
{
global $scripturl, $context, $txt, $delete_button;
// We'll have a delete and a checkbox please bob.
// @todo Discuss this with the team and rewrite if required.
$quickbuttons = array(
'delete' => array(
'label' => $txt['remove_message'],
'href' => $scripturl.'?action=moderate;area=userwatch;sa=post;delete='.$post['id'].';start='.$context['start'].';'.$context['session_var'].'='.$context['session_id'],
'javascript' => 'data-confirm="' . $txt['mc_watched_users_delete_post'] . '"',
'class' => 'you_sure',
'icon' => 'remove_button',
'show' => $post['can_delete']
),
'quickmod' => array(
'class' => 'inline_mod_check',
'content' => '',
'show' => $post['can_delete']
)
);
$output_html = '
';
$output_html .= template_quickbuttons($quickbuttons, 'user_watch_post', 'return');
return $output_html;
}
/**
* The moderation settings page.
*/
function template_moderation_settings()
{
global $context, $txt, $scripturl;
echo '
';
echo '
', $txt['mc_no_settings'], '
';
echo '
';
}
/**
* Show a notice sent to a user.
*/
function template_show_notice()
{
global $txt, $settings, $context, $modSettings;
// We do all the HTML for this one!
echo '
', $context['page_title'], '
', template_css(), '