diff options
| author | Chad Kieffer <ckieffer@gmail.com> | 2009-09-24 22:08:08 -0600 |
|---|---|---|
| committer | Chad Kieffer <ckieffer@gmail.com> | 2009-09-24 22:08:08 -0600 |
| commit | 639c9c2d55164eab8ef1f8c21a7f9b69b54686ff (patch) | |
| tree | 0bbb2e33006198d6e30975dc6ba8f9e3e34b2fc0 /themes/wind/views/album.html.php | |
| parent | 16c97eb6ebd8c5514dff8ed9242d7eb0a4e7178a (diff) | |
| parent | e204e18b3c6a4b4b1aa76b6d4a5392bd238490eb (diff) | |
Merge branch 'master' of github.com:gallery/gallery3
Diffstat (limited to 'themes/wind/views/album.html.php')
| -rw-r--r-- | themes/wind/views/album.html.php | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/themes/wind/views/album.html.php b/themes/wind/views/album.html.php new file mode 100644 index 00000000..01f7be50 --- /dev/null +++ b/themes/wind/views/album.html.php @@ -0,0 +1,41 @@ +<?php defined("SYSPATH") or die("No direct script access.") ?> +<? // @todo Set hover on AlbumGrid list items for guest users ?> +<div id="gInfo"> + <?= $theme->album_top() ?> + <h1><?= html::purify($item->title) ?></h1> + <div class="gDescription"><?= nl2br(html::purify($item->description)) ?></div> +</div> + +<ul id="gAlbumGrid"> +<? if (count($children)): ?> + <? foreach ($children as $i => $child): ?> + <? $item_class = "gPhoto"; ?> + <? if ($child->is_album()): ?> + <? $item_class = "gAlbum"; ?> + <? endif ?> + <li id="gItemId-<?= $child->id ?>" class="gItem <?= $item_class ?>"> + <?= $theme->thumb_top($child) ?> + <a href="<?= $child->url() ?>"> + <?= $child->thumb_img(array("class" => "gThumbnail")) ?> + </a> + <?= $theme->thumb_bottom($child) ?> + <?= $theme->context_menu($child, "#gItemId-{$child->id} .gThumbnail") ?> + <h2><span></span><a href="<?= $child->url() ?>"><?= html::purify($child->title) ?></a></h2> + <ul class="gMetadata"> + <?= $theme->thumb_info($child) ?> + </ul> + </li> + <? endforeach ?> +<? else: ?> + <? if ($user->admin || access::can("add", $item)): ?> + <? $addurl = url::file("index.php/simple_uploader/app/$item->id") ?> + <li><?= t("There aren't any photos here yet! <a %attrs>Add some</a>.", + array("attrs" => html::mark_clean("href=\"$addurl\" class=\"gDialogLink\""))) ?></li> + <? else: ?> + <li><?= t("There aren't any photos here yet!") ?></li> + <? endif; ?> +<? endif; ?> +</ul> +<?= $theme->album_bottom() ?> + +<?= $theme->pager() ?> |
