diff options
author | Urban Müller | 2014-08-29 14:06:02 +0200 |
---|---|---|
committer | Urban Müller | 2014-08-29 14:06:02 +0200 |
commit | 4aa2127d920aa3eb2d56faf8b96d599c088e72b4 (patch) | |
tree | ee916f7d6d794abfd33723cccaa3520a13a558ab /it_html.class | |
parent | ac5ba76a64857445fcf816943d6756962edb0d65 (diff) | |
download | itools-4aa2127d920aa3eb2d56faf8b96d599c088e72b4.tar.gz itools-4aa2127d920aa3eb2d56faf8b96d599c088e72b4.tar.bz2 itools-4aa2127d920aa3eb2d56faf8b96d599c088e72b4.zip |
support cache manifests
Diffstat (limited to 'it_html.class')
-rw-r--r-- | it_html.class | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/it_html.class b/it_html.class index 923facb..ec24da6 100644 --- a/it_html.class +++ b/it_html.class @@ -157,8 +157,10 @@ function html($args) list($data, $p) = it_parse_args($args); $p += $this->p; + $manifest = $p['manifest'] ? ' manifest="' . Q($p['manifest']) . '"' : ""; + $html = ($p['doctype'] ? $p['doctype'] : $this->doctypes[$p['htmltype']]) . "\n" . - '<html ' . ($p['htmltype'] == "xhtml" ? 'xmlns="http://www.w3.org/1999/xhtml" ' : '') . ($p['htmltype'] == "xhtml-mobile" ? 'xml:lang' : 'lang') . "=\"{$p['lang']}\">\n" . $data . ($p['omit_endhtml'] ? '' : "</html>\n"); + '<html ' . ($p['htmltype'] == "xhtml" ? 'xmlns="http://www.w3.org/1999/xhtml" ' : '') . ($p['htmltype'] == "xhtml-mobile" ? 'xml:lang' : 'lang') . "=\"{$p['lang']}\"$manifest>\n" . $data . ($p['omit_endhtml'] ? '' : "</html>\n"); return EDC('upd') ? it::replace(array('<!DOCTYPE.*<head>' => ''), $html, array('singleline' => true)) : $html; } |