diff options
author | Derek Allard <derek.allard@ellislab.com> | 2008-11-02 20:23:46 +0100 |
---|---|---|
committer | Derek Allard <derek.allard@ellislab.com> | 2008-11-02 20:23:46 +0100 |
commit | d3fc76fcaf392dfaf0d72f4828a3e43a741af5d0 (patch) | |
tree | c77a807f280f85ee5b91735cd389be5a2ee6ca02 /system/application | |
parent | 0d37ed81f73c7905053643081d45394d956c4bfa (diff) |
Added a doctype() function to the HTML helper.
Diffstat (limited to 'system/application')
-rw-r--r-- | system/application/config/doctypes.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/system/application/config/doctypes.php b/system/application/config/doctypes.php new file mode 100644 index 000000000..9d510abca --- /dev/null +++ b/system/application/config/doctypes.php @@ -0,0 +1,15 @@ +<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); + +$_doctypes = array( + 'xhtml11' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">', + 'xhtml1-strict' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">', + 'xhtml1-trans' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">', + 'xhtml1-frame' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">', + 'html5' => '<!DOCTYPE html>', + 'html4-strict' => '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">', + 'html4-trans' => '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">', + 'html4-frame' => '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">' + ); + +/* End of file doctypes.php */ +/* Location: application/config/doctypes.php */
\ No newline at end of file |