|
@@ -13,8 +13,6 @@
|
|
|
// This is the header for WAP 1.1 output. You can view it with ?wap in the URL.
|
|
|
function template_wap_above()
|
|
|
{
|
|
|
- global $context, $settings, $options;
|
|
|
-
|
|
|
// Show the xml declaration...
|
|
|
echo '<?xml version="1.0"?', '>
|
|
|
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
|
|
@@ -26,7 +24,7 @@ function template_wap_above()
|
|
|
// This is the board index (main page) in WAP 1.1.
|
|
|
function template_wap_boardindex()
|
|
|
{
|
|
|
- global $context, $settings, $options, $scripturl;
|
|
|
+ global $context, $options, $scripturl;
|
|
|
|
|
|
// This is the "main" card...
|
|
|
echo '
|
|
@@ -67,7 +65,7 @@ function template_wap_boardindex()
|
|
|
// This is the message index (list of topics in a board) for WAP 1.1.
|
|
|
function template_wap_messageindex()
|
|
|
{
|
|
|
- global $context, $settings, $options, $scripturl, $txt;
|
|
|
+ global $context, $options, $scripturl, $txt;
|
|
|
|
|
|
echo '
|
|
|
<card id="main" title="', $context['page_title'], '">
|
|
@@ -101,7 +99,7 @@ function template_wap_messageindex()
|
|
|
|
|
|
function template_wap_display()
|
|
|
{
|
|
|
- global $context, $settings, $options, $txt;
|
|
|
+ global $context, $options, $txt;
|
|
|
|
|
|
echo '
|
|
|
<card id="main" title="', $context['page_title'], '">
|
|
@@ -181,7 +179,7 @@ function template_wap_login()
|
|
|
|
|
|
function template_wap_recent()
|
|
|
{
|
|
|
- global $context, $settings, $options, $scripturl, $txt;
|
|
|
+ global $context, $options, $scripturl, $txt;
|
|
|
|
|
|
echo '
|
|
|
<card id="recent" title="', $context['page_title'], '">
|
|
@@ -207,7 +205,7 @@ function template_wap_recent()
|
|
|
|
|
|
function template_wap_error()
|
|
|
{
|
|
|
- global $context, $settings, $options, $txt, $scripturl;
|
|
|
+ global $context, $options, $txt, $scripturl;
|
|
|
|
|
|
echo '
|
|
|
<card id="main" title="', $context['page_title'], '">
|
|
@@ -219,7 +217,7 @@ function template_wap_error()
|
|
|
|
|
|
function template_wap_below()
|
|
|
{
|
|
|
- global $context, $settings, $options, $txt;
|
|
|
+ global $context, $options, $txt;
|
|
|
|
|
|
echo '
|
|
|
<card id="switch" title="', $txt['wireless_go_to_full_version'], '">
|
|
@@ -233,7 +231,7 @@ function template_wap_below()
|
|
|
// The cHTML protocol used for i-mode starts here.
|
|
|
function template_imode_above()
|
|
|
{
|
|
|
- global $context, $settings, $options, $user_info;
|
|
|
+ global $context, $options, $user_info;
|
|
|
|
|
|
echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD Compact HTML 1.0 Draft//EN">
|
|
|
<html', $context['right_to_left'] ? ' dir="rtl"' : '', '>
|
|
@@ -253,7 +251,7 @@ function template_imode_above()
|
|
|
|
|
|
function template_imode_boardindex()
|
|
|
{
|
|
|
- global $context, $settings, $options, $scripturl, $txt;
|
|
|
+ global $context, $options, $scripturl, $txt;
|
|
|
|
|
|
echo '
|
|
|
<table border="0" cellspacing="0" cellpadding="0">
|
|
@@ -293,7 +291,7 @@ function template_imode_boardindex()
|
|
|
|
|
|
function template_imode_messageindex()
|
|
|
{
|
|
|
- global $context, $settings, $options, $scripturl, $txt;
|
|
|
+ global $context, $options, $scripturl, $txt;
|
|
|
|
|
|
echo '
|
|
|
<table border="0" cellspacing="0" cellpadding="0">
|
|
@@ -332,7 +330,7 @@ function template_imode_messageindex()
|
|
|
|
|
|
function template_imode_display()
|
|
|
{
|
|
|
- global $context, $settings, $options, $scripturl, $board, $txt;
|
|
|
+ global $context, $options, $scripturl, $board, $txt;
|
|
|
|
|
|
echo '
|
|
|
<table border="0" cellspacing="0" cellpadding="0">
|
|
@@ -396,7 +394,7 @@ function template_imode_display()
|
|
|
|
|
|
function template_imode_post()
|
|
|
{
|
|
|
- global $context, $settings, $options, $scripturl, $txt, $modSettings;
|
|
|
+ global $context, $options, $scripturl, $txt, $modSettings;
|
|
|
|
|
|
// @todo $modSettings['guest_post_no_email']
|
|
|
echo '
|
|
@@ -452,7 +450,7 @@ function template_imode_post()
|
|
|
|
|
|
function template_imode_login()
|
|
|
{
|
|
|
- global $context, $settings, $options, $scripturl, $txt, $modSettings;
|
|
|
+ global $context, $options, $scripturl, $txt, $modSettings;
|
|
|
|
|
|
echo '
|
|
|
<form action="', $scripturl, '?action=login2;imode" method="post">
|
|
@@ -485,7 +483,7 @@ function template_imode_login()
|
|
|
|
|
|
function template_imode_pm()
|
|
|
{
|
|
|
- global $context, $settings, $options, $scripturl, $txt, $user_info;
|
|
|
+ global $context, $options, $scripturl, $txt, $user_info;
|
|
|
|
|
|
if ($_REQUEST['action'] == 'findmember')
|
|
|
{
|
|
@@ -701,7 +699,7 @@ function template_imode_pm()
|
|
|
|
|
|
function template_imode_recent()
|
|
|
{
|
|
|
- global $context, $settings, $options, $scripturl, $txt;
|
|
|
+ global $context, $options, $scripturl, $txt;
|
|
|
|
|
|
echo '
|
|
|
<table border="0" cellspacing="0" cellpadding="0">
|
|
@@ -732,7 +730,7 @@ function template_imode_recent()
|
|
|
|
|
|
function template_imode_error()
|
|
|
{
|
|
|
- global $context, $settings, $options, $txt, $scripturl;
|
|
|
+ global $context, $options, $txt, $scripturl;
|
|
|
|
|
|
echo '
|
|
|
<table border="0" cellspacing="0" cellpadding="0">
|
|
@@ -744,7 +742,7 @@ function template_imode_error()
|
|
|
|
|
|
function template_imode_profile()
|
|
|
{
|
|
|
- global $context, $settings, $options, $scripturl, $board, $txt;
|
|
|
+ global $context, $options, $scripturl, $board, $txt;
|
|
|
|
|
|
echo '
|
|
|
<table border="0" cellspacing="0" cellpadding="0">
|
|
@@ -794,7 +792,7 @@ function template_imode_profile()
|
|
|
|
|
|
function template_imode_ban_edit()
|
|
|
{
|
|
|
- global $context, $settings, $options, $scripturl, $board, $txt, $modSettings;
|
|
|
+ global $context, $options, $scripturl, $board, $txt, $modSettings;
|
|
|
|
|
|
echo '
|
|
|
<form action="', $scripturl, '?action=admin;area=ban;sa=add;imode" method="post">
|
|
@@ -877,7 +875,7 @@ function template_imode_ban_edit()
|
|
|
|
|
|
function template_imode_below()
|
|
|
{
|
|
|
- global $context, $settings, $options, $txt;
|
|
|
+ global $context, $options, $txt;
|
|
|
|
|
|
echo '
|
|
|
<br /><a href="', $context['linktree'][count($context['linktree']) - 1]['url'], (count($context['linktree']) > 1 ? ';' : '?'), 'nowap" rel="nofollow">', $txt['wireless_go_to_full_version'], '</a>
|
|
@@ -909,7 +907,7 @@ function template_wap2_above()
|
|
|
|
|
|
function template_wap2_boardindex()
|
|
|
{
|
|
|
- global $context, $settings, $options, $scripturl, $txt;
|
|
|
+ global $context, $options, $scripturl, $txt;
|
|
|
|
|
|
echo '
|
|
|
<p class="catbg">', $context['forum_name_html_safe'], '</p>';
|
|
@@ -948,7 +946,7 @@ function template_wap2_boardindex()
|
|
|
|
|
|
function template_wap2_messageindex()
|
|
|
{
|
|
|
- global $context, $settings, $options, $scripturl, $txt;
|
|
|
+ global $context, $options, $scripturl, $txt;
|
|
|
|
|
|
echo '
|
|
|
<p class="catbg">', $context['name'], '</p>';
|
|
@@ -986,7 +984,7 @@ function template_wap2_messageindex()
|
|
|
|
|
|
function template_wap2_display()
|
|
|
{
|
|
|
- global $context, $settings, $options, $scripturl, $txt;
|
|
|
+ global $context, $options, $scripturl, $txt;
|
|
|
|
|
|
echo '
|
|
|
<p class="titlebg">' . $context['linktree'][1]['name'] . ' > ' . $context['linktree'][count($context['linktree']) - 2]['name'] . '</p>
|
|
@@ -1081,7 +1079,7 @@ function template_wap2_login()
|
|
|
|
|
|
function template_wap2_post()
|
|
|
{
|
|
|
- global $context, $settings, $options, $scripturl, $txt, $modSettings;
|
|
|
+ global $context, $options, $scripturl, $txt, $modSettings;
|
|
|
|
|
|
echo '
|
|
|
<form action="', $scripturl, '?action=', $context['destination'], ';board=', $context['current_board'], '.0;wap2" method="post">
|
|
@@ -1143,7 +1141,7 @@ function template_wap2_post()
|
|
|
|
|
|
function template_wap2_pm()
|
|
|
{
|
|
|
- global $context, $settings, $options, $scripturl, $txt, $user_info;
|
|
|
+ global $context, $options, $scripturl, $txt, $user_info;
|
|
|
|
|
|
if ($_REQUEST['action'] == 'findmember')
|
|
|
{
|
|
@@ -1349,7 +1347,7 @@ function template_wap2_pm()
|
|
|
|
|
|
function template_wap2_recent()
|
|
|
{
|
|
|
- global $context, $settings, $options, $scripturl, $txt;
|
|
|
+ global $context, $options, $scripturl, $txt;
|
|
|
|
|
|
echo '
|
|
|
<p class="catbg">', $_REQUEST['action'] == 'unread' ? $txt['wireless_recent_unread_posts'] : $txt['wireless_recent_unread_replies'], '</p>';
|
|
@@ -1378,7 +1376,7 @@ function template_wap2_recent()
|
|
|
|
|
|
function template_wap2_error()
|
|
|
{
|
|
|
- global $context, $settings, $options, $txt, $scripturl;
|
|
|
+ global $context, $options, $txt, $scripturl;
|
|
|
|
|
|
echo '
|
|
|
<p class="catbg">', $context['error_title'], '</p>
|
|
@@ -1388,7 +1386,7 @@ function template_wap2_error()
|
|
|
|
|
|
function template_wap2_profile()
|
|
|
{
|
|
|
- global $context, $settings, $options, $scripturl, $board, $txt;
|
|
|
+ global $context, $options, $scripturl, $board, $txt;
|
|
|
|
|
|
echo '
|
|
|
<p class="catbg">', $txt['summary'], ' - ', $context['member']['name'], '</p>
|
|
@@ -1426,7 +1424,7 @@ function template_wap2_profile()
|
|
|
|
|
|
function template_wap2_ban_edit()
|
|
|
{
|
|
|
- global $context, $settings, $options, $scripturl, $board, $txt, $modSettings;
|
|
|
+ global $context, $options, $scripturl, $board, $txt, $modSettings;
|
|
|
|
|
|
echo '
|
|
|
<form action="', $scripturl, '?action=admin;area=ban;sa=add;wap2" method="post">
|
|
@@ -1508,7 +1506,7 @@ function template_wap2_ban_edit()
|
|
|
|
|
|
function template_wap2_below()
|
|
|
{
|
|
|
- global $context, $settings, $options, $txt;
|
|
|
+ global $context, $txt;
|
|
|
|
|
|
echo '
|
|
|
<a href="', $context['linktree'][count($context['linktree']) - 1]['url'], (count($context['linktree']) > 1 ? ';' : '?'), 'nowap" rel="nofollow">', $txt['wireless_go_to_full_version'], '</a>
|