Revision e6eb0fcb
Added by Jim Pingle almost 14 years ago
usr/local/www/head.inc | ||
---|---|---|
18 | 18 |
* If this device is an apple ipod/iphone |
19 | 19 |
* switch the theme to one that works with it. |
20 | 20 |
*/ |
21 |
$lowres_ua = array("iPhone","iPod", "iPad", "Android");
|
|
21 |
$lowres_ua = array("iPhone", "iPod", "iPad", "Android", "BlackBerry", "Opera Mini", "Opera Mobi");
|
|
22 | 22 |
foreach($lowres_ua as $useragent) |
23 | 23 |
if(strstr($_SERVER['HTTP_USER_AGENT'], $useragent)) |
24 | 24 |
$g['theme'] = empty($g['theme_lowres']) ? "pfsense" : $g['theme_lowres']; |
Also available in: Unified diff
Add a couple more mobile browser detection strings (BlackBerry, Opera Mini/Mobi)