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_BASE?>images/favicon.ico" />
25  <link rel="stylesheet" media="screen" type="text/css" href="<?php echo DOKU_TPL?>layout.css" />
26  <link rel="stylesheet" media="screen" type="text/css" href="<?php echo DOKU_TPL?>design.css" />
27</head>
28
29<body>
30<div class="dokuwiki">
31  <?php html_msgarea()?>
32
33  <h1><?php echo hsc($lang['metaedit'])?> <code><?php echo hsc(noNS($IMG))?></code></h1>
34
35  <div class="mediaedit">
36		<?php/* everything in meta array is tried to save and read */?>
37
38 		<div class="data">
39			<form action="<?php echo DOKU_BASE?>lib/exe/media.php" accept-charset="utf-8" method="post">
40				<input type="hidden" name="edit" value="<?php echo hsc($IMG)?>" />
41				<input type="hidden" name="save" value="1" />
42
43				<label for="title"><?php echo $lang['img_title']?></label>
44				<input type="text" name="meta[Iptc.Headline]" id="title" class="edit"
45         value="<?php echo hsc(tpl_img_getTag('IPTC.Headline'))?>" /><br />
46
47				<label for="caption"><?php echo $lang['img_caption']?></label>
48				<textarea name="meta[Iptc.Caption]" id="caption" class="edit" rows="5"><?php
49          echo hsc(tpl_img_getTag(array('IPTC.Caption',
50                                        'EXIF.UserComment',
51                                        'EXIF.TIFFImageDescription',
52                                        'EXIF.TIFFUserComment')));
53        ?></textarea><br />
54
55				<label for="artist"><?php echo $lang['img_artist']?></label>
56				<input type="text" name="meta[Iptc.Byline]" id="artist" class="edit"
57         value="<?php echo hsc(tpl_img_getTag(array('Iptc.Byline',
58                                                    'Exif.TIFFArtist',
59                                                    'Exif.Artist',
60                                                    'Iptc.Credit')))?>" /><br />
61
62				<label for="copy"><?php echo $lang['img_copyr']?></label>
63				<input type="text" name="meta[Iptc.CopyrightNotice]" id="copy" class="edit"
64         value="<?php echo hsc(tpl_img_getTag(array('Iptc.CopyrightNotice','Exif.TIFFCopyright','Exif.Copyright')))?>" /><br />
65
66
67				<label for="keywords"><?php echo $lang['img_keywords']?></label>
68        <textarea name="meta[Iptc.Keywords]" id="keywords" class="edit"><?php
69          echo hsc(tpl_img_getTag(array('IPTC.Keywords',
70                                        'EXIF.Category')));
71        ?></textarea><br />
72
73
74				<input type="submit" value="<?php echo $lang['btn_save']?>" title="ALT+S"
75         accesskey="s" class="button" />
76
77			</form>
78 		</div>
79
80
81    <div class="footer">
82      <hr>
83        <?php tpl_button('backtomedia')?>
84    </div>
85  </div>
86
87</div>
88</body>
89</html>
90
91