Files
gallery3/modules/info/views/info_block.html.php
Bharat Mediratta 26314d0ef8 Create gallery::date_time(), gallery::date() and gallery::time()
functions that format a unix timestamp into a date+time/date/time
string.

Partial fix for ticket #347.
2009-06-12 22:44:51 -07:00

45 lines
1.1 KiB
PHP

<?php defined("SYSPATH") or die("No direct script access.") ?>
<table class="gMetadata">
<tbody>
<tr>
<th><?= t("Title:") ?></th>
<td><?= p::clean($item->title) ?></td>
</tr>
<? if ($item->description): ?>
<tr>
<th><?= t("Description:") ?></th>
<td><?= p::clean($item->description) ?></td>
</tr>
<? endif ?>
<? if ($item->id != 1): ?>
<tr>
<th><?= t("Name:") ?></th>
<td><?= p::clean($item->name) ?></td>
</tr>
<? endif ?>
<? if ($item->id != 1): ?>
<? $parent = $item->parent(); ?>
<tr>
<th><?= t("Album: ") ?></th>
<td>
<a href="<?= url::site("albums/{$parent->id}?show=$item->id") ?>">
<?= p::clean($parent->title) ?>
</a>
</td>
</tr>
<? endif ?>
<? if ($item->captured): ?>
<tr>
<th><?= t("Captured:") ?></th>
<td><?= gallery::date_time($item->captured) ?></td>
</tr>
<? endif ?>
<? if ($item->owner): ?>
<tr>
<th><?= t("Owner:") ?></th>
<td><a href="#"><?= p::clean($item->owner->name) ?></a></td>
</tr>
<? endif ?>
</tbody>
</table>