mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-02-01 17:49:58 +09:00
#18820891 : add android for smartphone
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7391 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
7cbc63875f
commit
d02f39171b
1 changed files with 2 additions and 2 deletions
|
|
@ -16,7 +16,7 @@
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return Context::get('smartphone') || preg_match('/(iPod|iPhone|SCH\-M[0-9]+)/',$_SERVER['HTTP_USER_AGENT']);
|
return Context::get('smartphone') || preg_match('/(iPod|iPhone|Android|SCH\-M[0-9]+)/',$_SERVER['HTTP_USER_AGENT']);
|
||||||
}
|
}
|
||||||
|
|
||||||
function haveSmartphoneModule($module) {
|
function haveSmartphoneModule($module) {
|
||||||
|
|
@ -80,7 +80,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function procSmartPhone($msg = null) {
|
function procSmartPhone($msg = null) {
|
||||||
if(preg_match('/(iPod|iPhone)/',$_SERVER['HTTP_USER_AGENT'])) {
|
if(preg_match('/(iPod|iPhone|Android)/',$_SERVER['HTTP_USER_AGENT'])) {
|
||||||
Context::addHtmlHeader('<meta name="viewport" content="width=320; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;"/>');
|
Context::addHtmlHeader('<meta name="viewport" content="width=320; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;"/>');
|
||||||
} else if(preg_match('/SCH\-M[0-9]+/',$_SERVER['HTTP_USER_AGENT'])) {
|
} else if(preg_match('/SCH\-M[0-9]+/',$_SERVER['HTTP_USER_AGENT'])) {
|
||||||
Context::addHtmlHeader('<meta name="viewport" content="width=240; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;"/>');
|
Context::addHtmlHeader('<meta name="viewport" content="width=240; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;"/>');
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue