Files
gallery3/modules/info/views/info_block.html.php
Bharat Mediratta fc6bdbbbc8 Grab photo capture date and captions from EXIF/IPTC data.
- Add a "captured" column to the items table.
- Pull the DateTime EXIF field and put it into the captured column
- Pull the Caption EXIF & IPTC fields and put them into the description
  field if there was not already a value there
2009-05-07 01:18:31 +00:00

34 lines
812 B
PHP

<?php defined("SYSPATH") or die("No direct script access.") ?>
<table class="gMetadata">
<tbody>
<tr>
<th><?= t("Title:") ?></th>
<td><?= $item->title; ?></td>
</tr>
<? if ($item->description): ?>
<tr>
<th><?= t("Description:") ?></th>
<td><?= $item->description; ?></td>
</tr>
<? endif ?>
<? if ($item->id != 1): ?>
<tr>
<th><?= t("Name:") ?></th>
<td><?= $item->name; ?></td>
</tr>
<? endif ?>
<? if ($item->captured): ?>
<tr>
<th><?= t("Captured:") ?></th>
<td><?= date("M j, Y H:i:s", $item->captured)?></td>
</tr>
<? endif ?>
<? if ($item->owner): ?>
<tr>
<th><?= t("Owner:") ?></th>
<td><a href="#"><?= $item->owner->name ?></a></td>
</tr>
<? endif ?>
</tbody>
</table>