Advertisement
Guest User

Linsay Gallery

a guest
Jan 25th, 2012
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.98 KB | None | 0 0
  1. <?php
  2. /**
  3. Template Page for the gallery overview
  4.  
  5. Follow variables are useable :
  6.  
  7. $gallery : Contain all about the gallery
  8. $images : Contain all images, path, title
  9. $pagination : Contain the pagination content
  10.  
  11. You can check the content when you insert the tag <?php var_dump($variable) ?>
  12. If you would like to show the timestamp of the image ,you can use <?php echo $exif['created_timestamp'] ?>
  13. **/
  14. ?>
  15. <?php if (!defined ('ABSPATH')) die ('No direct access allowed'); ?><?php if (!empty ($gallery)) : ?>
  16.  
  17. <div class="ngg-galleryoverview" id="<?php echo $gallery->anchor ?>">
  18.  
  19. <?php if ($gallery->show_slideshow) { ?>
  20. <!-- Slideshow link -->
  21. <div class="slideshowlink">
  22. <a class="slideshowlink" href="<?php echo $gallery->slideshow_link ?>">
  23. <?php echo $gallery->slideshow_link_text ?>
  24. </a>
  25. </div>
  26. <?php } ?>
  27.  
  28. <?php if ($gallery->show_piclens) { ?>
  29. <!-- Piclense link -->
  30. <div class="piclenselink">
  31. <a class="piclenselink" href="<?php echo $gallery->piclens_link ?>">
  32. <?php _e('[View with PicLens]','nggallery'); ?>
  33. </a>
  34. </div>
  35. <?php } ?>
  36.  
  37. <!-- Thumbnails -->
  38. <?php foreach ( $images as $image ) : ?>
  39.  
  40. <div id="ngg-image-<?php echo $image->pid ?>" class="ngg-gallery-thumbnail-box" <?php echo $image->style ?> >
  41. <div class="ngg-gallery-thumbnail" >
  42. <a href="<?php echo $image->imageURL ?>" title="<?php echo $image->description ?>" <?php echo $image->thumbcode ?> >
  43. <?php if ( !$image->hidden ) { ?>
  44. <img title="<?php echo $image->alttext ?>" alt="<?php echo $image->alttext ?>" src="<?php echo $image->thumbnailURL ?>" <?php echo $image->size ?> />
  45. <?php } ?>
  46. </a>
  47. <?php echo nggv_imageVoteForm($image->pid); ?>
  48. </div>
  49. </div>
  50.  
  51. <?php if ( $image->hidden ) continue; ?>
  52. <?php if ( $gallery->columns > 0 && ++$i % $gallery->columns == 0 ) { ?>
  53. <br style="clear: both" />
  54. <?php } ?>
  55.  
  56. <?php endforeach; ?>
  57.  
  58. <!-- Pagination -->
  59. <?php echo $pagination ?>
  60.  
  61. </div>
  62.  
  63. <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement