summaryrefslogtreecommitdiff
path: root/themes/default/views/album.html.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2008-11-06 07:20:06 +0000
committerBharat Mediratta <bharat@menalto.com>2008-11-06 07:20:06 +0000
commit278191dd6d38bd939ccefb7a1c338611ee920b6e (patch)
treef0272b1dba82fd5ad3f1b2ee4dd559f0b71838c5 /themes/default/views/album.html.php
parent6cafc61f96e900790c8a1e3f0cd01b1b679e93b0 (diff)
Change the theming module again, per a discussion with Chad and Jakob.
Now we have an overall page layout (page.html.php) which has a $content variable, and that $content will be one of several possible secondary views. Currently, it is either photo.html.php or album.html.php. header, footer, breadcrumb, sidebar, anything common to all pages is in page.html.php.
Diffstat (limited to 'themes/default/views/album.html.php')
-rw-r--r--themes/default/views/album.html.php90
1 files changed, 39 insertions, 51 deletions
diff --git a/themes/default/views/album.html.php b/themes/default/views/album.html.php
index 232e749b..ba995276 100644
--- a/themes/default/views/album.html.php
+++ b/themes/default/views/album.html.php
@@ -1,56 +1,44 @@
<? defined("SYSPATH") or die("No direct script access."); ?>
-<?= $theme->display('header.html') ?>
-
-<div id="bd">
- <div id="yui-main">
- <div id="gContent" class="yui-b">
- <div id="gAlbumGrid">
- <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="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>
- <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>
+ <? 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>
+ <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>
- <?= $theme->display('sidebar.html') ?>
</div>
-
-<?= $theme->display('footer.html') ?>