mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 08:23:12 +01:00
* telling IE via X-UA-Compatible IE=edge never to use compatibility modes with old versions (if set eg. via group policy for whole intranet zone)
This commit is contained in:
parent
d97cdbe991
commit
de818e86e3
@ -222,20 +222,23 @@ abstract class egw_framework
|
||||
{
|
||||
$lang_code = $GLOBALS['egw_info']['user']['preferences']['common']['lang'];
|
||||
}
|
||||
//pngfix defaults to yes
|
||||
if(!$GLOBALS['egw_info']['user']['preferences']['common']['disable_pngfix'])
|
||||
// IE specific fixes
|
||||
if (html::$user_agent == 'msie')
|
||||
{
|
||||
$pngfix_src = $GLOBALS['egw_info']['server']['webserver_url'] . '/phpgwapi/templates/idots/js/pngfix.js';
|
||||
$pngfix ='<!-- This solves the Internet Explorer PNG-transparency bug, but only for IE 5.5 - 6.0 and higher -->
|
||||
<!--[if lt IE 7.0]>
|
||||
<script src="'.$pngfix_src.'" type="text/javascript">
|
||||
</script>
|
||||
<![endif]-->';
|
||||
}
|
||||
// tell IE > 7 to use it's own mode, not old compatibility mode eg. IE=7 for IE8
|
||||
if (html::$user_agent == 'msie' && html::$ua_version > 7)
|
||||
{
|
||||
$pngfix .= "\n\t\t".'<meta http-equiv="X-UA-Compatible" content="IE='.(int)html::$ua_version.'" />';
|
||||
// tell IE to use it's own mode, not old compatibility modes (set eg. via group policy for all intranet sites)
|
||||
// has to be before any other header tags, but meta and title!!!
|
||||
$pngfix = '<meta http-equiv="X-UA-Compatible" content="IE=edge" />'."\n";
|
||||
|
||||
// pngfix for IE6 defaults to yes
|
||||
if(!$GLOBALS['egw_info']['user']['preferences']['common']['disable_pngfix'] && html::$ua_version < 7)
|
||||
{
|
||||
$pngfix_src = $GLOBALS['egw_info']['server']['webserver_url'] . '/phpgwapi/templates/idots/js/pngfix.js';
|
||||
$pngfix .= '<!-- This solves the Internet Explorer PNG-transparency bug, but only for IE 5.5 - 6.0 and higher -->
|
||||
<!--[if lt IE 7.0]>
|
||||
<script src="'.$pngfix_src.'" type="text/javascript">
|
||||
</script>
|
||||
<![endif]-->';
|
||||
}
|
||||
}
|
||||
|
||||
if(!$GLOBALS['egw_info']['user']['preferences']['common']['disable_slider_effects'])
|
||||
|
28
phpgwapi/templates/default/head.tpl
Normal file
28
phpgwapi/templates/default/head.tpl
Normal file
@ -0,0 +1,28 @@
|
||||
<!-- BEGIN head --><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xml:lang="{lang_code}" xmlns="http://www.w3.org/1999/xhtml"{dir_code}>
|
||||
<head>
|
||||
<title>{website_title}</title>
|
||||
<meta http-equiv="content-type" content="text/html; charset={charset}" />
|
||||
<meta name="keywords" content="EGroupware" />
|
||||
<meta name="description" content="EGroupware" />
|
||||
<meta name="keywords" content="EGroupware" />
|
||||
<meta name="copyright" content="EGroupware http://www.egroupware.org (c) 2010" />
|
||||
<meta name="language" content="{lang_code}" />
|
||||
<meta name="author" content="EGroupware http://www.egroupware.org" />
|
||||
{pngfix}
|
||||
{meta_robots}
|
||||
<link rel="icon" href="{img_icon}" type="image/x-ico" />
|
||||
<link rel="shortcut icon" href="{img_shortcut}" />
|
||||
<link href="{theme_css}" type="text/css" rel="StyleSheet" />
|
||||
<link href="{print_css}" type="text/css" media="print" rel="StyleSheet" />
|
||||
{slider_effects}
|
||||
{simple_show_hide}
|
||||
<style type="text/css">
|
||||
{app_css}
|
||||
</style>
|
||||
{css_file}
|
||||
{java_script}
|
||||
</head>
|
||||
<body {body_tags}>
|
||||
{include_wz_tooltip}
|
||||
<!-- END head -->
|
Loading…
Reference in New Issue
Block a user