모바일 언어설정 모드 추가

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6366 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
misol 2009-05-23 08:43:32 +00:00
parent db8733fd18
commit 9296c680ac
7 changed files with 114 additions and 14 deletions

View file

@ -1,7 +1,7 @@
<?php
/**
* WML Library ver 0.1
* @author zero <zero@zeroboard.com>
* @author zero <zero@zeroboard.com> / lang_select : misol
**/
class wap extends mobileXE {
@ -29,7 +29,6 @@
**/
function printTitle() {
if($this->totalPage > $this->mobilePage) $titlePageStr = sprintf("(%d/%d)",$this->mobilePage, $this->totalPage);
$this->title = str_replace(array('$','\'','_'), array('$$','&apos;','&shy;'), $this->title);
printf('&lt;%s%s&gt;<br/>%s', htmlspecialchars($this->title),htmlspecialchars($titlePageStr),"\n");
}
@ -68,6 +67,10 @@
$url = $this->upperUrl;
printf('<do type="vnd.up" label="%s"><go href="%s"/></do>%s', $url->text, $url->url, "\n");
}
else {
$url = getUrl('','lcm','1','sel_lang',Context::getLangType());
printf('<do type="vnd.up" label="%s"><go href="%s"/></do>%s', 'Language : '.Context::getLang('select_lang'), $url, "\n");
}
}
// 푸터 정보를 출력