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