summaryrefslogtreecommitdiff
path: root/themes/default/views/album.html.php
blob: ba99527638a4dce42e5c32745672d0300bc0fbb9 (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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<? defined("SYSPATH") or die("No direct script access."); ?>
<div id="gAlbumGrid" class="gAlbumView">
  <div id="gAlbumGridHeader">
    <h1><?= $item->title ?></h1>
    <span class="understate"><?= $item->description ?></span>
    <a href="#" id="gSlideshowLink" class="buttonlink">Slideshow</a>
  </div>

  <? foreach ($children as $i => $child): ?>
  <? if ($child->is_album()): ?>
  <div class="gAlbumContainer gAlbum <?= text::alternate("first", "", "") ?>">
    <a href="<?= url::site("album/{$child->id}") ?>">
      <img id="photo-id-<?= $child->id ?>" class="photo"
           alt="photo" src="<?= $child->thumbnail_url() ?>"
           width="<?= $child->thumbnail_width ?>"
           height="<?= $child->thumbnail_height ?>" />
    </a>
    <h2>Album title</h2>
    <ul class="gMetadata">
      <li>Views: 321</li>
      <li>By: <a href="#">username</a></li>
    </ul>
  </div>
  <? else: ?>
  <div class="gItemContainer <?= text::alternate("first", "", "") ?>">
    <a href="<?= url::site("photo/{$child->id}") ?>">
      <img id="photo-id-<?= $child->id ?>" class="photo"
           alt="photo" src="<?= $child->thumbnail_url() ?>"
           width="<?= $child->thumbnail_width ?>"
           height="<?= $child->thumbnail_height ?>" />
    </a>
    <h2><?= $child->title ?></h2>
  </div>
  <? endif ?>
  <? endforeach ?>

  <div id="gPagination">
    Items 1-10 of 34
    <span class="first_inactive">first</span>
    <span class="previous_inactive">previous</span>
    <a href="#" class="next">next</a>
    <a href="#" class="last">last</a>
  </div>
</div>