2010-06-18 19:37:41 +00:00
|
|
|
<?php defined("SYSPATH") or die("No direct script access.") ?>
|
|
|
|
<? // @todo Set hover on AlbumGrid list items for guest users ?>
|
|
|
|
<div id="g-info">
|
|
|
|
<?= $theme->album_top() ?>
|
|
|
|
<h1><?= html::purify($item->title) ?></h1>
|
|
|
|
<div class="g-description"><?= nl2br(html::purify($item->description)) ?></div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<ul id="g-album-grid" class="ui-helper-clearfix">
|
|
|
|
<? if (count($children)): ?>
|
|
|
|
<? foreach ($children as $i => $child): ?>
|
|
|
|
<? $item_class = "g-photo"; ?>
|
|
|
|
<? if ($child->is_album()): ?>
|
|
|
|
<? $item_class = "g-album"; ?>
|
|
|
|
<? endif ?>
|
|
|
|
<li id="g-item-id-<?= $child->id ?>" class="g-item <?= $item_class ?>">
|
|
|
|
<?= $theme->thumb_top($child) ?>
|
|
|
|
<a href="<?= $child->url() ?>">
|
2010-09-03 06:37:31 +00:00
|
|
|
<? if ($child->has_thumb()): ?>
|
2010-06-18 19:37:41 +00:00
|
|
|
<?= $child->thumb_img(array("class" => "g-thumbnail")) ?>
|
2010-09-03 06:37:31 +00:00
|
|
|
<? endif ?>
|
2010-06-18 19:37:41 +00:00
|
|
|
</a>
|
|
|
|
<?= $theme->thumb_bottom($child) ?>
|
|
|
|
<?= $theme->context_menu($child, "#g-item-id-{$child->id} .g-thumbnail") ?>
|
|
|
|
<h2><span class="<?= $item_class ?>"></span>
|
|
|
|
<a href="<?= $child->url() ?>"><?= html::purify($child->title) ?></a></h2>
|
|
|
|
<ul class="g-metadata">
|
|
|
|
<?= $theme->thumb_info($child) ?>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
<? endforeach ?>
|
|
|
|
<? else: ?>
|
|
|
|
<? if ($user->admin || access::can("add", $item)): ?>
|
2010-08-18 03:32:36 +00:00
|
|
|
<? $addurl = url::site("uploader/index/$item->id") ?>
|
2010-06-18 19:37:41 +00:00
|
|
|
<li><?= t("There aren't any photos here yet! <a %attrs>Add some</a>.",
|
|
|
|
array("attrs" => html::mark_clean("href=\"$addurl\" class=\"g-dialog-link\""))) ?></li>
|
|
|
|
<? else: ?>
|
|
|
|
<li><?= t("There aren't any photos here yet!") ?></li>
|
|
|
|
<? endif; ?>
|
|
|
|
<? endif; ?>
|
|
|
|
</ul>
|
|
|
|
<?= $theme->album_bottom() ?>
|
|
|
|
|
|
|
|
<?= $theme->paginator() ?>
|