Skip to content
Snippets Groups Projects
Commit 2c5c3308 authored by Andreas Gohr's avatar Andreas Gohr
Browse files

move content-type meta header above title tag

This is recommended here: http://www.joelonsoftware.com/articles/Unicode.html

darcs-hash:20060304164119-7ad00-f7da3e6edeefb8dcfc907bf28b51379d7b31689e.gz
parent 1ca31cfe
No related branches found
No related tags found
No related merge requests found
......@@ -283,7 +283,7 @@ function act_export($act){
tpl_metaheaders();
ptln('</head>');
ptln('<body>');
ptln('<div class="dokuwiki">');
ptln('<div class="dokuwiki export">');
print p_wiki_xhtml($ID,$REV,false);
ptln('</div>');
ptln('</body>');
......
......@@ -15,11 +15,11 @@
?>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang']?>" lang="<?php echo $conf['lang']?>" dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>
<?php echo hsc(tpl_img_getTag('IPTC.Headline',$IMG))?>
[<?php echo hsc($conf['title'])?>]
</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?php tpl_metaheaders()?>
......@@ -31,27 +31,27 @@
<?php html_msgarea()?>
<div class="page">
<?php if($ERROR){ print $ERROR; }else{ ?>
<?php if($ERROR){ print $ERROR; }else{ ?>
<h1><?php echo hsc(tpl_img_getTag('IPTC.Headline',$IMG))?></h1>
<h1><?php echo hsc(tpl_img_getTag('IPTC.Headline',$IMG))?></h1>
<div class="img_big">
<?php tpl_img(900,700) ?>
</div>
<div class="img_big">
<?php tpl_img(900,700) ?>
</div>
<div class="img_detail">
<p class="img_caption">
<?php print nl2br(hsc(tpl_img_getTag(array('IPTC.Caption',
<div class="img_detail">
<p class="img_caption">
<?php print nl2br(hsc(tpl_img_getTag(array('IPTC.Caption',
'EXIF.UserComment',
'EXIF.TIFFImageDescription',
'EXIF.TIFFUserComment')))); ?>
</p>
</p>
<p>&larr; <?php echo $lang['img_backto']?> <?php tpl_pagelink($ID)?></p>
<dl class="img_tags">
<?php
$t = tpl_img_getTag('Date.EarliestTime');
$t = tpl_img_getTag('Date.EarliestTime');
if($t) print '<dt>'.$lang['img_date'].':</dt><dd>'.date($conf['dformat'],$t).'</dd>';
$t = tpl_img_getTag('File.Name');
......@@ -78,7 +78,7 @@
?>
</dl>
<?php //Comment in for Debug// dbg(tpl_img_getTag('Simple.Raw'));?>
</div>
</div>
<?php } ?>
</div>
......
......@@ -17,8 +17,8 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang']?>"
lang="<?php echo $conf['lang']?>" dir="<?php echo $lang['direction']?>">
<head>
<title><?php tpl_pagetitle()?> [<?php echo hsc($conf['title'])?>]</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php tpl_pagetitle()?> [<?php echo hsc($conf['title'])?>]</title>
<?php tpl_metaheaders()?>
......
......@@ -15,8 +15,8 @@
?>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang']?>" lang="<?php echo $conf['lang']?>" dir="ltr">
<head>
<title><?php echo hsc($lang['mediaselect'])?> [<?php echo hsc($conf['title'])?>]</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo hsc($lang['mediaselect'])?> [<?php echo hsc($conf['title'])?>]</title>
<?php tpl_metaheaders()?>
......@@ -35,16 +35,16 @@
<div class="mediaselect-left">
<strong><a href="<?php echo DOKU_BASE?>lib/exe/media.php?ns="><?php echo hsc($lang['namespaces'])?></a></strong>
<?php tpl_medianamespaces()?>
</div>
<?php tpl_medianamespaces()?>
</div>
<div class="mediaselect-right">
<?php tpl_mediafilelist()?>
<div class="uploadform">
<?php tpl_mediauploadform()?>
</div>
</div>
<div class="uploadform">
<?php tpl_mediauploadform()?>
</div>
</div>
</div>
......
......@@ -16,8 +16,8 @@
?>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang']?>" lang="<?php echo $conf['lang']?>" dir="ltr">
<head>
<title><?php echo hsc($lang['mediaselect'])?> [<?php echo hsc($conf['title'])?>]</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo hsc($lang['mediaselect'])?> [<?php echo hsc($conf['title'])?>]</title>
<?php tpl_metaheaders()?>
......@@ -85,4 +85,3 @@
</div>
</body>
</html>
......@@ -16,8 +16,8 @@
?>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang']?>" lang="<?php echo $conf['lang']?>" dir="ltr">
<head>
<title><?php echo hsc($lang['mediaselect'])?> [<?php echo hsc($conf['title'])?>]</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo hsc($lang['mediaselect'])?> [<?php echo hsc($conf['title'])?>]</title>
<?php tpl_metaheaders()?>
......@@ -35,11 +35,11 @@
<div class="mediaref_head">
<p><?php echo hsc($lang['ref_inuse'])?></p>
</div>
<?php tpl_showreferences($mediareferences)?>
<div class="mediaref_footer">
<hr>
<div class="mediaref_footer">
<hr>
<?php tpl_button('backtomedia')?>
</div>
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment