's for the icon stuffz, and the buttonlist
', $txt['new_posts'], '
'; echo '', $txt['old_posts'], '
', $txt['redirect_board'], '
', $txt['recent_view'], ' ', sprintf($txt['is_recent_updated'], '"' . $context['latest_post']['link'] . '"'), ' (', $context['latest_post']['html_time'], ')
'; } // Show lots of posts. @todo - Although data here is actually tabular, perhaps use faux table for greater responsiveness. elseif (!empty($context['latest_posts'])) { echo '', $txt['message'], ' | ', $txt['author'], ' | ', $txt['board'], ' | ', $txt['date'], ' |
---|---|---|---|
', $post['link'], ' | ', $post['poster']['link'], ' | ', $post['board']['link'], ' | ', $post['html_time'], ' |
', $txt['calendar_prompt'], ' ', implode(', ', $context['calendar_holidays']), '
'; // People's birthdays. Like mine. And yours, I guess. Kidding. if (!empty($context['calendar_birthdays'])) { echo '', $context['calendar_only_today'] ? $txt['birthdays'] : $txt['birthdays_upcoming'], ''; // Each member in calendar_birthdays has: id, name (person), age (if they have one set?), is_last. (last in list?), and is_today (birthday is today?) foreach ($context['calendar_birthdays'] as $member) echo ' ', $member['is_today'] ? '' : '', $member['name'], $member['is_today'] ? '' : '', isset($member['age']) ? ' (' . $member['age'] . ')' : '', '', $member['is_last'] ? '' : ', '; echo '
'; } // Events like community get-togethers. if (!empty($context['calendar_events'])) { echo '
', $context['calendar_only_today'] ? $txt['events'] : $txt['events_upcoming'], ' ';
// Each event in calendar_events should have:
// title, href, is_last, can_edit (are they allowed?), modify_href, and is_today.
foreach ($context['calendar_events'] as $event)
echo '
', $event['can_edit'] ? ' ' : '', $event['href'] == '' ? '' : '', $event['is_today'] ? '' . $event['title'] . '' : $event['title'], $event['href'] == '' ? '' : '', $event['is_last'] ? '
' : ', ';
echo '
', $context['common_stats']['boardindex_total_posts'], '', !empty($settings['show_latest_member']) ? ' - ' . $txt['latest_member'] . ': ' . $context['common_stats']['latest_member']['link'] . '' : '', ' - ', $txt['most_online_today'], ': ', comma_format($modSettings['mostOnlineToday']), '
', (!empty($context['latest_post']) ? $txt['latest_post'] . ': "' . $context['latest_post']['link'] . '" ( ' . $context['latest_post']['time'] . ' )' : ''), ' - ', $txt['recent_view'], '
', sprintf($txt['users_active'], $modSettings['lastActive']), ': ', implode(', ', $context['list_users_online']), '
'; // Showing membergroups? if (!empty($settings['show_group_key']) && !empty($context['membergroups'])) echo '[' . implode(', ', $context['membergroups']) . ']
'; } echo '