Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
afi
zf
Commits
828f8100
Commit
828f8100
authored
Mar 21, 2014
by
stl
Browse files
Add HTML5 support
parent
0c237499
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
library/Zend/View/Helper/Doctype.php
library/Zend/View/Helper/Doctype.php
+3
-0
No files found.
library/Zend/View/Helper/Doctype.php
View file @
828f8100
...
...
@@ -46,6 +46,7 @@ class Zend_View_Helper_Doctype extends Zend_View_Helper_Abstract
const
HTML4_STRICT
=
'HTML4_STRICT'
;
const
HTML4_LOOSE
=
'HTML4_LOOSE'
;
const
HTML4_FRAMESET
=
'HTML4_FRAMESET'
;
const
HTML5
=
'HTML5'
;
const
CUSTOM_XHTML
=
'CUSTOM_XHTML'
;
const
CUSTOM
=
'CUSTOM'
;
/**#@-*/
...
...
@@ -87,6 +88,7 @@ class Zend_View_Helper_Doctype extends Zend_View_Helper_Abstract
self
::
XHTML_BASIC1
=>
'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.0//EN" "http://www.w3.org/TR/xhtml-basic/xhtml-basic10.dtd">'
,
self
::
HTML4_STRICT
=>
'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">'
,
self
::
HTML4_LOOSE
=>
'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">'
,
self
::
HTML5
=>
'<!DOCTYPE HTML>'
,
self
::
HTML4_FRAMESET
=>
'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">'
,
)
));
...
...
@@ -114,6 +116,7 @@ class Zend_View_Helper_Doctype extends Zend_View_Helper_Abstract
case
self
::
XHTML_BASIC1
:
case
self
::
HTML4_STRICT
:
case
self
::
HTML4_LOOSE
:
case
self
::
HTML5
:
case
self
::
HTML4_FRAMESET
:
$this
->
setDoctype
(
$doctype
);
break
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment