', (empty($settings['subject_toggle']) ? '' : '' . $message['subject'] . ''), '
';
echo '
', !empty($message['counter']) ? ' #' . $message['counter'] : '', ' ', '
', $message['time'], ''; // Show "<< Last Edit: Time by Person >>" if this post was edited. But we need the div even if it wasn't modified! // Because we insert into it through AJAX and we don't want to stop themers moving it around if they so wish so they can put it where they want it. echo ' '; if ($settings['show_modify'] && !empty($message['modified']['name'])) echo $message['modified']['last_edit_text']; echo ''; echo '
', $txt['ignoring_user'], '
', $txt['show_ignore_user_post'], '
';
// Show the post itself, finally!
echo '
';
if (!$message['approved'] && $message['member']['id'] != 0 && $message['member']['id'] == $context['user']['id'])
echo '
';
// Assuming there are attachments...
if (!empty($message['attachment']))
{
echo '
', $txt['post_awaiting_approval'], '
';
echo '
';
$last_approved_state = 1;
$attachments_per_line = 4;
$i = 0;
foreach ($message['attachment'] as $attachment)
{
// Show a special box for unapproved attachments...
if ($attachment['is_approved'] != $last_approved_state)
{
$last_approved_state = 0;
echo '
';
echo '
';
}
// And stuff below the attachments
echo '
';
// Maybe they want to report this post to the moderator(s)?
if ($context['can_report_moderator'])
echo '
';
// What about likes?
echo '
- ';
if (!empty($message['likes']['can_like']))
{
echo '
- ', $message['likes']['you'] ? $txt['unlike'] : $txt['like'], ' '; } if (!empty($message['likes']['count'])) { $context['some_likes'] = true; $count = $message['likes']['count']; $base = 'likes_'; if ($message['likes']['you']) { $base = 'you_' . $base; $count--; } $base .= (isset($txt[$base . $count])) ? $count : 'n'; echo '
- ', sprintf($txt[$base], $scripturl . '?action=likes;view;ltype=msg;like=' . $message['id'], comma_format($count)), ' '; } echo '
- ';
// Can they reply?
if ($context['can_quote'])
echo '
- ', $txt['quote_action'], ' '; // Can the user modify the contents of this post? Show the modify inline image. if ($message['can_modify']) echo '
- ', $txt['quick_edit'], ' '; if ($message['can_approve'] || $message['can_unapprove'] || $message['can_modify'] || $message['can_remove'] || $context['can_split'] || $context['can_restore_msg']) echo '
- ', $txt['post_options'];
echo '
- ';
// Can the user modify the contents of this post?
if ($message['can_modify'])
echo '
- ', $txt['modify'], ' '; // How about... even... remove it entirely?! if ($message['can_remove']) echo '
- ', $txt['remove'], ' '; // What about splitting it off the rest of the topic? if ($context['can_split'] && !empty($context['real_num_replies'])) echo '
- ', $txt['split'], ' '; // Can we issue a warning because of this post? Remember, we can't give guests warnings. if ($context['can_issue_warning'] && !$message['is_message_author'] && !$message['member']['is_guest']) echo '
- ', $txt['issue_warning'], ' '; // Can we restore topics? if ($context['can_restore_msg']) echo '
- ', $txt['restore_message'], ' '; // Maybe we can approve it, maybe we should? if ($message['can_approve']) echo '
- ', $txt['approve'], ' '; // Maybe we can unapprove it? if ($message['can_unapprove']) echo '
- ', $txt['unapprove'], ' '; echo '
';
// Show a checkbox for quick moderation?
if (!empty($options['display_quick_mod']) && $options['display_quick_mod'] == 1 && $message['can_remove'])
echo '
';
if ($message['can_approve'] || $context['can_reply'] || $message['can_modify'] || $message['can_remove'] || $context['can_split'] || $context['can_restore_msg'])
echo '