// @todo Set hover on AlbumGrid list items for guest users ?>
= $theme->album_top() ?>
= html::purify($item->title) ?>
= nl2br(html::purify($item->description)) ?>
$children_all = $item->viewable()->children();
$theme->pagination = new Pagination();
$theme->pagination->initialize(
array("query_string" => "page", "total_items" => $children_count, "items_per_page" => $page_size, "style" => "classic"));
$children_offset = ($theme->pagination->current_page -1) * $page_size ;
?>
if (count($children)): ?>
for ($i = 0; $i < $children_offset; $i++): ?>
$child = $children_all[$i] ?>
= three_nids::fancylink($child, "header") ?>
endfor ?>
foreach ($children as $i => $child): ?>
$item_class = "g-photo" ?>
if ($child->is_album()): ?>
$item_class = "g-album" ?>
endif ?>
-
= $theme->thumb_top($child) ?>
= three_nids::fancylink($child, "album") ?>
= $theme->thumb_bottom($child) ?>
= $theme->context_menu($child, "#g-item-id-{$child->id} .g-thumbnail") ?>
endforeach ?>
for($i= $children_offset + $page_size; $i < $children_count; $i++): ?>
$child = $children_all[$i] ?>
= three_nids::fancylink($child, "header") ?>
endfor ?>
else: ?>
if ($user->admin || access::can("add", $item)): ?>
$addurl = url::file("index.php/simple_uploader/app/$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() ?>