summaryrefslogtreecommitdiff
path: root/it_html.class
diff options
context:
space:
mode:
Diffstat (limited to 'it_html.class')
-rw-r--r--it_html.class4
1 files changed, 4 insertions, 0 deletions
diff --git a/it_html.class b/it_html.class
index be13fe4..7f4227e 100644
--- a/it_html.class
+++ b/it_html.class
@@ -151,6 +151,10 @@ function head($args = array())
$header = $p['show_content_type'] ? meta(array('http-equiv' => "Content-Type", 'content' => $p['content-type'])) : "";
+ # Enable latest IE mode
+ if(strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE'))
+ $header .= meta(array('http-equiv' => "X-UA-Compatible", 'content' => "IE=edge"));
+
foreach(array('description', 'keywords') as $name)
if (!empty($p[$name]))
$header .= meta(array('name' => $name, 'content' => $p[$name]));