1<?php 2 3/** 4 * DokuWiki Image Detail Template 5 * 6 * See "detail.php" if you don't know how this is getting included within the 7 * "main.php". 8 * 9 * 10 * LICENSE: This file is open source software (OSS) and may be copied under 11 * certain conditions. See COPYING file for details or try to contact 12 * the author(s) of this file in doubt. 13 * 14 * @license GPLv2 (http://www.gnu.org/licenses/gpl2.html) 15 * @author Andreas Haerter <andreas.haerter@dev.mail-node.com> 16 * @link http://andreas-haerter.com/projects/dokuwiki-template-vector 17 * @link http://www.dokuwiki.org/template:vector 18 * @link http://www.dokuwiki.org/devel:templates 19 */ 20 21//check if we are running within the DokuWiki environment 22if (!defined("DOKU_INC")){ 23 die(); 24} 25 26//the following is a copy of some contents out of the "detail.php", coming from 27//Andreas Gohr's "default" template. I simply deleted stuff not needed for 28//this template. Compare the files, you will see what I mean -> everything 29//outside the <div class="page">. 30?> 31 32 <div class="page"> 33 <?php if($ERROR){ print $ERROR; }else{ ?> 34 35 <h1><?php echo hsc(tpl_img_getTag('IPTC.Headline',$IMG))?></h1> 36 37 <div class="img_big"> 38 <?php tpl_img(900,700) ?> 39 </div> 40 41 <div class="img_detail"> 42 <p class="img_caption"> 43 <?php print nl2br(hsc(tpl_img_getTag('simple.title'))); ?> 44 </p> 45 46 <p>← <?php echo $lang['img_backto']?> <?php tpl_pagelink($ID)?></p> 47 48 <dl class="img_tags"> 49 <?php 50 $t = tpl_img_getTag('Date.EarliestTime'); 51 if($t) print '<dt>'.$lang['img_date'].':</dt><dd>'.dformat($t).'</dd>'; 52 53 $t = tpl_img_getTag('File.Name'); 54 if($t) print '<dt>'.$lang['img_fname'].':</dt><dd>'.hsc($t).'</dd>'; 55 56 $t = tpl_img_getTag(array('Iptc.Byline','Exif.TIFFArtist','Exif.Artist','Iptc.Credit')); 57 if($t) print '<dt>'.$lang['img_artist'].':</dt><dd>'.hsc($t).'</dd>'; 58 59 $t = tpl_img_getTag(array('Iptc.CopyrightNotice','Exif.TIFFCopyright','Exif.Copyright')); 60 if($t) print '<dt>'.$lang['img_copyr'].':</dt><dd>'.hsc($t).'</dd>'; 61 62 $t = tpl_img_getTag('File.Format'); 63 if($t) print '<dt>'.$lang['img_format'].':</dt><dd>'.hsc($t).'</dd>'; 64 65 $t = tpl_img_getTag('File.NiceSize'); 66 if($t) print '<dt>'.$lang['img_fsize'].':</dt><dd>'.hsc($t).'</dd>'; 67 68 $t = tpl_img_getTag('Simple.Camera'); 69 if($t) print '<dt>'.$lang['img_camera'].':</dt><dd>'.hsc($t).'</dd>'; 70 71 $t = tpl_img_getTag(array('IPTC.Keywords','IPTC.Category','xmp.dc:subject')); 72 if($t) print '<dt>'.$lang['img_keywords'].':</dt><dd>'.hsc($t).'</dd>'; 73 74 ?> 75 </dl> 76 <?php //Comment in for Debug// dbg(tpl_img_getTag('Simple.Raw'));?> 77 </div> 78 79 <?php } ?> 80 </div> 81