', theme_linktree(), '
', $txt[139], ': ', $context['page_index'], '
'; foreach ($context['posts'] as $post) { // This is far from ideal, but oh well - create buttons for the post. $button_set = array(); if ($post['can_delete']) $button_set['delete'] = array('text' => 31, 'image' => 'delete.gif', 'lang' => true, 'custom' => 'onclick="return confirm(\'' . $txt[154] . '?\');"', 'url' => $scripturl . '?action=deletemsg2;msg=' . $post['id'] . ';topic=' . $post['topic'] . ';recent;sesc=' . $context['session_id']); if ($post['can_reply']) { $button_set['reply'] = array('text' => 146, 'image' => 'reply_sm.gif', 'lang' => true, 'url' => $scripturl . '?action=post;topic=' . $post['topic'] . '.' . $post['start']); $button_set['quote'] = array('text' => 145, 'image' => 'quote.gif', 'lang' => true, 'url' => $scripturl . '?action=post;topic=' . $post['topic'] . '.' . $post['start'] . ';quote=' . $post['id'] . ';sesc=' . $context['session_id']); } if ($post['can_mark_notify']) $button_set['notify'] = array('text' => 131, 'image' => 'notify_sm.gif', 'lang' => true, 'url' => $scripturl . '?action=notify;topic=' . $post['topic'] . '.' . $post['start']); echo ' '; // Are we using tabs? if (!empty($settings['use_tabs'])) { echo '
 ', $post['counter'], ' 
 ', $post['category']['link'], ' / ', $post['board']['link'], ' / ', $post['link'], '
 ', $txt[30], ': ', $post['time'], ' 
', $txt[109], ' ' . $post['first_poster']['link'] . ' - ' . $txt[22] . ' ' . $txt[525] . ' ' . $post['poster']['link'] . '
' . $post['message'] . '
'; if (!empty($button_set)) echo ' ', template_button_strip($button_set, 'top', true), '

'; } else { if (!empty($button_set)) echo ' ', template_button_strip($button_set, 'top', true), '
'; echo ' '; } echo '
'; } echo '
', $txt[139], ': ', $context['page_index'], '
'; } function template_unread() { global $context, $settings, $options, $txt, $scripturl, $modSettings; echo '
', theme_linktree(), '
'; if ($settings['show_mark_read']) { // Generate the button strip. $mark_read = array( 'markread' => array('text' => !empty($context['no_board_limits']) ? 452 : 'mark_read_short', 'image' => 'markread.gif', 'lang' => true, 'url' => $scripturl . '?action=markasread;sa=' . (!empty($context['no_board_limits']) ? 'all' : 'board' . $context['querystring_board_limits']) . ';sesc=' . $context['session_id']), ); echo ' '; } echo '
' . $txt[139] . ': ' . $context['page_index'] . ' ', template_button_strip($mark_read, 'bottom'), '
'; if (!empty($context['topics'])) echo ' '; else echo ' '; echo ' '; foreach ($context['topics'] as $topic) { // Do we want to seperate the sticky and lock status out? if (!empty($settings['seperate_sticky_lock']) && strpos($topic['class'], 'sticky') !== false) $topic['class'] = substr($topic['class'], 0, strrpos($topic['class'], '_sticky')); if (!empty($settings['seperate_sticky_lock']) && strpos($topic['class'], 'locked') !== false) $topic['class'] = substr($topic['class'], 0, strrpos($topic['class'], '_locked')); echo ' '; } if (!empty($context['topics']) && !$context['showing_all_topics']) echo ' '; echo '
  ', $txt[70], $context['sort_by'] == 'subject' ? ' ' : '', ' ', $txt[109], $context['sort_by'] == 'starter' ? ' ' : '', ' ', $txt[110], $context['sort_by'] == 'replies' ? ' ' : '', ' ', $txt[301], $context['sort_by'] == 'views' ? ' ' : '', ' ', $txt[111], $context['sort_by'] == 'last_post' ? ' ' : '', ' ', $context['showing_all_topics'] ? $txt[151] : $txt['unread_topics_visit_none'], '
