]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/default/templates/html.tmpl
application/xhtml+xml support (esp. for MathML/SVG)
[SourceForge/phpwiki.git] / themes / default / templates / html.tmpl
1 <?php  // -*-html-*-
2 rcs_id('$Id: html.tmpl,v 1.6 2004-06-23 10:33:11 rurban Exp $');
3 /*
4  * This template is responsible mainly for the outer level <html> stuff.
5  *
6  * NS/MO/IE/Op Browsers before 4.0 don't like that.
7  * Better is IMHO:
8  if (strstr($request->get('HTTP_ACCEPT'),'application/xhtml+xml') or
9     (strstr($request->get('HTTP_ACCEPT'),'text/xml')))
10  */
11 if (browserVersion() >= 4.0)
12   printf("<?xml version=\"1.0\" encoding=\"%s\"?>\n", CHARSET);
13 ?>
14 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
15   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
16 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?=$GLOBALS['LANG']?>" lang="<?=$GLOBALS['LANG']?>">
17 <?= Template('head') ?>
18 <?= Template('body') ?>
19 <?php
20 if (defined('DEBUG') and DEBUG) {
21     printf("<!-- phpwiki source: \n%s-->\n", $RCS_IDS);
22 }
23 ?>
24 </html>