mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-11 15:19:09 -04:00
- 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
34 lines
812 B
PHP
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>
|