summaryrefslogtreecommitdiff
path: root/themes/default/views/album.html.php
diff options
context:
space:
mode:
Diffstat (limited to 'themes/default/views/album.html.php')
-rw-r--r--themes/default/views/album.html.php32
1 files changed, 32 insertions, 0 deletions
diff --git a/themes/default/views/album.html.php b/themes/default/views/album.html.php
new file mode 100644
index 00000000..addd6c3a
--- /dev/null
+++ b/themes/default/views/album.html.php
@@ -0,0 +1,32 @@
+<? defined("SYSPATH") or die("No direct script access."); ?>
+<div id="gAlbumHeader">
+ <?= $theme->album_top() ?>
+ <h1><?= $item->title_edit ?></h1>
+ <div class="gDescription"><?= $item->description_edit ?></div>
+</div>
+
+<ul id="gAlbumGrid">
+ <? foreach ($children as $i => $child): ?>
+ <? $album_class = ""; ?>
+ <? if ($child->is_album()): ?>
+ <? $album_class = "gAlbum "; ?>
+ <? endif ?>
+ <li class="gItem <?= $album_class ?>">
+ <?= $theme->thumbnail_top($child) ?>
+ <a href="<?= url::site("{$child->type}s/{$child->id}") ?>">
+ <img id="gPhotoID-<?= $child->id ?>" class="gThumbnail"
+ alt="photo" src="<?= $child->thumbnail_url() ?>"
+ width="<?= $child->thumbnail_width ?>"
+ height="<?= $child->thumbnail_height ?>" />
+ </a>
+ <h2><?= $child->title_edit ?></h2>
+ <?= $theme->thumbnail_bottom($child) ?>
+ <ul class="gMetadata">
+ <?= $theme->thumbnail_info($child) ?>
+ </ul>
+ </li>
+ <? endforeach ?>
+</ul>
+<?= $theme->album_bottom() ?>
+
+<?= $theme->pager() ?>