3 if (!defined("_ECRIRE_INC_VERSION")) return;
5 function msie_compat_insert_head($flux) {
8 $iecompat = $GLOBALS['meta']["iecompat"];
11 if ($iecompat == "ifixpng") {
12 $flux .= "<!--[if lt IE 7]>
13 <script src='".find_in_path('javascript/jquery.ifixpng.js')."'></script>
14 <script type='text/javascript'>//<![CDATA[
15 jQuery.ifixpng('rien.gif');
17 jQuery('img').ifixpng();
19 $(document).ready(function() { fixie(); });
24 } else if ($iecompat == "IE7") {
25 $flux .= "<!--[if lt IE 7]>
26 <script type='text/javascript'>//<![CDATA[
27 var IE7_PNG_SUFFIX = '.png';
29 <script src='".find_in_path('javascript/IE7.js')."'></script>
33 } else if ($iecompat == "IE7squish") {
34 $flux .= "<!--[if lt IE 7]>
35 <script type='text/javascript'>//<![CDATA[
36 var IE7_PNG_SUFFIX = '.png';
38 <script src='".find_in_path('javascript/IE7.js')."'></script>
39 <script src='".find_in_path('javascript/ie7-squish.js')."'></script>
43 } else if ($iecompat == "IE8") {
44 $flux .= "<!--[if lt IE 8]>
45 <script type='text/javascript'>//<![CDATA[
46 var IE7_PNG_SUFFIX = '.png';
48 <script src='".find_in_path('javascript/IE8.js')."'></script>
52 } else if ($iecompat == "IE8squish") {
53 $flux .= "<!--[if lt IE 8]>
54 <script type='text/javascript'>//<![CDATA[
55 var IE7_PNG_SUFFIX = '.png';
57 <script src='".find_in_path('javascript/IE8.js')."'></script>
58 <script src='".find_in_path('javascript/ie7-squish.js')."'></script>
62 } /* else if ($iecompat == "IE9") {
63 $flux .= "<!--[if lt IE 9]>
64 <script type='text/javascript'>//<![CDATA[
65 var IE7_PNG_SUFFIX = '.png';
67 <script src='".find_in_path('javascript/IE9.js')."'></script>
71 } else if ($iecompat == "IE9squish") {
72 $flux .= "<!--[if lt IE 9]>
73 <script type='text/javascript'>//<![CDATA[
74 var IE7_PNG_SUFFIX = '.png';
76 <script src='".find_in_path('javascript/IE9.js')."'></script>
77 <script src='".find_in_path('javascript/ie7-squish.js')."'></script>
86 function msie_compat_affiche_milieu ($flux) {
88 if ($flux["args"]["exec"] == "config_fonctions") {
90 $configurer = charger_fonction('ie6config', 'configuration');
92 $flux["data"] .= $configurer();
100 function msie_compat_configurer_liste_metas ($metas) {
101 $metas['iecompat']='ifixpng';