Files
gallery3/themes/default/views/album.html.php
Bharat Mediratta 2d7ab6f4da Create Item_Model::thumb_tag() and Item_Model::resize_tag() to provide
an abstraction for when we add movie support.
2009-01-14 07:21:35 +00:00

30 lines
884 B
PHP

<?php defined("SYSPATH") or die("No direct script access.") ?>
<div id="gInfo">
<?= $theme->album_top() ?>
<h1><?= $item->title ?></h1>
<div class="gDescription"><?= $item->description ?></div>
</div>
<ul id="gAlbumGrid">
<? foreach ($children as $i => $child): ?>
<? $item_class = "gPhoto"; ?>
<? if ($child->is_album()): ?>
<? $item_class = "gAlbum"; ?>
<? endif ?>
<li id="gItemId-<?= $child->id ?>" class="gItem <?= $item_class ?>">
<?= $theme->thumb_top($child) ?>
<a href="<?= $child->url() ?>">
<?= $child->thumb_tag(array("class" => "gThumbnail")) ?>
</a>
<?= $theme->thumb_bottom($child) ?>
<h2><a href="<?= $child->url() ?>"><?= $child->title ?></a></h2>
<ul class="gMetadata">
<?= $theme->thumb_info($child) ?>
</ul>
</li>
<? endforeach ?>
</ul>
<?= $theme->album_bottom() ?>
<?= $theme->pager() ?>