summaryrefslogtreecommitdiff
path: root/modules/info
diff options
context:
space:
mode:
Diffstat (limited to 'modules/info')
-rw-r--r--modules/info/helpers/info_installer.php5
-rw-r--r--modules/info/views/info_block.html.php75
2 files changed, 34 insertions, 46 deletions
diff --git a/modules/info/helpers/info_installer.php b/modules/info/helpers/info_installer.php
index 94fc22d0..e3e78b90 100644
--- a/modules/info/helpers/info_installer.php
+++ b/modules/info/helpers/info_installer.php
@@ -19,9 +19,6 @@
*/
class info_installer {
static function install() {
- $version = module::get_version("info");
- if ($version == 0) {
- module::set_version("info", 1);
- }
+ module::set_version("info", 1);
}
}
diff --git a/modules/info/views/info_block.html.php b/modules/info/views/info_block.html.php
index 9f9ec5df..db621006 100644
--- a/modules/info/views/info_block.html.php
+++ b/modules/info/views/info_block.html.php
@@ -1,44 +1,35 @@
<?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>
+<ul class="gMetadata">
+ <li>
+ <strong class="caption"><?= t("Title:") ?></strong>
+ <?= p::clean($item->title) ?>
+ </li>
+ <? if ($item->description): ?>
+ <li>
+ <strong class="caption"><?= t("Description:") ?></strong>
+ <?= p::clean($item->description) ?>
+ </li>
+ <? endif ?>
+ <? if ($item->id != 1): ?>
+ <li>
+ <strong class="caption"><?= t("Folder name:") ?></strong>
+ <?= p::clean($item->name) ?>
+ </li>
+ <? endif ?>
+ <? if ($item->captured): ?>
+ <li>
+ <strong class="caption"><?= t("Captured:") ?></strong>
+ <?= date("M j, Y H:i:s", $item->captured)?>
+ </li>
+ <? endif ?>
+ <? if ($item->owner): ?>
+ <li>
+ <strong class="caption"><?= t("Owner:") ?></strong>
+ <? if ($item->owner->url): ?>
+ <a href="<?= $item->owner->url ?>"><?= p::clean($item->owner->full_name) ?></a>
+ <? else: ?>
+ <?= p::clean($item->owner->name) ?>
<? 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>
+ </li>
+ <? endif ?>
+</ul>