do NOT use jerryr as mobile template

This commit is contained in:
Ralf Becker 2012-07-24 06:19:16 +00:00
parent fa69637b82
commit ec34cbb070

View File

@ -31,6 +31,30 @@ class jerryr_framework extends idots_framework
parent::__construct($template); parent::__construct($template);
} }
/**
* Check if current user agent is supported
*
* Currently we do NOT support:
* - iPhone, iPad, Android, SymbianOS due to iframe scrolling problems of Webkit
*
* @return boolean
*/
public static function is_supported_user_agent()
{
if (html::$ua_mobile)
{
return false;
}
return true;
}
/**
* Display the string with html of the topmenu if its enabled
*
* @param array $vars
* @param array $apps
* @return string
*/
function topmenu(array $vars,array $apps) function topmenu(array $vars,array $apps)
{ {
$this->tplsav2->menuitems = array(); $this->tplsav2->menuitems = array();