// @todo Set hover on AlbumGrid list items for guest users ?>
= $theme->album_top() ?>
= html::purify($item->title) ?>
= nl2br(html::purify($item->description)) ?>
if (count($children)): ?>
foreach ($children as $i => $child): ?>
$item_class = "g-photo"; ?>
if ($child->is_album()): ?>
$item_class = "g-album"; ?>
endif ?>
-
= $theme->thumb_top($child) ?>
= $child->thumb_img(array("class" => "g-thumbnail")) ?>
= $theme->thumb_bottom($child) ?>
= $theme->context_menu($child, "#g-item-id-{$child->id} .g-thumbnail") ?>
endforeach ?>
else: ?>
if ($user->admin || access::can("add", $item)): ?>
$addurl = url::site("uploader/index/$item->id") ?>
- = t("There aren't any photos here yet! Add some.",
array("attrs" => html::mark_clean("href=\"$addurl\" class=\"g-dialog-link\""))) ?>
else: ?>
- = t("There aren't any photos here yet!") ?>
endif; ?>
endif; ?>
= $theme->album_bottom() ?>
= $theme->paginator() ?>