', $txt['recent_posts'], '

'; if (!empty($context['page_index'])) echo '
'; if (empty($context['posts'])) echo '
', $txt['no_messages'], '
'; foreach ($context['posts'] as $post) { echo '
#', $post['counter'], '
', $post['board']['link'], ' / ', $post['link'], '
', $txt['last_poster'], ' ', $post['poster']['link'], ' - ', $post['time'], '
', $post['message'], '
'; // Post options template_quickbuttons($post['quickbuttons'], 'recent'); echo '
'; } echo '
'; } /** * Template for showing unread posts */ function template_unread() { global $context, $txt, $scripturl, $modSettings, $board_info; // User action pop on mobile screen (or actually small screen), this uses responsive css does not check mobile device. if (!empty($context['recent_buttons'])) echo ' '; echo '

', (!empty($board_info['name']) ? $board_info['name'] . ' - ' : '') . $context['page_title'], '

'; if ($context['showCheckboxes']) echo '
'; if (!empty($context['topics'])) { echo '
', $context['menu_separator'], ' ', !empty($context['recent_buttons']) ? template_button_strip($context['recent_buttons'], 'right') : ''; // Mobile action (top) if (!empty($context['recent_buttons'])) echo ' '; echo '
'; echo '
'; foreach ($context['topics'] as $topic) { echo '
', $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 '
'; echo '
' . $txt['new'] . ' ', $topic['is_sticky'] ? '' : '', '', $topic['first_post']['link'], '', $topic['is_sticky'] ? '' : '', '

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

', !empty($topic['pages']) ? '' . $topic['pages'] . '' : '', '

', $topic['replies'], ' ', $txt['replies'], '
', $topic['views'], ' ', $txt['views'], '

', sprintf($txt['last_post_topic'], '' . $topic['last_post']['time'] . '', $topic['last_post']['member']['link']), '
'; if ($context['showCheckboxes']) echo '
'; echo '
'; } if (empty($context['topics'])) echo '
'; echo '
'; echo '
', !empty($context['recent_buttons']) ? template_button_strip($context['recent_buttons'], 'right') : '', ' ', $context['menu_separator'], ' '; // Mobile action (bottom) if (!empty($context['recent_buttons'])) echo ' '; echo '
'; } else echo '

', $context['showing_all_topics'] ? $txt['topic_alert_none'] : sprintf($txt['unread_topics_visit_none'], $scripturl), '

'; if ($context['showCheckboxes']) echo '
'; echo '
'; if (empty($context['no_topic_listing'])) template_topic_legend(); } /** * Template for showing unread replies (eg new replies to topics you've posted in) */ function template_replies() { global $context, $txt, $scripturl, $modSettings, $board_info; // User action pop on mobile screen (or actually small screen), this uses responsive css does not check mobile device. if (!empty($context['recent_buttons'])) echo ' '; echo '

', (!empty($board_info['name']) ? $board_info['name'] . ' - ' : '') . $context['page_title'], '

'; if ($context['showCheckboxes']) echo '
'; if (!empty($context['topics'])) { echo '
', $context['menu_separator'], ' ', !empty($context['recent_buttons']) ? template_button_strip($context['recent_buttons'], 'right') : ''; // Mobile action (top) if (!empty($context['recent_buttons'])) echo ' '; echo '
'; echo '
'; foreach ($context['topics'] as $topic) { echo '
', $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 '
'; echo '
' . $txt['new'] . ' ', $topic['is_sticky'] ? '' : '', '', $topic['first_post']['link'], '', $topic['is_sticky'] ? '' : '', '

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

', !empty($topic['pages']) ? '' . $topic['pages'] . '' : '', '

', $topic['replies'], ' ', $txt['replies'], '
', $topic['views'], ' ', $txt['views'], '

', sprintf($txt['last_post_topic'], '' . $topic['last_post']['time'] . '', $topic['last_post']['member']['link']), '
'; if ($context['showCheckboxes']) echo '
'; echo '
'; } echo '
', !empty($context['recent_buttons']) ? template_button_strip($context['recent_buttons'], 'right') : '', ' ', $context['menu_separator'], ' '; // Mobile action (bottom) if (!empty($context['recent_buttons'])) echo ' '; echo '
'; } else echo '

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

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