Line | |
---|
1 | <?php
|
---|
2 | plogger_get_header();
|
---|
3 | print '<div id="thumbnail_container">';
|
---|
4 | if (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 | }
|
---|
35 | print '</div>';
|
---|
36 | plogger_get_footer();
|
---|
37 | ?>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.