' , $topic['is_locked'] && !empty($settings['seperate_sticky_lock']) ? ' ' : '' , $topic['is_sticky'] && !empty($settings['seperate_sticky_lock']) ? ' ' : '', $topic['first_post']['link'], ' ', $txt[302], ' ', $topic['pages'], ' ', $txt['smf88'], ' ', $topic['board']['link'], ' ', $topic['first_post']['member']['link'], ' ', $topic['replies'], ' ', $topic['views'], ' ', $txt[111], ' ', $topic['last_post']['time'], '
', $txt[525], ' ', $topic['last_post']['member']['link'], '
', $txt['unread_topics_all'], '
'; if ($settings['show_mark_read']) echo ' '; echo '
', $txt[139], ': ', $context['page_index'], ' ', template_button_strip($mark_read, 'top'), '

', !empty($modSettings['enableParticipation']) ? ' ' . $txt['participation_caption'] . '
' : '', ' ' . $txt[457] . '
' . $txt[454] . '
' . $txt[455] . '
' . $txt[456] . '
' . ($modSettings['enableStickyTopics'] == '1' ? ' ' . $txt['smf96'] . '
' : '') . ($modSettings['pollMode'] == '1' ? ' ' . $txt['smf43'] : '') . '
'; } function template_replies() { global $context, $settings, $options, $txt, $scripturl, $modSettings; echo '
', theme_linktree(), '
'; if (isset($context['topics_to_mark']) && !empty($settings['show_mark_read'])) { $mark_read = array( 'markread' => array('text' => 452, 'image' => 'markread.gif', 'lang' => true, 'url' => $scripturl . '?action=markasread;sa=unreadreplies;topics=' . $context['topics_to_mark'] . ';sesc=' . $context['session_id']), ); echo ' '; } echo '
' . $txt[139] . ': ' . $context['page_index'] . ' ', template_button_strip($mark_read, 'bottom'), '
'; if (!empty($context['topics'])) echo ' '; else echo ' '; echo ' '; foreach ($context['topics'] as $topic) { // Seperate lock and sticky again? if (!empty($settings['seperate_sticky_lock']) && strpos($topic['class'], 'sticky') !== false) $topic['class'] = substr($topic['class'], 0, strrpos($topic['class'], '_sticky')); if (!empty($settings['seperate_sticky_lock']) && strpos($topic['class'], 'locked') !== false) $topic['class'] = substr($topic['class'], 0, strrpos($topic['class'], '_locked')); echo ' '; } echo '
  ', $txt[70], $context['sort_by'] == 'subject' ? ' ' : '', ' ', $txt[109], $context['sort_by'] == 'starter' ? ' ' : '', ' ', $txt[110], $context['sort_by'] == 'replies' ? ' ' : '', ' ', $txt[301], $context['sort_by'] == 'views' ? ' ' : '', ' ', $txt[111], $context['sort_by'] == 'last_post' ? ' ' : '', '' . $txt[151] . '
' , $topic['is_locked'] && !empty($settings['seperate_sticky_lock']) ? '' : '' , ' ' , $topic['is_sticky'] && !empty($settings['seperate_sticky_lock']) ? '' : '', ' ', $topic['first_post']['link'], ' ', $txt[302], ' ', $topic['pages'], ' ', $txt['smf88'], ' ', $topic['board']['link'], ' ', $topic['first_post']['member']['link'], ' ', $topic['replies'], ' ', $topic['views'], ' ', $txt[111], ' ', $topic['last_post']['time'], '
', $txt[525], ' ', $topic['last_post']['member']['link'], '
'; if (isset($context['topics_to_mark']) && !empty($settings['show_mark_read'])) echo ' '; echo '
' . $txt[139] . ': ' . $context['page_index'] . ' ', template_button_strip($mark_read, 'top'), '

', !empty($modSettings['enableParticipation']) ? ' ' . $txt['participation_caption'] . '
' : '', ' ' . $txt[457] . '
' . $txt[454] . '
' . $txt[455] . '
' . $txt[456] . '
' . ($modSettings['enableStickyTopics'] == '1' ? ' ' . $txt['smf96'] . '
' : '') . ($modSettings['pollMode'] == '1' ? ' ' . $txt['smf43'] : '') . '
'; } ?>