mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-25 14:19:58 +09:00
smartphone 애드온을 아이폰/옴니아에 맞게 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6290 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
1da5dfaeb3
commit
59084f558a
4 changed files with 59 additions and 61 deletions
|
|
@ -19,6 +19,7 @@
|
|||
}
|
||||
|
||||
function smartphoneXE($oModule, $module_info, $output) {
|
||||
|
||||
$this->oModule = $oModule;
|
||||
$this->module_info = $module_info;
|
||||
|
||||
|
|
@ -74,6 +75,12 @@
|
|||
}
|
||||
|
||||
function procSmartPhone() {
|
||||
if(preg_match('/(iPopd|iPhone)/',$_SERVER['HTTP_USER_AGENT'])) {
|
||||
Context::addHtmlHeader('<meta name="viewport" content="width=320; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;"/>');
|
||||
} else if(preg_match('/PPC/',$_SERVER['HTTP_USER_AGENT'])) {
|
||||
Context::addHtmlHeader('<meta name="viewport" content="width=240; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;"/>');
|
||||
}
|
||||
|
||||
if(is_a($this->output, 'Object') || is_subclass_of($this->output, 'Object')) {
|
||||
$this->setContent($this->output->getMessage());
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue