You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

105 lines
2.4 KiB

<?php
function msie_compat_insert_head($flux) {
$iecompat = $GLOBALS['meta']["iecompat"];
if ($iecompat == "ifixpng") {
$flux .= "<!--[if lt IE 7]>
<script src='".find_in_path('javascript/jquery.ifixpng.js')."'></script>
<script type='text/javascript'><!--
jQuery.ifixpng('rien.gif');
function fixie() {
jQuery('img').ifixpng();
}
$(document).ready(function() { fixie(); });
onAjaxLoad(fixie);
--></script>
<![endif]-->
";
} else if ($iecompat == "IE7") {
$flux .= "<!--[if lt IE 7]>
<script type='text/javascript'><!--
var IE7_PNG_SUFFIX = '.png';
--></script>
<script src='".find_in_path('javascript/IE7.js')."'></script>
<![endif]-->
";
} else if ($iecompat == "IE7squish") {
$flux .= "<!--[if lt IE 7]>
<script type='text/javascript'><!--
var IE7_PNG_SUFFIX = '.png';
--></script>
<script src='".find_in_path('javascript/IE7.js')."'></script>
<script src='".find_in_path('javascript/ie7-squish.js')."'></script>
<![endif]-->
";
} else if ($iecompat == "IE8") {
$flux .= "<!--[if lt IE 8]>
<script type='text/javascript'><!--
var IE7_PNG_SUFFIX = '.png';
--></script>
<script src='".find_in_path('javascript/IE8.js')."'></script>
<![endif]-->
";
} else if ($iecompat == "IE8squish") {
$flux .= "<!--[if lt IE 8]>
<script type='text/javascript'><!--
var IE7_PNG_SUFFIX = '.png';
--></script>
<script src='".find_in_path('javascript/IE8.js')."'></script>
<script src='".find_in_path('javascript/ie7-squish.js')."'></script>
<![endif]-->
";
} /* else if ($iecompat == "IE9") {
$flux .= "<!--[if lt IE 9]>
<script type='text/javascript'><!--
var IE7_PNG_SUFFIX = '.png';
--></script>
<script src='".find_in_path('javascript/IE9.js')."'></script>
<![endif]-->
";
} else if ($iecompat == "IE9squish") {
$flux .= "<!--[if lt IE 9]>
<script type='text/javascript'><!--
var IE7_PNG_SUFFIX = '.png';
--></script>
<script src='".find_in_path('javascript/IE9.js')."'></script>
<script src='".find_in_path('javascript/ie7-squish.js')."'></script>
<![endif]-->
";
} */
return $flux;
}
function msie_compat_affiche_milieu ($flux) {
if ($flux["args"]["exec"] == "config_fonctions") {
$configurer = charger_fonction('ie6config', 'configuration');
$flux["data"] .= $configurer();
}
return $flux;
}
function msie_compat_configurer_liste_metas ($metas) {
$metas['iecompat']='ifixpng';
return ($metas);
}
?>