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