Files
gallery3/themes/default/views/dynamic.html.php
Andy Staudacher c01ac42c46 Refactor all calls of p::clean() to SafeString::of() and p::purify() to SafeString::purify().
Removing any p::clean() calls for arguments to t() and t2() since their args are wrapped in a SafeString anyway.
2009-08-29 12:48:40 -07:00

30 lines
897 B
PHP

<?php defined("SYSPATH") or die("No direct script access.") ?>
<div id="gAlbumHeader">
<div id="gAlbumHeaderButtons">
<?= $theme->dynamic_top() ?>
</div>
<h1><?= SafeString::of($title) ?></h1>
</div>
<ul id="gAlbumGrid">
<? foreach ($children as $i => $child): ?>
<li class="gItem <?= $child->is_album() ? "gAlbum" : "" ?>">
<?= $theme->thumb_top($child) ?>
<a href="<?= $child->url() ?>">
<img id="gPhotoId-<?= $child->id ?>" class="gThumbnail"
alt="photo" src="<?= $child->thumb_url() ?>"
width="<?= $child->thumb_width ?>"
height="<?= $child->thumb_height ?>" />
</a>
<h2><?= SafeString::purify($child->title) ?></h2>
<?= $theme->thumb_bottom($child) ?>
<ul class="gMetadata">
<?= $theme->thumb_info($child) ?>
</ul>
</li>
<? endforeach ?>
</ul>
<?= $theme->dynamic_bottom() ?>
<?= $theme->pager() ?>