Files
gallery3/modules/info/views/info_block.html.php
Tim Almdal d6648c0aff Fix for ticket #477. Use nl2br method when rendering comment::text and
item::description.  In addition add p::clean or p::purify to places that
xss cleaning had missed (i.e. rss feeds)
2009-07-04 08:17:12 -07:00

36 lines
992 B
PHP

<?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->full_name) ?></a>
<? else: ?>
<?= p::clean($item->owner->name) ?>
<? endif ?>
</li>
<? endif ?>
</ul>