diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2011-10-09 13:20:08 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2011-10-09 17:00:20 -0400 |
commit | e855add5d3f8bbf7f940da169a77072ce06be06a (patch) | |
tree | 06e29a8741e786525559ca86785c8cc32b67454a /src | |
parent | 4d2de268b75f08e6fa774063a277c2c50f603ef7 (diff) |
Begin transitioning to HTML5 (this commit breaks the "build")html5
Diffstat (limited to 'src')
-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'); |