Line | |
---|
1 | <?php plogger_get_header(); ?>
|
---|
2 |
|
---|
3 | <div id="thumbnail-container" class="clearfix">
|
---|
4 |
|
---|
5 | <?php if (plogger_has_pictures()) : ?>
|
---|
6 |
|
---|
7 | <ul class="slides clearfix">
|
---|
8 |
|
---|
9 | <?php while(plogger_has_pictures()) : ?>
|
---|
10 |
|
---|
11 | <?php plogger_load_picture();
|
---|
12 | // set variables for the album
|
---|
13 | $capt = plogger_get_picture_caption();
|
---|
14 | // find thumbnail width
|
---|
15 | $thumb_info = plogger_get_thumbnail_info();
|
---|
16 | $thumb_width = $thumb_info[0]; // The width of the image. It is integer data type.
|
---|
17 | $thumb_height = $thumb_info[1]; // The height of the image. It is an integer data type.
|
---|
18 | ?>
|
---|
19 |
|
---|
20 | <li class="thumbnail">
|
---|
21 |
|
---|
22 | <a href="<?php echo plogger_get_picture_url(); ?>"><img id="thumb-<?php echo plogger_get_picture_id(); ?>" class="photos" src="<?php echo plogger_get_picture_thumb(); ?>" width="<?php echo $thumb_width; ?>px" height="<?php echo $thumb_height; ?>px" title="<?php echo $capt; ?>" alt="<?php echo $capt; ?>" /></a>
|
---|
23 |
|
---|
24 | <div class="checkbox"><?php echo plogger_download_checkbox(plogger_get_picture_id()); ?></div>
|
---|
25 |
|
---|
26 | <p style="width:<?php echo $thumb_width; ?>px;"><?php echo $capt; ?></p>
|
---|
27 |
|
---|
28 | </li>
|
---|
29 |
|
---|
30 | <?php endwhile; ?>
|
---|
31 |
|
---|
32 | </ul>
|
---|
33 |
|
---|
34 | <?php else : ?>
|
---|
35 |
|
---|
36 | <div id="no-pictures-msg">There are no pictures in this album.</div>
|
---|
37 |
|
---|
38 | <?php endif; ?>
|
---|
39 |
|
---|
40 | </div>
|
---|
41 |
|
---|
42 |
|
---|
43 | <?php plogger_get_footer(); ?>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.