[livejournal] r23295: LJSUP-14230 (Add ability to select betwe...
Committer: ailyin
LJSUP-14230 (Add ability to select between IE7 or IE8 mode)U trunk/cgi-bin/LJ/SiteScheme.pm U trunk/templates/SiteScheme/lynx.tmpl
Modified: trunk/cgi-bin/LJ/SiteScheme.pm
===================================================================
--- trunk/cgi-bin/LJ/SiteScheme.pm 2012-11-13 14:24:48 UTC (rev 23294)
+++ trunk/cgi-bin/LJ/SiteScheme.pm 2012-11-13 14:36:23 UTC (rev 23295)
@@ -149,6 +149,13 @@
}
}
+ my $ie8_ie7_compatible = 1;
+ if ( defined $args->{'ie8_ie7_compatible'} &&
+ ! $args->{'ie8_ie7_compatible'} )
+ {
+ $ie8_ie7_compatible = 0;
+ }
+
my $additional_head_content = '';
LJ::run_hooks( 'head_content', \$additional_head_content );
@@ -445,6 +452,7 @@
'loginform_need_extra_fields' => $loginform_need_extra_fields,
'loginform_onclick' => $loginform_onclick,
+ 'ie8_ie7_compatible' => $ie8_ie7_compatible,
'additional_head_content' => $additional_head_content,
'expresslane_html_comment' => $expresslane_html_comment,
'server_signature_title' => $LJ::SERVER_SIGNATURE_TITLE || '',
Modified: trunk/templates/SiteScheme/lynx.tmpl
===================================================================
--- trunk/templates/SiteScheme/lynx.tmpl 2012-11-13 14:24:48 UTC (rev 23294)
+++ trunk/templates/SiteScheme/lynx.tmpl 2012-11-13 14:36:23 UTC (rev 23295)
@@ -1,7 +1,7 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
-<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7; IE=EmulateIE9" />
+<TMPL_IF ie8_ie7_compatible><meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7; IE=EmulateIE9" /></TMPL_IF>
<link rel="home" title="<TMPL_VAR expr="ml('lynx.nav.home')">" href="<TMPL_VAR lj_siteroot>/" />
<link rel="contents" title="<TMPL_VAR expr="ml('lynx.nav.sitemap')">" href="<TMPL_VAR lj_siteroot>/site/" />
<link rel="help" title="<TMPL_VAR expr="ml('lynx.nav.help')">" href="<TMPL_VAR lj_siteroot>/support/" />
