1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 2<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang']; ?>" lang="<?php echo $conf['lang']; ?>"> 3 <head> 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 5 <meta http-equiv="Content-Style-Type" content="text/css" /> 6 <title><?php echo hsc($lang['mediaselect'])?> [<?php echo hsc($conf['title'])?>]</title> 7 <?php tpl_metaheaders(); ?> 8 <link rel="shortcut icon" href="<?php echo DOKU_TPL?>favicon.ico" /> 9 </head> 10 <body id="mediaedit"> 11<!-- =============================== CONTENT =============================== --> 12 <div id="content"> 13 <div id="contenttop"> 14 <div class="prepend"></div> 15 </div> 16 <div id="contentbody"> 17 18 19 20 21 <?php html_msgarea()?> 22 23 <h1><?php echo hsc($lang['metaedit'])?></h1> 24 <h2><code><?php echo hsc(noNS($IMG))?></code></h2> 25 26 <div class="mediaedit"> 27 <?php/* everything in meta array is tried to save and read */?> 28 29 <div class="data"> 30 <form action="<?php echo DOKU_BASE?>lib/exe/media.php" accept-charset="utf-8" method="post"> 31 <input type="hidden" name="edit" value="<?php echo hsc($IMG)?>" /> 32 <input type="hidden" name="save" value="1" /> 33 34 <label class="block" for="img__title"><?php echo $lang['img_title']?></label> 35 <input type="text" name="meta[Iptc.Headline]" id="img__title" class="edit" 36 value="<?php echo hsc(tpl_img_getTag('IPTC.Headline'))?>" /><br /> 37 38 <label class="block" for="img__caption"><?php echo $lang['img_caption']?></label> 39 <textarea name="meta[Iptc.Caption]" id="img__caption" class="edit" rows="5"><?php 40 echo hsc(tpl_img_getTag(array('IPTC.Caption', 41 'EXIF.UserComment', 42 'EXIF.TIFFImageDescription', 43 'EXIF.TIFFUserComment'))); 44 ?></textarea><br /> 45 46 <label class="block" for="img__artist"><?php echo $lang['img_artist']?></label> 47 <input type="text" name="meta[Iptc.Byline]" id="img__artist" class="edit" 48 value="<?php echo hsc(tpl_img_getTag(array('Iptc.Byline', 49 'Exif.TIFFArtist', 50 'Exif.Artist', 51 'Iptc.Credit')))?>" /><br /> 52 53 <label class="block" for="img__copy"><?php echo $lang['img_copyr']?></label> 54 <input type="text" name="meta[Iptc.CopyrightNotice]" id="img__copy" class="edit" 55 value="<?php echo hsc(tpl_img_getTag(array('Iptc.CopyrightNotice','Exif.TIFFCopyright','Exif.Copyright')))?>" /><br /> 56 57 58 <label class="block" for="img__keywords"><?php echo $lang['img_keywords']?></label> 59 <textarea name="meta[Iptc.Keywords]" id="img__keywords" class="edit"><?php 60 echo hsc(tpl_img_getTag(array('IPTC.Keywords', 61 'EXIF.Category'))); 62 ?></textarea><br /> 63 64 65 <input type="submit" value="<?php echo $lang['btn_save']?>" title="ALT+S" 66 accesskey="s" class="button" /> 67 68 </form> 69 </div> 70 71 72 <div class="footer"> 73 <hr /> 74 <?php tpl_button('backtomedia')?> 75 </div> 76 </div> 77 78 79 80 81 </div> 82 <div id="contentbottom"> 83 <div class="prepend"></div> 84 </div> 85 </div> 86 87 </body> 88</html> 89