summaryrefslogtreecommitdiff
path: root/themes/default/views/album.html.php
blob: cb3bd430d113a41da138b2bd16db02029ddc1ad0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php defined("SYSPATH") or die("No direct script access.") ?>
<div id="gInfo">
  <?= $theme->album_top() ?>
  <h1><?= $item->title ?></h1>
  <div class="gDescription"><?= $item->description ?></div>
</div>

<ul id="gAlbumGrid">
  <? 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_tag(array("class" => "gThumbnail")) ?>
    </a>
    <?= $theme->thumb_bottom($child) ?>
    <h2><a href="<?= $child->url() ?>"><?= $child->title ?></a></h2>
    <ul class="gMetadata">
      <?= $theme->thumb_info($child) ?>
    </ul>
  </li>
  <? endforeach ?>
</ul>
<?= $theme->album_bottom() ?>

<?= $theme->pager() ?>