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 ?>
|
2009-01-01 22:54:35 +00:00
|
|
|
<div id="gInfo">
|
2008-12-13 23:02:16 +00:00
|
|
|
<?= $theme->album_top() ?>
|
2009-07-03 21:44:10 -07:00
|
|
|
<h1><?= p::purify($item->title) ?></h1>
|
2009-07-04 08:17:12 -07:00
|
|
|
<div class="gDescription"><?= nl2br(p::purify($item->description)) ?></div>
|
2008-11-07 08:53:42 +00:00
|
|
|
</div>
|
2008-11-04 05:02:37 +00:00
|
|
|
|
2008-11-07 08:53:42 +00:00
|
|
|
<ul id="gAlbumGrid">
|
2009-06-03 19:04:44 -06:00
|
|
|
<? if (count($children)): ?>
|
2008-11-26 21:24:46 +00:00
|
|
|
<? foreach ($children as $i => $child): ?>
|
2009-01-01 22:54:35 +00:00
|
|
|
<? $item_class = "gPhoto"; ?>
|
|
|
|
|
<? if ($child->is_album()): ?>
|
|
|
|
|
<? $item_class = "gAlbum"; ?>
|
|
|
|
|
<? endif ?>
|
|
|
|
|
<li id="gItemId-<?= $child->id ?>" class="gItem <?= $item_class ?>">
|
2008-12-17 04:45:35 +00:00
|
|
|
<?= $theme->thumb_top($child) ?>
|
2008-12-31 07:13:34 +00:00
|
|
|
<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>
|
2008-12-17 04:45:35 +00:00
|
|
|
<?= $theme->thumb_bottom($child) ?>
|
2009-06-27 16:27:06 -07:00
|
|
|
<?= $theme->thumb_menu($child) ?>
|
2009-05-31 01:06:51 -07:00
|
|
|
<h2><span></span><a href="<?= $child->url() ?>"><?= p::clean($child->title) ?></a></h2>
|
2008-11-07 08:53:42 +00:00
|
|
|
<ul class="gMetadata">
|
2008-12-17 04:45:35 +00:00
|
|
|
<?= $theme->thumb_info($child) ?>
|
2008-11-07 08:53:42 +00:00
|
|
|
</ul>
|
|
|
|
|
</li>
|
2008-11-06 07:20:06 +00:00
|
|
|
<? endforeach ?>
|
2009-06-03 19:04:44 -06:00
|
|
|
<? else: ?>
|
|
|
|
|
<? if ($user->admin || access::can("add", $item)): ?>
|
|
|
|
|
<? $addurl = url::file("index.php/simple_uploader/app/$item->id") ?>
|
2009-06-04 11:57:36 -07:00
|
|
|
<li><?= t("There aren't any photos here yet! <a %attrs>Add some</a>.",
|
|
|
|
|
array("attrs" => "href=\"$addurl\" class=\"gDialogLink\"")) ?></li>
|
2009-06-03 19:04:44 -06:00
|
|
|
<? else: ?>
|
|
|
|
|
<li><?= t("There aren't any photos here yet!") ?></li>
|
|
|
|
|
<? endif; ?>
|
|
|
|
|
<? endif; ?>
|
2008-11-07 08:53:42 +00:00
|
|
|
</ul>
|
2008-11-25 02:14:36 +00:00
|
|
|
<?= $theme->album_bottom() ?>
|
2008-11-07 08:53:42 +00:00
|
|
|
|
|
|
|
|
<?= $theme->pager() ?>
|