source: trunk/gallery/themes/lucid/collections.php@ 586

Last change on this file since 586 was 586, checked in by barny, 16 years ago

*Galerie

File size: 1.0 KB
Line 
1<?php
2plogger_get_header();
3print '<div id="thumbnail_container">';
4if (plogger_has_collections())
5{
6 print '<div id="collections">';
7 while(plogger_has_collections())
8 {
9 plogger_load_collection();
10 $desc = plogger_get_collection_description();
11
12 print '<div class="collection"><a href="' . plogger_get_collection_url() . '">';
13
14 // generate XHTML with thumbnail and link to picture view.
15 print '<img class="photos" src="'.plogger_get_collection_thumb().'" title="'.$desc.'" alt="'.$desc.'" /></a>';
16
17 print '<h2>' . plogger_get_collection_name() . '</h2>';
18 print plogger_download_checkbox(plogger_get_collection_id());
19
20 print '<span class="meta-header">Contains ';
21
22 $num_albums = plogger_collection_album_count();
23 print $num_albums . ' ';
24 print ($num_albums == 1) ? "Album" : "Albums";
25
26 print '</span>';
27
28 print '<p class="description">'.$desc.'</p>';
29 print '</div>';
30 }
31 print '</div>';
32} else {
33 print "No collections yet";
34}
35print '</div>';
36plogger_get_footer();
37?>
Note: See TracBrowser for help on using the repository browser.