|
@@ -24,7 +24,7 @@ function template_wap_above()
|
|
|
// This is the board index (main page) in WAP 1.1.
|
|
|
function template_wap_boardindex()
|
|
|
{
|
|
|
- global $context, $options, $scripturl;
|
|
|
+ global $context, $scripturl;
|
|
|
|
|
|
// This is the "main" card...
|
|
|
echo '
|
|
@@ -65,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, $options, $scripturl, $txt;
|
|
|
+ global $context, $scripturl, $txt;
|
|
|
|
|
|
echo '
|
|
|
<card id="main" title="', $context['page_title'], '">
|
|
@@ -99,7 +99,7 @@ function template_wap_messageindex()
|
|
|
|
|
|
function template_wap_display()
|
|
|
{
|
|
|
- global $context, $options, $txt;
|
|
|
+ global $context, $txt;
|
|
|
|
|
|
echo '
|
|
|
<card id="main" title="', $context['page_title'], '">
|
|
@@ -179,7 +179,7 @@ function template_wap_login()
|
|
|
|
|
|
function template_wap_recent()
|
|
|
{
|
|
|
- global $context, $options, $scripturl, $txt;
|
|
|
+ global $context, $scripturl, $txt;
|
|
|
|
|
|
echo '
|
|
|
<card id="recent" title="', $context['page_title'], '">
|
|
@@ -205,7 +205,7 @@ function template_wap_recent()
|
|
|
|
|
|
function template_wap_error()
|
|
|
{
|
|
|
- global $context, $options, $txt, $scripturl;
|
|
|
+ global $context, $txt, $scripturl;
|
|
|
|
|
|
echo '
|
|
|
<card id="main" title="', $context['page_title'], '">
|
|
@@ -217,7 +217,7 @@ function template_wap_error()
|
|
|
|
|
|
function template_wap_below()
|
|
|
{
|
|
|
- global $context, $options, $txt;
|
|
|
+ global $context, $txt;
|
|
|
|
|
|
echo '
|
|
|
<card id="switch" title="', $txt['wireless_go_to_full_version'], '">
|
|
@@ -231,7 +231,7 @@ function template_wap_below()
|
|
|
// The cHTML protocol used for i-mode starts here.
|
|
|
function template_imode_above()
|
|
|
{
|
|
|
- global $context, $options, $user_info;
|
|
|
+ global $context, $user_info;
|
|
|
|
|
|
echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD Compact HTML 1.0 Draft//EN">
|
|
|
<html', $context['right_to_left'] ? ' dir="rtl"' : '', '>
|
|
@@ -251,7 +251,7 @@ function template_imode_above()
|
|
|
|
|
|
function template_imode_boardindex()
|
|
|
{
|
|
|
- global $context, $options, $scripturl, $txt;
|
|
|
+ global $context, $scripturl, $txt;
|
|
|
|
|
|
echo '
|
|
|
<table border="0" cellspacing="0" cellpadding="0">
|
|
@@ -294,7 +294,7 @@ function template_imode_boardindex()
|
|
|
|
|
|
function template_imode_messageindex()
|
|
|
{
|
|
|
- global $context, $options, $scripturl, $txt;
|
|
|
+ global $context, $scripturl, $txt;
|
|
|
|
|
|
echo '
|
|
|
<table border="0" cellspacing="0" cellpadding="0">
|
|
@@ -333,7 +333,7 @@ function template_imode_messageindex()
|
|
|
|
|
|
function template_imode_display()
|
|
|
{
|
|
|
- global $context, $options, $scripturl, $board, $txt;
|
|
|
+ global $context, $scripturl, $board, $txt;
|
|
|
|
|
|
echo '
|
|
|
<table border="0" cellspacing="0" cellpadding="0">
|
|
@@ -453,7 +453,7 @@ function template_imode_post()
|
|
|
|
|
|
function template_imode_login()
|
|
|
{
|
|
|
- global $context, $options, $scripturl, $txt, $modSettings;
|
|
|
+ global $context, $scripturl, $txt, $modSettings;
|
|
|
|
|
|
echo '
|
|
|
<form action="', $scripturl, '?action=login2;imode" method="post">
|
|
@@ -486,7 +486,7 @@ function template_imode_login()
|
|
|
|
|
|
function template_imode_pm()
|
|
|
{
|
|
|
- global $context, $options, $scripturl, $txt, $user_info;
|
|
|
+ global $context, $scripturl, $txt, $user_info;
|
|
|
|
|
|
if ($_REQUEST['action'] == 'findmember')
|
|
|
{
|
|
@@ -702,7 +702,7 @@ function template_imode_pm()
|
|
|
|
|
|
function template_imode_recent()
|
|
|
{
|
|
|
- global $context, $options, $scripturl, $txt;
|
|
|
+ global $context, $scripturl, $txt;
|
|
|
|
|
|
echo '
|
|
|
<table border="0" cellspacing="0" cellpadding="0">
|
|
@@ -733,7 +733,7 @@ function template_imode_recent()
|
|
|
|
|
|
function template_imode_error()
|
|
|
{
|
|
|
- global $context, $options, $txt, $scripturl;
|
|
|
+ global $context, $txt, $scripturl;
|
|
|
|
|
|
echo '
|
|
|
<table border="0" cellspacing="0" cellpadding="0">
|
|
@@ -745,7 +745,7 @@ function template_imode_error()
|
|
|
|
|
|
function template_imode_profile()
|
|
|
{
|
|
|
- global $context, $options, $scripturl, $board, $txt;
|
|
|
+ global $context, $scripturl, $board, $txt;
|
|
|
|
|
|
echo '
|
|
|
<table border="0" cellspacing="0" cellpadding="0">
|
|
@@ -795,7 +795,7 @@ function template_imode_profile()
|
|
|
|
|
|
function template_imode_ban_edit()
|
|
|
{
|
|
|
- global $context, $options, $scripturl, $board, $txt, $modSettings;
|
|
|
+ global $context, $scripturl, $board, $txt, $modSettings;
|
|
|
|
|
|
echo '
|
|
|
<form action="', $scripturl, '?action=admin;area=ban;sa=add;imode" method="post">
|
|
@@ -878,7 +878,7 @@ function template_imode_ban_edit()
|
|
|
|
|
|
function template_imode_below()
|
|
|
{
|
|
|
- global $context, $options, $txt;
|
|
|
+ global $context, $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>
|
|
@@ -889,7 +889,7 @@ function template_imode_below()
|
|
|
// XHTMLMP (XHTML Mobile Profile) templates used for WAP 2.0 start here
|
|
|
function template_wap2_above()
|
|
|
{
|
|
|
- global $context, $settings, $options, $user_info;
|
|
|
+ global $context, $settings, $user_info;
|
|
|
|
|
|
echo '<?xml version="1.0" encoding="', $context['character_set'], '"?', '>
|
|
|
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
|
|
@@ -910,7 +910,7 @@ function template_wap2_above()
|
|
|
|
|
|
function template_wap2_boardindex()
|
|
|
{
|
|
|
- global $context, $options, $scripturl, $txt;
|
|
|
+ global $context, $scripturl, $txt;
|
|
|
|
|
|
echo '
|
|
|
<p class="catbg">', $context['forum_name_html_safe'], '</p>';
|
|
@@ -951,7 +951,7 @@ function template_wap2_boardindex()
|
|
|
|
|
|
function template_wap2_messageindex()
|
|
|
{
|
|
|
- global $context, $options, $scripturl, $txt;
|
|
|
+ global $context, $scripturl, $txt;
|
|
|
|
|
|
echo '
|
|
|
<p class="catbg">', $context['name'], '</p>';
|
|
@@ -989,7 +989,7 @@ function template_wap2_messageindex()
|
|
|
|
|
|
function template_wap2_display()
|
|
|
{
|
|
|
- global $context, $options, $scripturl, $txt;
|
|
|
+ global $context, $scripturl, $txt;
|
|
|
|
|
|
echo '
|
|
|
<p class="titlebg">' . $context['linktree'][1]['name'] . ' > ' . $context['linktree'][count($context['linktree']) - 2]['name'] . '</p>
|
|
@@ -1146,7 +1146,7 @@ function template_wap2_post()
|
|
|
|
|
|
function template_wap2_pm()
|
|
|
{
|
|
|
- global $context, $options, $scripturl, $txt, $user_info;
|
|
|
+ global $context, $scripturl, $txt, $user_info;
|
|
|
|
|
|
if ($_REQUEST['action'] == 'findmember')
|
|
|
{
|
|
@@ -1352,7 +1352,7 @@ function template_wap2_pm()
|
|
|
|
|
|
function template_wap2_recent()
|
|
|
{
|
|
|
- global $context, $options, $scripturl, $txt;
|
|
|
+ global $context, $scripturl, $txt;
|
|
|
|
|
|
echo '
|
|
|
<p class="catbg">', $_REQUEST['action'] == 'unread' ? $txt['wireless_recent_unread_posts'] : $txt['wireless_recent_unread_replies'], '</p>';
|
|
@@ -1381,7 +1381,7 @@ function template_wap2_recent()
|
|
|
|
|
|
function template_wap2_error()
|
|
|
{
|
|
|
- global $context, $options, $txt, $scripturl;
|
|
|
+ global $context, $txt, $scripturl;
|
|
|
|
|
|
echo '
|
|
|
<p class="catbg">', $context['error_title'], '</p>
|
|
@@ -1391,7 +1391,7 @@ function template_wap2_error()
|
|
|
|
|
|
function template_wap2_profile()
|
|
|
{
|
|
|
- global $context, $options, $scripturl, $board, $txt;
|
|
|
+ global $context, $scripturl, $board, $txt;
|
|
|
|
|
|
echo '
|
|
|
<p class="catbg">', $txt['summary'], ' - ', $context['member']['name'], '</p>
|
|
@@ -1429,7 +1429,7 @@ function template_wap2_profile()
|
|
|
|
|
|
function template_wap2_ban_edit()
|
|
|
{
|
|
|
- global $context, $options, $scripturl, $board, $txt, $modSettings;
|
|
|
+ global $context, $scripturl, $board, $txt, $modSettings;
|
|
|
|
|
|
echo '
|
|
|
<form action="', $scripturl, '?action=admin;area=ban;sa=add;wap2" method="post">
|