Zitat von
Juletomate
Aber eigentlich wollte ich wissen, ob ein i-pad oder anderes Tablet auch immer automatisch als Mobiles Gerät eingestuft wird? Also dann das mobile Layout erscheint?! Ich möchte nämlich eigentlich erreichen, das nur bei wirklich kleinen Ansichten, also Handys dieses angezeigt wird.
Für dich frisch aus dem Quellcode von Contao gefischt:
PHP-Code:
'Macintosh' => array('os'=>'mac', 'mobile'=>false),
'Windows CE' => array('os'=>'win-ce', 'mobile'=>true),
'Windows Phone' => array('os'=>'win-ce', 'mobile'=>true),
'Windows' => array('os'=>'win', 'mobile'=>false),
'iPad' => array('os'=>'ios', 'mobile'=>false),
'iPhone' => array('os'=>'ios', 'mobile'=>true),
'iPod' => array('os'=>'ios', 'mobile'=>true),
'Android' => array('os'=>'android', 'mobile'=>true),
'Blackberry' => array('os'=>'blackberry', 'mobile'=>true),
'Symbian' => array('os'=>'symbian', 'mobile'=>true),
'WebOS' => array('os'=>'webos', 'mobile'=>true),
'Linux' => array('os'=>'unix', 'mobile'=>false),
'FreeBSD' => array('os'=>'unix', 'mobile'=>false),
'OpenBSD' => array('os'=>'unix', 'mobile'=>false),
'NetBSD' => array('os'=>'unix', 'mobile'=>false),
Alles wo 'mobile' => true steht wird als mobiles Gerät gewertet. Das iPad demnach nicht. =)
Lesezeichen