diff options
-rw-r--r-- | src/views/Template.class.php | 33 |
1 files changed, 25 insertions, 8 deletions
diff --git a/src/views/Template.class.php b/src/views/Template.class.php index bf57e93..f6e1d7f 100644 --- a/src/views/Template.class.php +++ b/src/views/Template.class.php @@ -124,21 +124,38 @@ class Template { $logged_in = ($username!==false); - $str = '<?xml version="1.0" encoding="utf-8"?>'."\n"; - $str.= '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"'."\n"; - $str.= '"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">'."\n"; - - $xmlns = "http://www.w3.org/1999/xhtml"; - $str.= $this->openTag('html', array('xmlns'=>$xmlns, - 'lang'=>"en-us", - 'dir'=>"ltr")); + $str.= +'<!DOCTYPE html> +<!--[if IE 6]> +<html id="ie6"> +<![endif]--> +<!--[if IE 7]> +<html id="ie7"> +<![endif]--> +<!--[if IE 8]> +<html id="ie8"> +<![endif]--> +<!--[if !(IE 6) | !(IE 7) | !(IE 8) ]><!--> +<html> +<!--<![endif]--> +'; $this->indent = 0; // don't indent for the <html> tag $str.= $this->openTag('head'); + $str.= $this->tag('meta', array('name'=>'viewport', + 'content'=>'width=device-width')); $str.= $this->tag('title', array(), htmlspecialchars($title)); + $str.= $this->tag('link', array('rel'=>'stylesheet', + 'type'=>'text/css', + 'media'=>'all', + 'href'=>'/wp/wp-content/themes/kilabytes/style.css')); $str.= $this->css('style.css', 'all'); $str.= $this->css('screen.css', 'screen'); $str.= $this->css('print.css', 'print'); + $str<!--[if lt IE 9]> +<script src="<?php echo get_template_directory_uri(); ?>/js/html5.js" type="text/javascript"></script> +<![endif]--> + $str.= $this->closeTag('head'); $body_class = 'logged'.($logged_in?'in':'out'); |