1<!DOCTYPE html>
2<?php
3/**
4 * DokuWiki Default Template
5 *
6 * This is the template for editing image meta data.
7 * It is displayed in the media popup.
8 *
9 * You should leave the doctype at the very top - It should
10 * always be the very first line of a document.
11 *
12 * @link   http://wiki.splitbrain.org/wiki:tpl:templates
13 * @author Andreas Gohr <andi@splitbrain.org>
14 */
15header('X-UA-Compatible: IE = edge, chrome = 1');
16echo "\n" . '<html xml:lang="'.$conf["lang"].'" lang="'.$conf["lang"].'" dir="ltr">
17<head><title>'.hsc($lang['mediaselect']).' ['.hsc($conf['title']).']</title>
18<meta charset="utf-8"/>
19<meta name="description" content="'.strip_tags($conf['title']).' - '.tpl_getLang('descr').'"/>';
20tpl_metaheaders();
21echo tpl_favicon(array('favicon', 'mobile')).
22'<meta name="viewport" content="width = device-width, initial-scale = 1"/>
23</head><body>
24<div class="dokuwiki">';
25html_msgarea();
26echo '<h1>'.hsc($lang['metaedit']).'<code>'.hsc(noNS($IMG)).'</code></h1>
27<div class="mediaedit">';
28/* everything in meta array is tried to save and read */
29echo '<div class="data">
30<form action="'.DOKU_BASE.'lib/exe/media.php" accept-charset="utf-8" method="post">
31<input type="hidden" name="edit" value="'.hsc($IMG).'" />
32<input type="hidden" name="save" value="1" />
33<label class="block" for="img__title">'.$lang['img_title'].'</label>
34<input type="text" name="meta[Iptc.Headline]" id="img__title" class="edit" value="'.hsc(tpl_img_getTag('IPTC.Headline')).'" />
35<br />
36<label class="block" for="img__caption">'.$lang['img_caption'].'</label>
37<textarea name="meta[Iptc.Caption]" id="img__caption" class="edit" rows="5">'.hsc(tpl_img_getTag(array('IPTC.Caption', 'EXIF.UserComment', 'EXIF.TIFFImageDescription', 'EXIF.TIFFUserComment')));.'</textarea>
38<br />
39<label class="block" for="img__artist">'.$lang['img_artist'].'</label>
40<input type="text" name="meta[Iptc.Byline]" id="img__artist" class="edit" value="'.hsc(tpl_img_getTag(array('	Iptc.Byline', 'Exif.TIFFArtist', 'Exif.Artist', 'Iptc.Credit'))).'" />
41<br />
42<label class="block" for="img__copy">'.$lang['img_copyr'].'</label>
43<input type="text" name="meta[Iptc.CopyrightNotice]" id="img__copy" class="edit" value="'.hsc(tpl_img_getTag(array('Iptc.CopyrightNotice', 'Exif.TIFFCopyright', 'Exif.Copyright'))).'" />
44<br />
45<label class="block" for="img__keywords">'.$lang['img_keywords'].'</label>
46<textarea name="meta[Iptc.Keywords]" id="img__keywords" class="edit">'.hsc(tpl_img_getTag(array('IPTC.Keywords', 'EXIF.Category')));.'</textarea>
47<br />
48<input type="submit" value="'.$lang['btn_save'].'" accesskey="s" class="button" />
49</form>
50</div>
51<div class="footer">
52<hr />';
53tpl_button('backtomedia'); ?>
54</div></div></div></body></html>
55