Files
gallery3/modules/info/views/info_block.html.php
Bharat Mediratta 418c0aab69 Create permanent owner_id column in the item table, and use a soft
relationship to bind the two.  To do this, I overrode __get in
Item_Model so that $item->owner returns the appropriate User_Model.
2008-11-08 07:48:36 +00:00

31 lines
652 B
PHP

<? defined("SYSPATH") or die("No direct script access."); ?>
<table class="gMetadata">
<tbody>
<tr>
<th><?= _("Title:") ?></th>
<td><?= $item->title; ?></td>
</tr>
<tr>
<th><?= _("Description:") ?></th>
<td><?= $item->description; ?></td>
</tr>
<tr>
<th><?= _("Name:") ?></th>
<td><?= $item->name; ?></td>
</tr>
<? if ($item->owner): ?>
<tr>
<th><?= _("Owner:") ?></th>
<td><a href="#"><?= $item->owner->name ?></a></td>
</tr>
<? endif ?>
<tr>
<td colspan="2" class="toggle">
<a href="#">more \/</a>
</td>
</tr>
</tbody>
</table>