You are here

photos_exif.tpl.php in Album Photos 6.2

Same filename and directory in other branches
  1. 7.3 tpl/photos_exif.tpl.php

File

tpl/photos_exif.tpl.php
View source
<?php

//print_r($exif);
if (is_array($exif)) {
  print '<table>';
  foreach ($exif as $key => $tag) {
    if (is_array($tag)) {
      print '<tr class="photos_exif_title"><td colspan="2">' . $key . '</td></tr>';
      foreach ($tag as $ctag => $val) {
        print '<tr><td class="photos_exif_name" width="30%">' . $ctag . '</td><td>';
        if (!is_array($val)) {
          print $val;
        }
        else {
          print implode(',', $val);
        }
        print '</td></tr>';
      }
    }
  }
  print '</table>';
}
else {
  print '<h2>' . $exif . '</h2>';
}