',$txt['recent_posts'],'

', $context['page_index'], '
'; foreach ($context['posts'] as $post) { echo '
', $post['counter'], '
', $post['board']['link'], ' / ', $post['link'], '
', $txt['last_post'], ' ', $txt['by'], ' ', $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, $options, $txt, $scripturl, $modSettings; echo '
'; if ($context['showCheckboxes']) echo '
'; if (!empty($context['topics'])) { echo '
'; if (!empty($context['recent_buttons'])) template_button_strip($context['recent_buttons'], 'right'); echo '
'; // [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) { // Calculate the color class of the topic. $color_class = ''; if (strpos($topic['class'], 'sticky') !== false) $color_class = 'stickybg'; if (strpos($topic['class'], 'locked') !== false) $color_class .= 'lockedbg'; $color_class2 = !empty($color_class) ? $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'] ? '' : '','
'; // [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'], '
', $txt['last_post'], ' ', $topic['last_post']['time'], '
', $txt['by'], ' ', $topic['last_post']['member']['link'], '
'; if (!empty($context['recent_buttons'])) template_button_strip($context['recent_buttons'], 'right'); echo '
'; } else echo '

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

'; if ($context['showCheckboxes']) echo '
'; echo '

', !empty($modSettings['enableParticipation']) ? ' ' . $txt['participation_caption'] . '
' : '', ' ', $txt['normal_topic'], '
', sprintf($txt['hot_topics'], $modSettings['hotTopicPosts']), '
', sprintf($txt['very_hot_topics'], $modSettings['hotTopicVeryPosts']), '

', $txt['locked_topic'], '
', ($modSettings['enableStickyTopics'] == '1' ? ' ' . $txt['sticky_topic'] . '
' : ''), ($modSettings['pollMode'] == '1' ? ' ' . $txt['poll'] : ''), '

'; } function template_replies() { global $context, $settings, $options, $txt, $scripturl, $modSettings; echo '
'; if ($context['showCheckboxes']) echo '
'; if (!empty($context['topics'])) { echo '
'; if (!empty($context['recent_buttons'])) template_button_strip($context['recent_buttons'], 'right'); echo '
'; // [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) { // Calculate the color class of the topic. $color_class = ''; if (strpos($topic['class'], 'sticky') !== false) $color_class = 'stickybg'; if (strpos($topic['class'], 'locked') !== false) $color_class .= 'lockedbg'; $color_class2 = !empty($color_class) ? $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'] ? '' : '','
'; // [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'], '
', $txt['last_post'], ' ', $topic['last_post']['time'], '
', $txt['by'], ' ', $topic['last_post']['member']['link'], '
'; if (!empty($context['recent_buttons'])) template_button_strip($context['recent_buttons'], 'right'); echo '
'; } else echo '

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

'; if ($context['showCheckboxes']) echo '
'; echo '

', !empty($modSettings['enableParticipation']) ? ' ' . $txt['participation_caption'] . '
' : '', ' ', $txt['normal_topic'], '
', sprintf($txt['hot_topics'], $modSettings['hotTopicPosts']), '
', sprintf($txt['very_hot_topics'], $modSettings['hotTopicVeryPosts']), '

', $txt['locked_topic'], '
', ($modSettings['enableStickyTopics'] == '1' ? ' ' . $txt['sticky_topic'] . '
' : '') . ($modSettings['pollMode'] == '1' ? ' ' . $txt['poll'] : '') . '

'; } ?>