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:
@@ -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"]);
|
||||
}
|
||||
|
Reference in New Issue
Block a user