',$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, $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) { // We start with locked and sticky topics. if ($topic['is_sticky'] && $topic['is_locked']) $color_class = 'stickybg locked_sticky'; // Sticky topics should get a different color, too. elseif ($topic['is_sticky']) $color_class = 'stickybg'; // Locked topics get special treatment as well. elseif ($topic['is_locked']) $color_class = 'lockedbg'; // Last, but not least: regular topics. else $color_class = 'windowbg'; $color_class2 = !empty($color_class) ? $color_class . '2' : 'windowbg2'; // [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'], ' ', sprintf($txt['last_post_topic'], $topic['last_post']['time'], $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['topic_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'], '
', $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) { // We start with locked and sticky topics. if ($topic['is_sticky'] && $topic['is_locked']) $color_class = 'stickybg locked_sticky'; // Sticky topics should get a different color, too. elseif ($topic['is_sticky']) $color_class = 'stickybg'; // Locked topics get special treatment as well. elseif ($topic['is_locked']) $color_class = 'lockedbg'; // Last, but not least: regular topics. else $color_class = 'windowbg'; $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'], ' ', sprintf($txt['last_post_topic'], $topic['last_post']['time'], $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['topic_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'], '
' . $txt['sticky_topic'] . '
' . ($modSettings['pollMode'] == '1' ? ' ' . $txt['poll'] : '') . '

'; } ?>