Files
gallery3/themes/default/views/album.html.php
T

42 lines
1.4 KiB
PHP
Raw Normal View History

2009-01-01 00:23:29 +00:00
<?php defined("SYSPATH") or die("No direct script access.") ?>
2009-02-13 03:21:19 +00:00
<? // @todo Set hover on AlbumGrid list items for guest users ?>
<div id="gInfo">
<?= $theme->album_top() ?>
<h1><?= p::purify($item->title) ?></h1>
<div class="gDescription"><?= nl2br(p::purify($item->description)) ?></div>
2008-11-07 08:53:42 +00:00
</div>
2008-11-07 08:53:42 +00:00
<ul id="gAlbumGrid">
<? if (count($children)): ?>
2008-11-26 21:24:46 +00:00
<? 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() ?>">
2009-06-02 12:08:47 -07:00
<?= $child->thumb_img(array("class" => "gThumbnail")) ?>
2008-11-07 08:53:42 +00:00
</a>
<?= $theme->thumb_bottom($child) ?>
<?= $theme->thumb_menu($child) ?>
<h2><span></span><a href="<?= $child->url() ?>"><?= p::clean($child->title) ?></a></h2>
2008-11-07 08:53:42 +00:00
<ul class="gMetadata">
<?= $theme->thumb_info($child) ?>
2008-11-07 08:53:42 +00:00
</ul>
</li>
<? endforeach ?>
<? else: ?>
<? if ($user->admin || access::can("add", $item)): ?>
<? $addurl = url::file("index.php/simple_uploader/app/$item->id") ?>
<li><?= t("There aren't any photos here yet! <a %attrs>Add some</a>.",
array("attrs" => "href=\"$addurl\" class=\"gDialogLink\"")) ?></li>
<? else: ?>
<li><?= t("There aren't any photos here yet!") ?></li>
<? endif; ?>
<? endif; ?>
2008-11-07 08:53:42 +00:00
</ul>
<?= $theme->album_bottom() ?>
2008-11-07 08:53:42 +00:00
<?= $theme->pager() ?>