1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-06-05 22:09:38 +02:00

per i mobile, i widget su controller_top vanno sotto

This commit is contained in:
Luca
2017-11-14 17:42:09 +01:00
parent 65afd85d08
commit 531de41002
3 changed files with 34 additions and 4 deletions

View File

@@ -869,3 +869,12 @@ function getConfig()
return get_defined_vars();
}
/**
* Restituisce se l'user-agent (browser web) è una versione mobile
*
* @return bool
*/
function isMobile() {
return preg_match("/(android|avantgo|blackberry|bolt|boost|cricket|docomo|fone|hiptop|mini|mobi|palm|phone|pie|tablet|up\.browser|up\.link|webos|wos)/i", $_SERVER["HTTP_USER_AGENT"]);
}