',$txt['recent_posts'],'

', $context['page_index'], '
'; foreach ($context['posts'] as $post) { echo '
', $post['counter'], '
', $post['board']['link'], ' / ', $post['link'], '
', $txt['last_poster'], ' ', $post['poster']['link'], ' - ', $post['time'], '
', $post['message'], '
'; if ($post['can_reply'] || $post['can_mark_notify'] || $post['can_delete']) echo '
'; echo '
'; } echo '
', $context['page_index'], '
'; } function template_unread() { global $context, $settings, $txt, $scripturl, $modSettings; echo '
'; if ($context['showCheckboxes']) echo '
'; if (!empty($context['topics'])) { echo '
', $context['menu_separator'], '', $txt['go_down'], ' ', !empty($context['recent_buttons']) ? template_button_strip($context['recent_buttons'], 'right') : '', '
'; // [WIP] There is trial code here to hide the topic icon column. Colspan can be cleaned up later. echo '
'; // Show a "select all" box for quick moderation? if ($context['showCheckboxes']) echo ' '; else echo ' '; echo ' '; foreach ($context['topics'] as $topic) { $color_class = 'windowbg'; // Sticky topics should get a different color, too. if ($topic['is_sticky']) $color_class = 'sticky ' . $color_class; // Locked topics get special treatment as well. if ($topic['is_locked']) $color_class = 'locked ' . $color_class; $color_class2 = $color_class . '2'; // [WIP] There is trial code here to hide the topic icon column. Hardly anyone will miss it. // [WIP] Markup can be cleaned up later. CSS can go in the CSS files later. echo ' '; if ($context['showCheckboxes']) echo ' '; echo ' '; } if (empty($context['topics'])) echo ' '; echo '
  ', $txt['subject'], $context['sort_by'] == 'subject' ? ' ' : '', ' ', $txt['replies'], $context['sort_by'] == 'replies' ? ' ' : '', ' ', $txt['last_post'], $context['sort_by'] == 'last_post' ? ' ' : '', ' ', $txt['last_post'], $context['sort_by'] == 'last_post' ? ' ' : '', '
', $topic['is_posted_in'] ? '' : '','
'; // Now we handle the icons echo '
'; if ($topic['is_locked']) echo ' '; if ($topic['is_sticky']) echo ' '; if ($topic['is_poll']) echo ' '; echo '
'; // [WIP] MEthinks the orange icons look better if they aren't all over the page. echo ' ' . $txt['new'] . ' ', $topic['is_sticky'] ? '' : '', '', $topic['first_post']['link'], '', $topic['is_sticky'] ? '' : '', '

', $topic['first_post']['started_by'], ' ', $topic['pages'], '

', $topic['replies'], ' ', $txt['replies'], '
', $topic['views'], ' ', $txt['views'], '
', sprintf($txt['last_post_topic'], '' . $topic['last_post']['time'] . '', $topic['last_post']['member']['link']), '
', !empty($context['recent_buttons']) ? template_button_strip($context['recent_buttons'], 'right') : '', ' ', $context['menu_separator'], '', $txt['go_up'], '
'; } else echo '

', $context['showing_all_topics'] ? $txt['topic_alert_none'] : $txt['unread_topics_visit_none'], '

'; if ($context['showCheckboxes']) echo '
'; echo '
'; if (empty($context['no_topic_listing'])) template_topic_legend(); } function template_replies() { global $context, $settings, $txt, $scripturl, $modSettings; echo '
'; if ($context['showCheckboxes']) echo '
'; if (!empty($context['topics'])) { echo '
', $context['menu_separator'], '', $txt['go_down'], ' ', !empty($context['recent_buttons']) ? template_button_strip($context['recent_buttons'], 'right') : '', '
'; // [WIP] There is trial code here to hide the topic icon column. Colspan can be cleaned up later. echo '
'; // Show a "select all" box for quick moderation? if ($context['showCheckboxes']) echo ' '; else echo ' '; echo ' '; foreach ($context['topics'] as $topic) { $color_class = 'windowbg'; // Sticky topics should get a different color, too. if ($topic['is_sticky']) $color_class = 'sticky ' . $color_class; // Locked topics get special treatment as well. if ($topic['is_locked']) $color_class = 'locked ' . $color_class; $color_class2 = $color_class . '2'; // [WIP] There is trial code here to hide the topic icon column. Hardly anyone will miss it. // [WIP] Markup can be cleaned up later. CSS can go in the CSS files later. echo ' '; if ($context['showCheckboxes']) echo ' '; echo ' '; } echo '
  ', $txt['subject'], $context['sort_by'] === 'subject' ? ' ' : '', ' ', $txt['replies'], $context['sort_by'] === 'replies' ? ' ' : '', ' ', $txt['last_post'], $context['sort_by'] === 'last_post' ? ' ' : '', ' ', $txt['last_post'], $context['sort_by'] === 'last_post' ? ' ' : '', '
', $topic['is_posted_in'] ? '' : '','
'; // Now we handle the icons echo '
'; if ($topic['is_locked']) echo ' '; if ($topic['is_sticky']) echo ' '; if ($topic['is_poll']) echo ' '; echo '
'; // [WIP] MEthinks the orange icons look better if they aren't all over the page. echo ' ' . $txt['new'] . ' ', $topic['is_sticky'] ? '' : '', '', $topic['first_post']['link'], '', $topic['is_sticky'] ? '' : '', '

', $topic['first_post']['started_by'], ' ', $topic['pages'], '

', $topic['replies'], ' ', $txt['replies'], '
', $topic['views'], ' ', $txt['views'], '
', sprintf($txt['last_post_topic'], '' . $topic['last_post']['time'] . '', $topic['last_post']['member']['link']), '
', !empty($context['recent_buttons']) ? template_button_strip($context['recent_buttons'], 'right') : '', ' ', $context['menu_separator'], '', $txt['go_up'], '
'; } else echo '

', $context['showing_all_topics'] ? $txt['topic_alert_none'] : $txt['unread_topics_visit_none'], '

'; if ($context['showCheckboxes']) echo '
'; echo '
'; if (empty($context['no_topic_listing'])) template_topic_legend(); } ?>