모바일 언어설정 모드 추가

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
/**
* mhtml Library ver 0.1
* @author zero <zero@zeroboard.com>
* @author zero <zero@zeroboard.com> / lang_select : misol
**/
class wap extends mobileXE {
@ -24,7 +24,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");
}
@ -59,6 +58,10 @@
$url = $this->upperUrl;
printf('<btn href="%s" name="%s">%s', $url->url, $url->text, "\n");
}
else {
$url = getUrl('','lcm','1','sel_lang',Context::getLangType());
printf('<btn name="%s" href="%s">%s', 'Language : '.Context::getLang('select_lang'), $url, "\n");
}
if($this->homeUrl) {
$url = $this->homeUrl;
printf('<a btn="%s" href="%s">%s</a>%s', $url->text, $url->url, $url->text, "\n");