~ubuntu-branches/ubuntu/quantal/dokuwiki/quantal

« back to all changes in this revision

Viewing changes to lib/tpl/default/detail.php

  • Committer: Package Import Robot
  • Author(s): Tanguy Ortolo
  • Date: 2012-01-26 23:10:28 UTC
  • mfrom: (1.1.14) (19.1.3 experimental)
  • Revision ID: package-import@ubuntu.com-20120126231028-gdcxrxo3j4jqp2de
Tags: 0.0.20120125-1
* New upstream release.
* debian/patches/debianize.diff: updated for the new release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
      </p>
50
50
 
51
51
      <p>&larr; <?php echo $lang['img_backto']?> <?php tpl_pagelink($ID)?></p>
 
52
      <?php
 
53
            $imgNS = getNS($IMG);
 
54
            $authNS = auth_quickaclcheck("$imgNS:*");
 
55
            if ($authNS >= AUTH_UPLOAD) {
 
56
                echo '<p><a href="'.media_managerURL(array('ns' => $imgNS, 'image' => $IMG)).'">'.$lang['img_manager'].'</a></p>';
 
57
            }
 
58
      ?>
52
59
 
53
60
      <dl class="img_tags">
54
61
        <?php
55
 
          $t = tpl_img_getTag('Date.EarliestTime');
56
 
          if($t) print '<dt>'.$lang['img_date'].':</dt><dd>'.dformat($t).'</dd>';
57
 
 
58
 
          $t = tpl_img_getTag('File.Name');
59
 
          if($t) print '<dt>'.$lang['img_fname'].':</dt><dd>'.hsc($t).'</dd>';
60
 
 
61
 
          $t = tpl_img_getTag(array('Iptc.Byline','Exif.TIFFArtist','Exif.Artist','Iptc.Credit'));
62
 
          if($t) print '<dt>'.$lang['img_artist'].':</dt><dd>'.hsc($t).'</dd>';
63
 
 
64
 
          $t = tpl_img_getTag(array('Iptc.CopyrightNotice','Exif.TIFFCopyright','Exif.Copyright'));
65
 
          if($t) print '<dt>'.$lang['img_copyr'].':</dt><dd>'.hsc($t).'</dd>';
66
 
 
67
 
          $t = tpl_img_getTag('File.Format');
68
 
          if($t) print '<dt>'.$lang['img_format'].':</dt><dd>'.hsc($t).'</dd>';
69
 
 
70
 
          $t = tpl_img_getTag('File.NiceSize');
71
 
          if($t) print '<dt>'.$lang['img_fsize'].':</dt><dd>'.hsc($t).'</dd>';
72
 
 
73
 
          $t = tpl_img_getTag('Simple.Camera');
74
 
          if($t) print '<dt>'.$lang['img_camera'].':</dt><dd>'.hsc($t).'</dd>';
75
 
 
76
 
          $t = tpl_img_getTag(array('IPTC.Keywords','IPTC.Category','xmp.dc:subject'));
77
 
          if($t) print '<dt>'.$lang['img_keywords'].':</dt><dd>'.hsc($t).'</dd>';
78
 
 
 
62
            $config_files = getConfigFiles('mediameta');
 
63
            foreach ($config_files as $config_file) {
 
64
                if(@file_exists($config_file)) include($config_file);
 
65
            }
 
66
 
 
67
            foreach($fields as $key => $tag){
 
68
                $t = array();
 
69
                if (!empty($tag[0])) $t = array($tag[0]);
 
70
                if(is_array($tag[3])) $t = array_merge($t,$tag[3]);
 
71
                $value = tpl_img_getTag($t);
 
72
                if ($value) {
 
73
                    echo '<dt>'.$lang[$tag[1]].':</dt><dd>';
 
74
                    if ($tag[2] == 'date') echo dformat($value);
 
75
                    else echo hsc($value);
 
76
                    echo '</dd>';
 
77
                }
 
78
            }
79
79
        ?>
80
80
      </dl>
81
81
      <?php //Comment in for Debug// dbg(tpl_img_getTag('Simple.Raw'));?>