', $context['forum_name_html_safe'], '
', strip_tags($category['name']), '
', $context['name'], '
'; if (isset($context['boards']) && count($context['boards']) > 0) { foreach ($context['boards'] as $board) echo ' '; echo '', $txt['pages'], ': ', !empty($context['links']['prev']) ? '<< < ' : '', '(', $context['page_info']['current_page'], '/', $context['page_info']['num_pages'], ')', !empty($context['links']['next']) ? ' > >> ' : '', '
', $topic['first_post']['subject'], '', (!$topic['approved'] ? ' (' . $txt['awaiting_approval'] . ')' : ''), ' - ', $topic['first_post']['member']['name'], '
', $txt['pages'], ': ', !empty($context['links']['prev']) ? '<< < ' : '', '(', $context['page_info']['current_page'], '/', $context['page_info']['num_pages'], ')', !empty($context['links']['next']) ? ' > >> ' : '', '
'; } echo '' . $context['linktree'][1]['name'] . ' > ' . $context['linktree'][count($context['linktree']) - 2]['name'] . '
', $context['subject'], '
', $txt['pages'], ': ', !empty($context['links']['prev']) ? '<< < ' : '', '(', $context['page_info']['current_page'], '/', $context['page_info']['num_pages'], ')', !empty($context['links']['next']) ? ' > >> ' : '', '
', '', '
',
'
',
'', $message['member']['name'], ':', (!$message['approved'] ? ' (' . $txt['awaiting_approval'] . ')' : ''), '
', $message['body'], '
', $txt['pages'], ': ', !empty($context['links']['prev']) ? '<< < ' : '', '(', $context['page_info']['current_page'], '/', $context['page_info']['num_pages'], ')', !empty($context['links']['next']) ? ' > >> ' : '', '
', $error, '
'; echo '', $txt['username'], ':
', $txt['password'], ':
—', $txt['or'], '—
', $txt['openid'], ':
', $_REQUEST['action'] == 'unread' ? $txt['wireless_recent_unread_posts'] : $txt['wireless_recent_unread_replies'], '
'; if (empty($context['topics'])) echo '', $txt['old_posts'], '
'; else { echo '', $txt['pages'], ': ', !empty($context['links']['prev']) ? '<< < ' : '', '(', $context['page_info']['current_page'], '/', $context['page_info']['num_pages'], ')', !empty($context['links']['next']) ? ' > >> ' : '', '
', $context['error_title'], '
', $context['error_message'], '
', $context['forum_name_html_safe'], ' |
', $category['can_collapse'] ? '' : '', $category['name'], $category['can_collapse'] ? '' : '', ' |
', $board['new'] ? '' : '', $count < 10 ? '' . (59105 + $count) . ';' : '-', $board['new'] ? '' : ($board['children_new'] ? '.' : ''), ' ', $board['name'], ' |
', $txt['wireless_options'], ' |
', $txt['wireless_options_login'], ' |
', empty($context['user']['unread_messages']) ? $txt['wireless_pm_inbox'] : sprintf($txt['wireless_pm_inbox_new'], $context['user']['unread_messages']), ' |
', $txt['wireless_recent_unread_posts'], ' |
', $txt['wireless_recent_unread_replies'], ' |
', $txt['wireless_options_logout'], ' |
', $context['name'], ' |
', $txt['parent_boards'], ' |
', $board['new'] ? '- ' : ($board['children_new'] ? '-.' : '- '), '', $board['name'], ' |
', $txt['topics'], ' |
', !empty($context['links']['prev']) ? '<< < ' : '', '(', $context['page_info']['current_page'], '/', $context['page_info']['num_pages'], ')', !empty($context['links']['next']) ? ' > >> ' : '', ' |
', $count < 10 ? '' . (59105 + $count) . '; ' : '', '', $topic['first_post']['subject'], '', (!$topic['approved'] ? ' (' . $txt['awaiting_approval'] . ')' : ''), $topic['new'] && $context['user']['is_logged'] ? ' [' . $txt['new'] . ']' : '', ' |
', $txt['wireless_navigation'], ' |
', $txt['wireless_navigation_up'], ' |
' . $txt['wireless_navigation_next'] . ' |
[*] ' . $txt['wireless_navigation_prev'] . ' |
' . $txt['start_new_topic'] . ' |
' . $context['linktree'][1]['name'] . ' > ' . $context['linktree'][count($context['linktree']) - 2]['name'] . ' |
', $context['subject'], ' |
', !empty($context['links']['prev']) ? '<< < ' : '', '(', $context['page_info']['current_page'], '/', $context['page_info']['num_pages'], ')', !empty($context['links']['next']) ? ' > >> ' : '', ' |
', $message['first_new'] ? '
' : '',
$context['wireless_moderate'] && $message['member']['id'] ? '' . $message['member']['name'] . '' : '' . $message['member']['name'] . '', ':
', ((empty($context['wireless_more']) && $message['can_modify']) || !empty($context['wireless_moderate']) ? '[' . $txt['wireless_display_edit'] . ']' : ''), (!$message['approved'] ? ' (' . $txt['awaiting_approval'] . ')' : ''), ' ', $message['body'], ' |
', $txt['wireless_navigation'], ' |
', $txt['wireless_navigation_index'], ' |
' . $txt['mark_unread'] . ' |
' . $txt['wireless_navigation_next'] . ' |
' . $txt['wireless_navigation_prev'] . ' |
' . $txt['reply'] . ' |
', $txt['wireless_display_moderate'], ' |
', $txt['wireless_display_' . ($context['is_sticky'] ? 'unsticky' : 'sticky')], ' |
', $txt['wireless_display_' . ($context['is_locked'] ? 'unlock' : 'lock')], ' |
', $txt['wireless_pm_add_buddy'], ' |
', $txt['wireless_pm_select_buddy'], ' |
[-] ', $buddy['name'], ' |
', $count < 10 ? '' . (59105 + $count) . '; ' : '', '', $buddy['name'], ' |
', $txt['wireless_navigation'], ' |
[0] ', $txt['wireless_navigation_up'], ' |
', $context['current_label_id'] == -1 ? $txt['wireless_pm_inbox'] : $txt['pm_current_label'] . ': ' . $context['current_label'], ' |
', empty($context['links']['prev']) ? '' : '<< < ', '(', $context['page_info']['current_page'], '/', $context['page_info']['num_pages'], ')', empty($context['links']['next']) ? '' : ' > >> ', ' |
', $count < 10 ? '' . (59105 + $count) . '; ' : '', '', $message['subject'], ' ', $txt['wireless_pm_by'], ' ', $message['member']['name'], '', $message['is_unread'] ? ' [' . $txt['new'] . ']' : '', ' |
', $txt['pm_labels'], ' |
', implode(', ', $labels), ' |
', $txt['wireless_navigation'], ' |
[0] ', $txt['wireless_navigation_up'], ' |
[#] ' . $txt['wireless_navigation_next'] . ' |
[*] ' . $txt['wireless_navigation_prev'] . ' |
' . $txt['new_message'] . ' |
', '', '
',
'
',
'', $message['subject'], ' |
', $txt['wireless_pm_by'], ': ', $message['member']['name'], ' ', $txt['on'], ': ', $message['time'], ' |
', $message['body'], ' |
', $txt['wireless_navigation'], ' |
[0] ', $txt['wireless_navigation_up'], ' |
', $txt['wireless_pm_reply'], ' |
', $txt['wireless_pm_reply_all'], ' |
', $_REQUEST['action'] == 'unread' ? $txt['wireless_recent_unread_posts'] : $txt['wireless_recent_unread_replies'], ' |
', $txt['old_posts'], ' |
', !empty($context['links']['prev']) ? '<< < ' : '', '(', $context['page_info']['current_page'], '/', $context['page_info']['num_pages'], ')', !empty($context['links']['next']) ? ' > >> ' : '', ' |
', $count < 10 ? '' . (59105 + $count) . '; ' : '', '', $topic['first_post']['subject'], ' |
', $txt['wireless_navigation'], ' |
[0] ', $txt['wireless_navigation_up'], ' |
[#] ' . $txt['wireless_navigation_next'] . ' |
[*] ' . $txt['wireless_navigation_prev'] . ' |
', $context['error_title'], ' |
', $context['error_message'], ' |
[0] ', $txt['wireless_error_home'], ' |
', $txt['summary'], ' - ', $context['member']['name'], ' |
', $txt['name'], ': ', $context['member']['name'], ' |
', $txt['position'], ': ', (!empty($context['member']['group']) ? $context['member']['group'] : $context['member']['post_group']), ' |
', $txt['lastLoggedIn'], ': ', $context['member']['last_login'], ' |
', $txt['user_banned_by_following'], ':';
foreach ($context['member']['bans'] as $ban)
echo '
', $ban['explanation'], ''; echo ' |
', $txt['additional_info'], ' |
', $txt['wireless_profile_pm'], '. |
', $txt['profileBanUser'], '. |
', $txt['wireless_error_home'], '. |
', $context['forum_name_html_safe'], '
'; $count = 0; foreach ($context['categories'] as $category) { if (!empty($category['boards']) || $category['is_collapsed']) echo '', $category['can_collapse'] ? '' : '', $category['name'], $category['can_collapse'] ? '' : '', '
'; foreach ($category['boards'] as $board) { $count++; echo '', $board['new'] ? '' : '', $count < 10 ? '[' . $count . '' : '[-', $board['children_new'] && !$board['new'] ? '' : '', '] ', $board['new'] || $board['children_new'] ? '' : '', '', $board['name'], '
'; } } echo '', $txt['wireless_options'], '
'; if ($context['user']['is_guest']) echo '', $txt['wireless_options_login'], '
'; else { if ($context['allow_pm']) echo ' '; echo '', $txt['wireless_recent_unread_posts'], '
', $txt['wireless_recent_unread_replies'], '
', $txt['wireless_options_logout'], '
'; } } function template_wap2_messageindex() { global $context, $settings, $options, $scripturl, $txt; echo '', $context['name'], '
'; if (!empty($context['boards'])) { echo '', $txt['parent_boards'], '
'; foreach ($context['boards'] as $board) echo '', $board['new'] ? '[-] ' : ($board['children_new'] ? '[-] ' : '[-] '), '', $board['name'], '
'; } $count = 0; if (!empty($context['topics'])) { echo '', $txt['topics'], '
', !empty($context['links']['prev']) ? '<< < ' : '', '(', $context['page_info']['current_page'], '/', $context['page_info']['num_pages'], ')', !empty($context['links']['next']) ? ' > >> ' : '', '
'; foreach ($context['topics'] as $topic) { $count++; echo '', $count < 10 ? '[' . $count . '] ' : '', '', $topic['first_post']['subject'], '', (!$topic['approved'] ? ' (' . $txt['awaiting_approval'] . ')' : ''), $topic['new'] && $context['user']['is_logged'] ? ' [' . $txt['new'] . ']' : '', '
'; } } echo '', $txt['wireless_navigation'], '
[0] ', $txt['wireless_navigation_up'], '
', !empty($context['links']['next']) ? '[#] ' . $txt['wireless_navigation_next'] . '
' : '', !empty($context['links']['prev']) ? '[*] ' . $txt['wireless_navigation_prev'] . '
' : '', $context['can_post_new'] ? '' . $txt['start_new_topic'] . '
' : ''; } function template_wap2_display() { global $context, $settings, $options, $scripturl, $txt; echo '' . $context['linktree'][1]['name'] . ' > ' . $context['linktree'][count($context['linktree']) - 2]['name'] . '
', $context['subject'], '
', !empty($context['links']['prev']) ? '<< < ' : '', '(', $context['page_info']['current_page'], '/', $context['page_info']['num_pages'], ')', !empty($context['links']['next']) ? ' > >> ' : '', '
'; $alternate = true; while ($message = $context['get_message']()) { // This is a special modification to the post so it will work on phones: $message['body'] = preg_replace('~', '', '
',
'
',
'
', $context['wireless_moderate'] && $message['member']['id'] ? '' . $message['member']['name'] . '' : '' . $message['member']['name'] . '', ':
', ((empty($context['wireless_more']) && $message['can_modify']) || !empty($context['wireless_moderate']) ? '[' . $txt['wireless_display_edit'] . ']' : ''), (!$message['approved'] ? ' (' . $txt['awaiting_approval'] . ')' : ''), '
', $message['body'], '
', $txt['wireless_navigation'], '
[0] ', $txt['wireless_navigation_index'], '
', $context['user']['is_logged'] ? '[1] ' . $txt['mark_unread'] . '
' : '', !empty($context['links']['next']) ? '[#] ' . $txt['wireless_navigation_next'] . '
' : '', !empty($context['links']['prev']) ? '[*] ' . $txt['wireless_navigation_prev'] . '
' : '', $context['can_reply'] ? ' ' : ''; if (!empty($context['wireless_more']) && empty($context['wireless_moderate'])) echo '', $txt['wireless_display_moderate'], '
'; elseif (!empty($context['wireless_moderate'])) { if ($context['can_sticky']) echo '', $txt['wireless_display_' . ($context['is_sticky'] ? 'unsticky' : 'sticky')], '
'; if ($context['can_lock']) echo '', $txt['wireless_display_' . ($context['is_locked'] ? 'unlock' : 'lock')], '
'; } } function template_wap2_login() { global $context, $modSettings, $scripturl, $txt; echo ' '; } function template_wap2_post() { global $context, $settings, $options, $scripturl, $txt, $modSettings; echo ' '; } function template_wap2_pm() { global $context, $settings, $options, $scripturl, $txt, $user_info; if ($_REQUEST['action'] == 'findmember') { echo ' '; if (!empty($context['last_search'])) { echo '', $txt['find_results'], '
'; if (empty($context['results'])) echo '[-] ', $txt['find_no_results'], '
'; else { echo '', empty($context['links']['prev']) ? '' : '<< < ', '(', $context['page_info']['current_page'], '/', $context['page_info']['num_pages'], ')', empty($context['links']['next']) ? '' : ' > >> ', '
'; $count = 0; foreach ($context['results'] as $result) { $count++; echo '[', $count < 10 ? $count : '-', '] ', $result['name'], '
'; } } } echo '', $txt['wireless_navigation'], '
[0] ', $txt['wireless_navigation_up'], '
'; if (!empty($context['results'])) echo empty($context['links']['next']) ? '' : '[#] ' . $txt['wireless_navigation_next'] . '
', empty($context['links']['prev']) ? '' : '[*] ' . $txt['wireless_navigation_prev'] . '
'; } elseif (!empty($_GET['sa'])) { if ($_GET['sa'] == 'addbuddy') { echo '', $txt['wireless_pm_add_buddy'], '
', $txt['wireless_pm_select_buddy'], '
'; $count = 0; foreach ($context['buddies'] as $buddy) { $count++; if ($buddy['selected']) echo '[-] ', $buddy['name'], '
'; else echo '[', $count < 10 ? $count : '-', '] ', $buddy['name'], '
'; } echo '', $txt['wireless_navigation'], '
[0] ', $txt['wireless_navigation_up'], '
'; } if ($_GET['sa'] == 'send' || $_GET['sa'] == 'send2') { echo ' '; } } elseif (empty($_GET['pmsg'])) { echo '', $context['current_label_id'] == -1 ? $txt['wireless_pm_inbox'] : $txt['pm_current_label'] . ': ' . $context['current_label'], '
', empty($context['links']['prev']) ? '' : '<< < ', '(', $context['page_info']['current_page'], '/', $context['page_info']['num_pages'], ')', empty($context['links']['next']) ? '' : ' > >> ', '
'; $count = 0; while ($message = $context['get_pmessage']()) { $count++; echo '[', $count < 10 ? $count : '-', '] ', $message['subject'], ' ', $txt['wireless_pm_by'], ' ', $message['member']['name'], '', $message['is_unread'] ? ' [' . $txt['new'] . ']' : '', '
'; } if ($context['currently_using_labels']) { $labels = array(); ksort($context['labels']); foreach ($context['labels'] as $label) $labels[] = '' . $label['name'] . '' . (!empty($label['unread_messages']) ? ' (' . $label['unread_messages'] . ')' : ''); echo '', $txt['pm_labels'], '
', implode(', ', $labels), '
'; } echo '', $txt['wireless_navigation'], '
[0] ', $txt['wireless_navigation_up'], '
', empty($context['links']['next']) ? '' : '[#] ' . $txt['wireless_navigation_next'] . '
', empty($context['links']['prev']) ? '' : '[*] ' . $txt['wireless_navigation_prev'] . '
', $context['can_send_pm'] ? ' ' : ''; } else { $message = $context['get_pmessage'](); $message['body'] = preg_replace('~', '', '
',
'
',
'', $message['subject'], '
', $txt['wireless_pm_by'], ': ', $message['member']['name'], '
', $txt['on'], ': ', $message['time'], '
', $message['body'], '
', $txt['wireless_navigation'], '
[0] ', $txt['wireless_navigation_up'], '
'; if ($context['can_send_pm']) echo '', $txt['wireless_pm_reply'], '
'; if ($context['can_send_pm'] && $message['number_recipients'] > 1) echo '', $txt['wireless_pm_reply_all'], '
'; } } function template_wap2_recent() { global $context, $settings, $options, $scripturl, $txt; echo '', $_REQUEST['action'] == 'unread' ? $txt['wireless_recent_unread_posts'] : $txt['wireless_recent_unread_replies'], '
'; $count = 0; if (empty($context['topics'])) echo '', $txt['old_posts'], '
'; else { echo '', !empty($context['links']['prev']) ? '<< < ' : '', '(', $context['page_info']['current_page'], '/', $context['page_info']['num_pages'], ')', !empty($context['links']['next']) ? ' > >> ' : '', '
'; foreach ($context['topics'] as $topic) { $count++; echo '', ($count < 10 ? '[' . $count . '] ' : ''), '', $topic['first_post']['subject'], '
'; } } echo '', $txt['wireless_navigation'], '
[0] ', $txt['wireless_navigation_up'], '
', !empty($context['links']['next']) ? '[#] ' . $txt['wireless_navigation_next'] . '
' : '', !empty($context['links']['prev']) ? '[*] ' . $txt['wireless_navigation_prev'] . '
' : ''; } function template_wap2_error() { global $context, $settings, $options, $txt, $scripturl; echo '', $context['error_title'], '
', $context['error_message'], '
[0] ', $txt['wireless_error_home'], '
'; } function template_wap2_profile() { global $context, $settings, $options, $scripturl, $board, $txt; echo '', $txt['summary'], ' - ', $context['member']['name'], '
', $txt['name'], ': ', $context['member']['name'], '
', $txt['position'], ': ', (!empty($context['member']['group']) ? $context['member']['group'] : $context['member']['post_group']), '
', $txt['lastLoggedIn'], ': ', $context['member']['last_login'], '
'; if (!empty($context['member']['bans'])) { echo '', $txt['user_banned_by_following'], ':
'; foreach ($context['member']['bans'] as $ban) echo '', $ban['explanation'], '
'; } echo '', $txt['additional_info'], '
'; if (!$context['user']['is_owner'] && $context['can_send_pm']) echo '', $txt['wireless_profile_pm'], '.
'; if (!$context['user']['is_owner'] && !empty($context['can_edit_ban'])) echo ' '; echo '', $txt['wireless_error_home'], '.
'; } function template_wap2_ban_edit() { global $context, $settings, $options, $scripturl, $board, $txt, $modSettings; echo ' '; } function template_wap2_below() { global $context, $settings, $options, $txt; echo ' ', $txt['wireless_go_to_full_version'], ' '; } ?>