', $context['first_new_message'] ? '' : ''; // Show the linktree as well as the "Who's Viewing" information. echo ' '; if (!empty($settings['display_who_viewing'])) { echo ' '; } // Show the previous/next links. echo '
', theme_linktree(), ''; // Show just numbers...? if ($settings['display_who_viewing'] == 1) echo count($context['view_members']), ' ', count($context['view_members']) == 1 ? $txt['who_member'] : $txt[19]; // Or show the actual people viewing the topic? else echo empty($context['view_members_list']) ? '0 ' . $txt[19] : implode(', ', $context['view_members_list']) . ((empty($context['view_num_hidden']) or $context['can_moderate_forum']) ? '' : ' (+ ' . $context['view_num_hidden'] . ' ' . $txt['hidden'] . ')'); // Now show how many guests are here too. echo $txt['who_and'], $context['view_num_guests'], ' ', $context['view_num_guests'] == 1 ? $txt['guest'] : $txt['guests'], $txt['who_viewing_topic'], ' ', $context['previous_next'], '
'; // Is this topic also a poll? if ($context['is_poll']) { echo '
', $txt['smf43'], '
', $txt['smf21'], ': ', $context['poll']['question']; if (!empty($context['poll']['expire_time'])) echo '  (', ($context['poll']['is_expired'] ? $txt['poll_expired_on'] : $txt['poll_expires_on']), ': ', $context['poll']['expire_time'], ')'; // Are they not allowed to vote but allowed to view the options? if ($context['poll']['show_results'] || !$context['allow_vote']) { echo ' ', $context['allow_poll_view'] ? ' ' : '', '
'; // Show each option with its corresponding percentage bar. foreach ($context['poll']['options'] as $option) echo ' ', $context['allow_poll_view'] ? ' ' : '', ' '; echo '
', $option['option'], '' . $option['bar'] . ' ' . $option['votes'] . ' (' . $option['percent'] . '%)
'; // If they are allowed to revote - show them a link! if ($context['allow_change_vote']) echo ' ', $txt['poll_change_vote'], '
'; // If we're viewing the results... maybe we want to go back and vote? if ($context['poll']['show_results'] && $context['allow_vote']) echo ' ', $txt['poll_return_vote'], '
'; // If they're allowed to lock the poll, show a link! if ($context['poll']['lock']) echo ' ', !$context['poll']['is_locked'] ? $txt['smf30'] : $txt['smf30b'], '
'; // If they're allowed to edit the poll... guess what... show a link! if ($context['poll']['edit']) echo ' ', $txt['smf39'], ''; echo '
' . $txt['smf24'] . ': ' . $context['poll']['total_votes'] . '

'; } // They are allowed to vote! Go to it! else { echo '
'; // Show a warning if they are allowed more than one option. if ($context['poll']['allowed_warning']) echo ' ', $context['poll']['allowed_warning'], '
'; // Show each option with its button - a radio likely. foreach ($context['poll']['options'] as $option) echo '
'; echo '
'; // Allowed to view the results? (without voting!) if ($context['allow_poll_view']) echo ' ', $txt['smf29'], '
'; // Show a link for locking the poll as well... if ($context['poll']['lock']) echo ' ', (!$context['poll']['is_locked'] ? $txt['smf30'] : $txt['smf30b']), '
'; // Want to edit it? Click right here...... if ($context['poll']['edit']) echo ' ', $txt['smf39'], ''; echo '
'; } echo '
'; } // Does this topic have some events linked to it? if (!empty($context['linked_calendar_events'])) { echo '
', $txt['calendar_linked_events'], '
    '; foreach ($context['linked_calendar_events'] as $event) { echo '
  • ', ($event['can_edit'] ? '* ' : ''), '', $event['title'], ': ', $event['start_date'], ($event['start_date'] != $event['end_date'] ? ' - ' . $event['end_date'] : ''), '
  • '; } echo '
