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-10-04 00:27:22 -06:00
|
|
|
<div id="g-info">
|
2008-12-13 23:02:16 +00:00
|
|
|
<?= $theme->album_top() ?>
|
2009-08-29 22:54:20 -07:00
|
|
|
<h1><?= html::purify($item->title) ?></h1>
|
2009-10-04 00:27:22 -06:00
|
|
|
<div class="g-description"><?= nl2br(html::purify($item->description)) ?></div>
|
2008-11-07 08:53:42 +00:00
|
|
|
</div>
|
2008-11-04 05:02:37 +00:00
|
|
|
|
2009-10-17 12:58:31 -06:00
|
|
|
<ul id="g-album-grid" class="ui-helper-clearfix">
|
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
|
|
|
<? if ($child->is_album()): ?>
|
2009-10-04 00:27:22 -06:00
|
|
|
<? $item_class = "g-album"; ?>
|
2012-05-19 10:54:02 -07:00
|
|
|
<? elseif ($child->is_movie()): ?>
|
|
|
|
|
<? $item_class = "g-movie"; ?>
|
|
|
|
|
<? else: ?>
|
|
|
|
|
<? $item_class = "g-photo"; ?>
|
2009-01-01 22:54:35 +00:00
|
|
|
<? endif ?>
|
2009-10-04 15:53:00 -06:00
|
|
|
<li id="g-item-id-<?= $child->id ?>" class="g-item <?= $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() ?>">
|
2010-08-30 20:49:14 -07:00
|
|
|
<? if ($child->has_thumb()): ?>
|
2009-10-04 00:27:22 -06:00
|
|
|
<?= $child->thumb_img(array("class" => "g-thumbnail")) ?>
|
2010-08-30 20:49:14 -07:00
|
|
|
<? endif ?>
|
2008-11-07 08:53:42 +00:00
|
|
|
</a>
|
2008-12-17 04:45:35 +00:00
|
|
|
<?= $theme->thumb_bottom($child) ?>
|
2009-10-04 15:53:00 -06:00
|
|
|
<?= $theme->context_menu($child, "#g-item-id-{$child->id} .g-thumbnail") ?>
|
2009-11-15 22:57:27 -07:00
|
|
|
<h2><span class="<?= $item_class ?>"></span>
|
|
|
|
|
<a href="<?= $child->url() ?>"><?= html::purify($child->title) ?></a></h2>
|
2009-10-04 00:27:22 -06:00
|
|
|
<ul class="g-metadata">
|
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)): ?>
|
2010-07-15 12:37:44 -07:00
|
|
|
<? $addurl = url::site("uploader/index/$item->id") ?>
|
2009-06-04 11:57:36 -07:00
|
|
|
<li><?= t("There aren't any photos here yet! <a %attrs>Add some</a>.",
|
2009-10-04 00:27:22 -06:00
|
|
|
array("attrs" => html::mark_clean("href=\"$addurl\" class=\"g-dialog-link\""))) ?></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
|
|
|
|
2009-11-14 16:18:49 -08:00
|
|
|
<?= $theme->paginator() ?>
|