summaryrefslogtreecommitdiff
path: root/modules/info/views/info_block.html.php
blob: f86ae39da28908e1dda84845620605949a20e2fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php defined("SYSPATH") or die("No direct script access.") ?>
<ul class="gMetadata">
  <li>
    <strong class="caption"><?= t("Title:") ?></strong>
    <?= p::purify($item->title) ?>
  </li>
  <? if ($item->description): ?>
  <li>
    <strong class="caption"><?= t("Description:") ?></strong>
     <?= nl2br(p::purify($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->display_name()) ?></a>
    <? else: ?>
    <?= p::clean($item->owner->display_name()) ?>
    <? endif ?>
  </li>
  <? endif ?>
</ul>