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