| Revision 561,
1.0 KB
checked in by sidtheduck, 2 years ago
(diff) |
|
+ Slideshow fixes and javascript redirect to album view at end of slideshow (instead of repeat)
+ Miscellaneous small syntax edits
|
| Line | |
|---|
| 1 | <?php plogger_get_header(); ?> |
|---|
| 2 | |
|---|
| 3 | <div id="big-picture-container"> |
|---|
| 4 | |
|---|
| 5 | <?php if (plogger_has_pictures()) : ?> |
|---|
| 6 | <script type="text/javascript"> |
|---|
| 7 | <!-- |
|---|
| 8 | slides = new slideshow("slides"); |
|---|
| 9 | slides.prefetch = 2; |
|---|
| 10 | slides.timeout = 4000; |
|---|
| 11 | // slides.repeat = true; |
|---|
| 12 | slides.redirect = "<?php echo generate_url("album", $GLOBALS['plogger_id'], NULL, true) ?>"; |
|---|
| 13 | <?php while(plogger_has_pictures()) : ?> |
|---|
| 14 | <?php $pic = plogger_load_picture(); ?> |
|---|
| 15 | // output a line of javascript for each image |
|---|
| 16 | s = new slide("<?php echo plogger_get_picture_thumb(THUMB_LARGE); ?>", |
|---|
| 17 | "<?php echo plogger_get_source_picture_url(); ?>", |
|---|
| 18 | "<?php echo plogger_get_picture_caption(); ?>", |
|---|
| 19 | "_self","","","<?php echo basename($pic['path']); ?>"); |
|---|
| 20 | slides.add_slide(s); |
|---|
| 21 | <?php endwhile; ?> |
|---|
| 22 | // --> |
|---|
| 23 | </script> |
|---|
| 24 | |
|---|
| 25 | <?php echo generate_slideshow_interface(); ?> |
|---|
| 26 | <?php else : ?> |
|---|
| 27 | <p id="no-pictures-msg"><?php echo plog_tr('There are no pictures to show')?>.</p> |
|---|
| 28 | |
|---|
| 29 | <?php endif; ?> |
|---|
| 30 | |
|---|
| 31 | </div><!-- /big-picture-container --> |
|---|
| 32 | <?php plogger_get_footer(); ?> |
|---|
Note: See
TracBrowser
for help on using the repository browser.