slitaz-forge diff doc/lib/tpl/slitaz-orange/detail.php @ rev 711

Update pangolin
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Jan 01 18:26:56 2020 +0100 (2020-01-01)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/doc/lib/tpl/slitaz-orange/detail.php	Wed Jan 01 18:26:56 2020 +0100
     1.3 @@ -0,0 +1,92 @@
     1.4 +<?php
     1.5 +/**
     1.6 + * DokuWiki Image Detail Template
     1.7 + *
     1.8 + * This is the template for displaying image details
     1.9 + *
    1.10 + * You should leave the doctype at the very top - It should
    1.11 + * always be the very first line of a document.
    1.12 + *
    1.13 + * @link   http://wiki.splitbrain.org/wiki:tpl:templates
    1.14 + * @author Andreas Gohr <andi@splitbrain.org>
    1.15 + */
    1.16 +
    1.17 +// must be run from within DokuWiki
    1.18 +if (!defined('DOKU_INC')) die();
    1.19 +
    1.20 +?>
    1.21 +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    1.22 + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    1.23 +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang']?>" lang="<?php echo $conf['lang']?>" dir="ltr">
    1.24 +<head>
    1.25 +  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    1.26 +  <title>
    1.27 +     <?php echo hsc(tpl_img_getTag('IPTC.Headline',$IMG))?>
    1.28 +    [<?php echo strip_tags($conf['title'])?>]
    1.29 +  </title>
    1.30 +
    1.31 +  <?php tpl_metaheaders()?>
    1.32 +
    1.33 +  <link rel="shortcut icon" href="<?php echo DOKU_TPL?>images/favicon.ico" />
    1.34 +</head>
    1.35 +
    1.36 +<body>
    1.37 +<div class="dokuwiki">
    1.38 +  <?php html_msgarea()?>
    1.39 +
    1.40 +  <div class="page">
    1.41 +    <?php if($ERROR){ print $ERROR; }else{ ?>
    1.42 +
    1.43 +    <h1><?php echo hsc(tpl_img_getTag('IPTC.Headline',$IMG))?></h1>
    1.44 +
    1.45 +    <div class="img_big">
    1.46 +      <?php tpl_img(900,700) ?>
    1.47 +    </div>
    1.48 +
    1.49 +    <div class="img_detail">
    1.50 +      <p class="img_caption">
    1.51 +        <?php print nl2br(hsc(tpl_img_getTag(array('IPTC.Caption',
    1.52 +                                               'EXIF.UserComment',
    1.53 +                                               'EXIF.TIFFImageDescription',
    1.54 +                                               'EXIF.TIFFUserComment')))); ?>
    1.55 +      </p>
    1.56 +
    1.57 +      <p>&larr; <?php echo $lang['img_backto']?> <?php tpl_pagelink($ID)?></p>
    1.58 +
    1.59 +      <dl class="img_tags">
    1.60 +        <?php
    1.61 +          $t = tpl_img_getTag('Date.EarliestTime');
    1.62 +          if($t) print '<dt>'.$lang['img_date'].':</dt><dd>'.strftime($conf['dformat'],$t).'</dd>';
    1.63 +
    1.64 +          $t = tpl_img_getTag('File.Name');
    1.65 +          if($t) print '<dt>'.$lang['img_fname'].':</dt><dd>'.hsc($t).'</dd>';
    1.66 +
    1.67 +          $t = tpl_img_getTag(array('Iptc.Byline','Exif.TIFFArtist','Exif.Artist','Iptc.Credit'));
    1.68 +          if($t) print '<dt>'.$lang['img_artist'].':</dt><dd>'.hsc($t).'</dd>';
    1.69 +
    1.70 +          $t = tpl_img_getTag(array('Iptc.CopyrightNotice','Exif.TIFFCopyright','Exif.Copyright'));
    1.71 +          if($t) print '<dt>'.$lang['img_copyr'].':</dt><dd>'.hsc($t).'</dd>';
    1.72 +
    1.73 +          $t = tpl_img_getTag('File.Format');
    1.74 +          if($t) print '<dt>'.$lang['img_format'].':</dt><dd>'.hsc($t).'</dd>';
    1.75 +
    1.76 +          $t = tpl_img_getTag('File.NiceSize');
    1.77 +          if($t) print '<dt>'.$lang['img_fsize'].':</dt><dd>'.hsc($t).'</dd>';
    1.78 +
    1.79 +          $t = tpl_img_getTag('Simple.Camera');
    1.80 +          if($t) print '<dt>'.$lang['img_camera'].':</dt><dd>'.hsc($t).'</dd>';
    1.81 +
    1.82 +          $t = tpl_img_getTag(array('IPTC.Keywords','IPTC.Category'));
    1.83 +          if($t) print '<dt>'.$lang['img_keywords'].':</dt><dd>'.hsc($t).'</dd>';
    1.84 +
    1.85 +        ?>
    1.86 +      </dl>
    1.87 +      <?php //Comment in for Debug// dbg(tpl_img_getTag('Simple.Raw'));?>
    1.88 +    </div>
    1.89 +
    1.90 +  <?php } ?>
    1.91 +  </div>
    1.92 +</div>
    1.93 +</body>
    1.94 +</html>
    1.95 +