/** * Returns the height of the browser in the following order: (1) from a * cookie set by mwf.browser, (2) from the height that WURFL knows of the * device, or (3) the default height. * * @return int */ public static function height() { if (self::has_cookie()) { return $_COOKIE[Config::get('global', 'cookie_prefix') . 'bh']; } else { if (($resolution_height = User_Agent::get_capability('resolution_height')) >= 120) { return (int) $resolution_height; } } return self::$_default_height; }