1
0
This repository has been archived on 2021-04-26. You can view files and clone it, but cannot push or open issues or pull requests.
gallery3-contrib/3.0/modules/rwinfo/views/rwinfo_block.html.php

53 lines
1.4 KiB
PHP
Raw Normal View History

2009-09-09 18:50:04 +00:00
<?php defined("SYSPATH") or die("No direct script access.") ?>
2010-03-04 19:48:24 +00:00
<? date_default_timezone_set('America/New_York'); ?>
<ul class="g-metadata">
2009-09-09 18:50:04 +00:00
<? if ($item->owner): ?>
<li>
<strong class="caption"><?= t("Owner:") ?></strong>
<? if ($item->owner->url): ?>
<a href="<?= $item->owner->url ?>"><?= html::clean($item->owner->display_name()) ?></a>
<? else: ?>
<?= html::clean($item->owner->display_name()) ?>
<? endif ?>
</li>
2009-10-14 23:28:38 +00:00
<? endif ?>
2009-09-09 18:50:04 +00:00
<? if ($item->is_album()): ?>
<li>
<strong class="caption"><?= t("Date:") ?></strong>
2009-09-16 23:49:50 +00:00
<?= date("F j, Y", $item->created)?>
2009-09-09 18:50:04 +00:00
</li>
<? endif ?>
2009-10-14 23:28:38 +00:00
<? if ($item->captured): ?>
<li>
<strong class="caption"><?= t("Date:") ?></strong>
2010-03-04 19:48:24 +00:00
<?= date("F j, Y h:i:s a T", $item->captured)?>
2009-10-14 23:28:38 +00:00
</li>
2009-09-09 18:50:04 +00:00
<? endif ?>
<? if (!$item->is_album()): ?>
<li>
<strong class="caption"><?= t("File name:") ?></strong>
<?= html::clean($item->name) ?>
</li>
<? endif ?>
<? if (module::is_active("tag")): ?>
2009-12-24 19:07:03 +00:00
<? $tags = ORM::factory("tag")
->join("items_tags", "tags.id", "items_tags.tag_id")
->where("items_tags.item_id", "=", $item->id)
->find_all();
2009-09-09 18:50:04 +00:00
?>
2009-12-24 19:07:03 +00:00
<? if (count($tags)): ?>
<li>
<strong class="caption"><?= t("Tags:") ?></strong>
<? $not_first = 0; ?>
<? foreach ($tags as $tag): ?>
<?= ($not_first++) ? "," : "" ?>
2010-01-21 01:49:23 +00:00
<a href="<?= $tag->url() ?>"><?= html::clean($tag->name) ?></a>
2009-12-24 19:07:03 +00:00
<? endforeach ?>
</li>
<? endif ?>
2009-09-09 18:50:04 +00:00
<? endif ?>
</ul>