r93587 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r93586‎ | r93587 | r93588 >
Date:13:06, 31 July 2011
Author:hartman
Status:ok
Tags:
Comment:
Add Home and Random softkey links for WML.
Modified paths:
  • /trunk/extensions/MobileFrontend/views/layout/application.wml.php (modified) (history)

Diff [purge]

Index: trunk/extensions/MobileFrontend/views/layout/application.wml.php
@@ -1,4 +1,7 @@
22 <?php
 3+$mainPageUrl = self::$mainPageUrl;
 4+$randomPageUrl = self::$randomPageUrl;
 5+
36 $applicationHtml = <<<EOT
47 <?xml version='1.0' encoding='utf-8' ?>
58 <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
@@ -9,6 +12,14 @@
1013 <meta name="character-set=utf-8" content="charset"/>
1114 <meta forua="true" http-equiv="Cache-Control" content="max-age=0"/>
1215 </head>
 16+ <template>
 17+ <do name="home" type="options" label="{$homeButton}" >
 18+ <go href="{$mainPageUrl}"/>
 19+ </do>
 20+ <do name="random" type="options" label="{$randomButton}">
 21+ <go href="{$randomPageUrl}"/>
 22+ </do>
 23+ </template>
1324 {$contentHtml}
1425 </wml>
1526 EOT;

Status & tagging log