'; } // Show the page index... "Pages: [1]". echo '
', $txt[139], ': ', $context['page_index']; // Show a "go down" link? if (!empty($modSettings['topbottomEnable'])) echo $context['menu_separator'], '', $settings['use_image_buttons'] ? '' . $txt['topbottom5'] . '' : $txt['topbottom5'], ''; echo ' '; $buttonArray = array(); if ($context['can_reply']) $buttonArray[] = '' . ($settings['use_image_buttons'] ? '' . $txt[146] . '' : $txt[146]) . ''; if ($context['can_mark_notify']) $buttonArray[] = '' . ($settings['use_image_buttons'] ? '' . $txt[131] . '' : $txt[131]) . ''; // This is a special case; if they can see mark unread, put it at the top... otherwise show add poll. if ($context['user']['is_logged'] && $settings['show_mark_read']) $buttonArray[] = '' . ($settings['use_image_buttons'] ? '' . $txt['mark_unread'] . '' : $txt['mark_unread']) . ''; elseif ($context['can_add_poll']) $buttonArray[] = '' . ($settings['use_image_buttons'] ? '' . $txt['add_poll'] . '' : $txt['add_poll']) . ''; if ($context['can_send_topic']) $buttonArray[] = '' . ($settings['use_image_buttons'] ? '' . $txt[707] . '' : $txt[707]) . ''; $buttonArray[] = '' . ($settings['use_image_buttons'] ? '' . $txt[465] . '' : $txt[465]) . ''; echo implode($context['menu_separator'], $buttonArray); echo '
'; // Show the topic information - icon, subject, etc. echo '
', $txt[29], ' ', $txt[118], ': ', $context['subject'], '  (', $txt[641], ' ', $context['num_views'], ' ', $txt[642], ')
'; // if (!empty($options['display_quick_mod']) && $options['display_quick_mod'] == 1 && $context['can_remove_post']) echo '
'; echo ' '; // Get all the messages... while ($message = $context['get_message']()) { echo ' '; } echo '
'; // Show the message anchor and a "new" anchor if this message is new. if ($message['id'] != $context['first_message']) echo ' ', $message['first_new'] ? '' : ''; echo '
'; // Show information about the poster of this message. echo ' '; // Now for the attachments, signature, ip logged, etc... echo '
', $message['member']['link'], '
'; // Show the member's custom title, if they have one. if (isset($message['member']['title']) && $message['member']['title'] != '') echo ' ', $message['member']['title'], '
'; // Show the member's primary group (like 'Administrator') if they have one. if (isset($message['member']['group']) && $message['member']['group'] != '') echo ' ', $message['member']['group'], '
'; // Don't show these things for guests. if (!$message['member']['is_guest']) { // Show the post group if and only if they have no other group or the option is on, and they are in a post group. if ((empty($settings['hide_post_group']) || $message['member']['group'] == '') && $message['member']['post_group'] != '') echo ' ', $message['member']['post_group'], '
'; echo ' ', $message['member']['group_stars'], '
'; // Is karma display enabled? Total or +/-? if ($modSettings['karmaMode'] == '1') echo '
', $modSettings['karmaLabel'], ' ', $message['member']['karma']['good'] - $message['member']['karma']['bad'], '
'; elseif ($modSettings['karmaMode'] == '2') echo '
', $modSettings['karmaLabel'], ' +', $message['member']['karma']['good'], '/-', $message['member']['karma']['bad'], '
'; // Is this user allowed to modify this member's karma? if ($message['member']['karma']['allow']) echo ' ', $modSettings['karmaApplaudLabel'], ' ', $modSettings['karmaSmiteLabel'], '
'; // Show online and offline buttons? if (!empty($modSettings['onlineEnable']) && !$message['member']['is_guest']) echo ' ', $context['can_send_pm'] ? '' : '', $settings['use_image_buttons'] ? '' . $message['member']['online']['text'] . '' : $message['member']['online']['text'], $context['can_send_pm'] ? '' : '', $settings['use_image_buttons'] ? ' ' . $message['member']['online']['text'] . '' : '', '

'; // Show the member's gender icon? if (!empty($settings['show_gender']) && $message['member']['gender']['image'] != '') echo ' ', $txt[231], ': ', $message['member']['gender']['image'], '
'; // Show how many posts they have made. echo ' ', $txt[26], ': ', $message['member']['posts'], '

'; // Show avatars, images, etc.? if (!empty($settings['show_user_images']) && empty($options['show_no_avatars']) && !empty($message['member']['avatar']['image'])) echo '
', $message['member']['avatar']['image'], '

'; // Show their personal text? if (!empty($settings['show_blurb']) && $message['member']['blurb'] != '') echo ' ', $message['member']['blurb'], '

'; // This shows the popular messaging icons. echo ' ', $message['member']['icq']['link'], ' ', $message['member']['msn']['link'], ' ', $message['member']['aim']['link'], ' ', $message['member']['yim']['link'], '
'; // Show the profile, website, email address, and personal message buttons. if ($settings['show_profile_buttons']) { // Don't show the profile button if you're not allowed to view the profile. if ($message['member']['can_view_profile']) echo ' ', ($settings['use_image_buttons'] ? '' . $txt[27] . '' : $txt[27]), ''; // Don't show an icon if they haven't specified a website. if ($message['member']['website']['url'] != '') echo ' ', ($settings['use_image_buttons'] ? '' . $txt[515] . '' : $txt[515]), ''; // Don't show the email address if they want it hidden. if (empty($message['member']['hide_email'])) echo ' ', ($settings['use_image_buttons'] ? '' . $txt[69] . '' : $txt[69]), ''; // Since we know this person isn't a guest, you *can* message them. if ($context['can_send_pm']) echo ' ', $settings['use_image_buttons'] ? '' . $message['member']['online']['label'] . '' : $message['member']['online']['label'], ''; } } // Otherwise, show the guest's email. elseif (empty($message['member']['hide_email'])) echo '

', ($settings['use_image_buttons'] ? '' . $txt[69] . '' : $txt[69]), ''; // Done with the information about the poster... on to the post itself. echo '
'; // If this is the first post, (#0) just say when it was posted - otherwise give the reply #. echo '
« ', !empty($message['counter']) ? $txt[146] . ' #' . $message['counter'] : '', ' ', $txt[30], ': ', $message['time'], ' »
'; // Can they reply? Have they turned on quick reply? if ($context['can_reply'] && !empty($options['display_quick_reply'])) echo ' ', ($settings['use_image_buttons'] ? '' . $txt[145] . '' : $txt[145]), ''; // So... quick reply is off, but they *can* reply? elseif ($context['can_reply']) echo ' ', ($settings['use_image_buttons'] ? '' . $txt[145] . '' : $txt[145]), ''; // Can the user modify the contents of this post? if ($message['can_modify']) echo ' ', ($settings['use_image_buttons'] ? '' . $txt[66] . '' : $txt[17]), ''; // How about... even... remove it entirely?! if ($message['can_remove']) echo ' ', ($settings['use_image_buttons'] ? '' . $txt[121] . '' : $txt[31]), ''; // What about splitting it off the rest of the topic? if ($context['can_split']) echo ' ', ($settings['use_image_buttons'] ? '' . $txt['smf251'] . '' : $txt['smf251']), ''; // Show a checkbox for quick moderation? if (!empty($options['display_quick_mod']) && $options['display_quick_mod'] == 1 && $message['can_remove']) echo ' '; // Show the post itself, finally! echo '

', $message['body'], '
', $message['can_modify'] ? ' ' : '' , '
'; // Assuming there are attachments... if (!empty($message['attachment'])) { echo '
'; foreach ($message['attachment'] as $attachment) { if ($attachment['is_image']) { if ($attachment['thumbnail']['has_thumb']) echo '
'; else echo '
'; } echo ' * ' . $attachment['name'] . ' (', $attachment['size'], ($attachment['is_image'] ? ', ' . $attachment['real_width'] . 'x' . $attachment['real_height'] . ' - ' . $txt['attach_viewed'] : ' - ' . $txt['attach_downloaded']) . ' ' . $attachment['downloads'] . ' ' . $txt['attach_times'] . '.)
'; } echo '
'; } echo '
'; // Show "« Last Edit: Time by Person »" if this post was edited. if ($settings['show_modify'] && !empty($message['modified']['name'])) echo ' « ', $txt[211], ': ', $message['modified']['time'], ' ', $txt[525], ' ', $message['modified']['name'], ' »'; echo ' '; // Maybe they want to report this post to the moderator(s)? if ($context['can_report_moderator']) echo ' ', $txt['rtm1'], '  '; echo ' '; // Show the IP to this user for this post - because you can moderate? if ($context['can_moderate_forum'] && !empty($message['member']['ip'])) echo ' ', $message['member']['ip'], ' (?)'; // Or, should we show it because this is you? elseif ($message['can_see_ip']) echo ' ', $message['member']['ip'], ''; // Okay, are you at least logged in? Then we can show something about why IPs are logged... elseif (!$context['user']['is_guest']) echo ' ', $txt[511], ''; // Otherwise, you see NOTHING! else echo ' ', $txt[511]; echo '
'; // Show the member's signature? if (!empty($message['member']['signature']) && empty($options['show_no_signatures'])) echo '
', $message['member']['signature'], '
'; echo '
', $txt[139], ': ', $context['page_index'], (!empty($modSettings['topbottomEnable']) ? $context['menu_separator'] . '' . ($settings['use_image_buttons'] ? '' . $txt['topbottom4'] . '' : $txt['topbottom4']) . '' : ''), ' '; $buttonArray = array(); if ($context['can_reply']) $buttonArray[] = '' . ($settings['use_image_buttons'] ? '' . $txt[146] . '' : $txt[146]) . ''; if ($context['can_mark_notify']) $buttonArray[] = '' . ($settings['use_image_buttons'] ? '' . $txt[131] . '' : $txt[131]) . ''; // Another special case, similar to above but reversed. Show "add poll" unless they can't - then show unread here too. if ($context['can_add_poll']) $buttonArray[] = '' . ($settings['use_image_buttons'] ? '' . $txt['add_poll'] . '' : $txt['add_poll']) . ''; elseif ($context['user']['is_logged'] && $settings['show_mark_read']) $buttonArray[] = '' . ($settings['use_image_buttons'] ? '' . $txt['mark_unread'] . '' : $txt['mark_unread']) . ''; if ($context['can_send_topic']) $buttonArray[] = '' . ($settings['use_image_buttons'] ? '' . $txt[707] . '' : $txt[707]) . ''; $buttonArray[] = '' . ($settings['use_image_buttons'] ? '' . $txt[465] . '' : $txt[465]) . ''; echo implode($context['menu_separator'], $buttonArray); echo ' 
'; if ($context['show_spellchecking']) echo ' '; echo ' '; if ($settings['linktree_inline']) echo ' '; echo '
', theme_linktree(), ' ', $context['previous_next'], '
', theme_show_mod_buttons(), '
'; if (!empty($options['display_quick_mod']) && $options['display_quick_mod'] == 1 && $context['can_remove_post']) echo ' '; echo '
'; echo '
' . $txt[160] . ':  

'; if ($context['can_reply'] && !empty($options['display_quick_reply'])) { echo '
+ ', $txt['quick_reply_1'], '
'; } if ($context['show_spellchecking']) echo '
'; } function theme_show_mod_buttons() { global $context, $settings, $options, $txt, $scripturl, $modSettings; $moderationButtons = array(); if ($context['can_move']) $moderationButtons[] = '' . ($settings['use_image_buttons'] ? '' . $txt[132] . '' : $txt[132]) . ''; if ($context['can_delete']) $moderationButtons[] = '' . ($settings['use_image_buttons'] ? '' . $txt[63] . '' : $txt[63]) . ''; if ($context['can_lock']) $moderationButtons[] = '' . ($settings['use_image_buttons'] ? '' . (empty($context['is_locked']) ? $txt['smf279'] : $txt['smf280']) . '' : (empty($context['is_locked']) ? $txt['smf279'] : $txt['smf280'])) . ''; if ($context['can_sticky']) $moderationButtons[] = '' . ($settings['use_image_buttons'] ? '' . (empty($context['is_sticky']) ? $txt['smf277'] : $txt['smf278']) . '' : (empty($context['is_sticky']) ? $txt['smf277'] : $txt['smf278'])) . ''; if ($context['can_merge']) $moderationButtons[] = '' . ($settings['use_image_buttons'] ? '' . $txt['smf252'] . '' : $txt['smf252']) . ''; if ($context['can_remove_poll']) $moderationButtons[] = '' . ($settings['use_image_buttons'] ? '' . $txt['poll_remove'] . '' : $txt['poll_remove']) . ''; if ($context['calendar_post']) $moderationButtons[] = '' . ($settings['use_image_buttons'] ? '' . $txt['calendar37'] . '' : $txt['calendar37']) . ''; if ($context['can_remove_post'] && !empty($options['display_quick_mod']) && $options['display_quick_mod'] == 1) $moderationButtons[] = $settings['use_image_buttons'] ? '' : '' . $txt['quickmod_delete_selected'] . ''; return implode($context['menu_separator'], $moderationButtons); } ?>