',$txt['recent_posts'],'

', $txt['pages'], ': ', $context['page_index'], '
'; foreach ($context['posts'] as $post) { echo '
', $post['counter'], '
', $post['board']['link'], ' / ', $post['link'], '
« ', $txt['last_post'], ' ', $txt['by'], ' ', $post['poster']['link'], ' ', $txt['on'], ' ', $post['time'], ' »
', $post['message'], '
'; if ($post['can_reply'] || $post['can_mark_notify'] || $post['can_delete']) echo '
'; echo '
'; } echo '
', $txt['pages'], ': ', $context['page_index'], '
'; } function template_unread() { global $context, $settings, $options, $txt, $scripturl, $modSettings; echo '
'; $showCheckboxes = !empty($options['display_quick_mod']) && $options['display_quick_mod'] == 1 && $settings['show_mark_read']; if ($showCheckboxes) echo '
'; if ($settings['show_mark_read']) { // Generate the button strip. $mark_read = array( 'markread' => array('text' => !empty($context['no_board_limits']) ? 'mark_as_read' : 'mark_read_short', 'image' => 'markread.gif', 'lang' => true, 'url' => $scripturl . '?action=markasread;sa=' . (!empty($context['no_board_limits']) ? 'all' : 'board' . $context['querystring_board_limits']) . ';' . $context['session_var'] . '=' . $context['session_id']), ); if ($showCheckboxes) $mark_read['markselectread'] = array( 'text' => 'quick_mod_markread', 'image' => 'markselectedread.gif', 'lang' => true, 'url' => 'javascript:document.quickModForm.submit();', ); } if (!empty($context['topics'])) { echo '
'; if (!empty($mark_read) && !empty($settings['use_tabs'])) template_button_strip($mark_read, 'right'); echo ' ', $txt['pages'], ': ', $context['page_index'], '
'; echo '
'; // Show a "select all" box for quick moderation? if ($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' : ''; echo ' '; if ($showCheckboxes) echo ' '; echo ' '; } if (!empty($context['topics']) && !$context['showing_all_topics']) $mark_read['readall'] = array('text' => 'unread_topics_all', 'image' => 'markreadall.gif', 'lang' => true, 'url' => $scripturl . '?action=unread;all' . $context['querystring_board_limits'], 'active' => true); if (empty($settings['use_tabs']) && !empty($mark_read)) 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_sticky'] ? '' : '', '', $topic['first_post']['link'], '', $topic['is_sticky'] ? '' : '', ' ', $txt['new'], '

', $txt['started_by'], ' ', $topic['first_post']['member']['link'], ' ', $txt['in'], ' ', $topic['board']['link'], ' ', $topic['pages'], '

', $topic['replies'], ' ', $txt['replies'], '
', $topic['views'], ' ', $txt['views'], '
', $txt['last_post'], ' ', $topic['last_post']['time'], '
', $txt['by'], ' ', $topic['last_post']['member']['link'], '
', template_button_strip($mark_read, 'top'), '
'; if (!empty($settings['use_tabs']) && !empty($mark_read)) template_button_strip($mark_read, 'right'); echo ' ', $txt['pages'], ': ', $context['page_index'], '
'; } else echo '

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

'; if ($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 '
'; $showCheckboxes = !empty($options['display_quick_mod']) && $options['display_quick_mod'] == 1 && $settings['show_mark_read']; if ($showCheckboxes) echo '
'; if (isset($context['topics_to_mark']) && !empty($settings['show_mark_read'])) { // Generate the button strip. $mark_read = array( 'markread' => array('text' => 'mark_as_read', 'image' => 'markread.gif', 'lang' => true, 'url' => $scripturl . '?action=markasread;sa=unreadreplies;topics=' . $context['topics_to_mark'] . ';' . $context['session_var'] . '=' . $context['session_id']), ); if ($showCheckboxes) $mark_read['markselectread'] = array( 'text' => 'quick_mod_markread', 'image' => 'markselectedread.gif', 'lang' => true, 'url' => 'javascript:document.quickModForm.submit();', ); } if (!empty($context['topics'])) { echo '
'; if (!empty($mark_read) && !empty($settings['use_tabs'])) template_button_strip($mark_read, 'right'); echo ' ', $txt['pages'], ': ', $context['page_index'], '
'; echo '
'; // Show a "select all" box for quick moderation? if ($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' : ''; echo ' '; if ($showCheckboxes) echo ' '; echo ' '; } if (empty($settings['use_tabs']) && !empty($mark_read)) 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_sticky'] ? '' : '', '', $topic['first_post']['link'], '', $topic['is_sticky'] ? '' : '', ' ', $txt['new'], '

', $txt['started_by'], ' ', $topic['first_post']['member']['link'], ' ', $txt['in'], ' ', $topic['board']['link'], ' ', $topic['pages'], '

', $topic['replies'], ' ', $txt['replies'], '
', $topic['views'], ' ', $txt['views'], '
', $txt['last_post'], ' ', $topic['last_post']['time'], '
', $txt['by'], ' ', $topic['last_post']['member']['link'], '
', template_button_strip($mark_read, 'top'), '
'; if (!empty($settings['use_tabs']) && !empty($mark_read)) template_button_strip($mark_read, 'right'); echo ' ', $txt['pages'], ': ', $context['page_index'], '
'; } else echo '

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

'; if ($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'] : '') . '

'; } ?>