diff options
| author | Bharat Mediratta <bharat@menalto.com> | 2008-11-05 09:42:47 +0000 |
|---|---|---|
| committer | Bharat Mediratta <bharat@menalto.com> | 2008-11-05 09:42:47 +0000 |
| commit | ae00f739445717885e2fc82e241bae38b7e58d44 (patch) | |
| tree | 96feb40e2ffbaa61a46500288d3e7a8fe831d155 /themes/default/views | |
| parent | e35c154414ac73788645666b3e4e71722706c6cd (diff) | |
* Add thumbnail and resize dimensions to the item table and use them
properly in the theme.
* Move thumbnail and resize generation down into the model for
consistency.
* Add a sample thumbnail for albums
* Fix a bug in the ORM to clear the cache when we reload an object.
* Add Kohana docs to the scaffold.
Diffstat (limited to 'themes/default/views')
| -rw-r--r-- | themes/default/views/album.html.php | 10 | ||||
| -rw-r--r-- | themes/default/views/photo.html.php | 4 |
2 files changed, 11 insertions, 3 deletions
diff --git a/themes/default/views/album.html.php b/themes/default/views/album.html.php index 390a22b8..232e749b 100644 --- a/themes/default/views/album.html.php +++ b/themes/default/views/album.html.php @@ -15,7 +15,10 @@ <? 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() ?>" /> + <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"> @@ -26,7 +29,10 @@ <? 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() ?>" /> + <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> diff --git a/themes/default/views/photo.html.php b/themes/default/views/photo.html.php index 31458094..8f7fa791 100644 --- a/themes/default/views/photo.html.php +++ b/themes/default/views/photo.html.php @@ -8,7 +8,9 @@ <a href="" class="buttonlink">Full size (1024x768)</a> <a href="" class="buttonlink">Slideshow</a> - <img id="photo-id-<?= $item->id ?>" alt="photo" src="<?= $item->resize_url() ?>" /> + <img id="photo-id-<?= $item->id ?>" alt="photo" src="<?= $item->resize_url() ?>" + width="<?= $item->resize_width ?>" + height="<?= $item->resize_height ?>" /> <h1><?= $item->title ?></h1> <p><?= $item->description ?></p> </div> |
