Advertisement
Guest User

Untitled

a guest
Feb 1st, 2012
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.58 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>
  18. <div class="ngg-galleryoverview" id="<?php echo $gallery->anchor ?>">
  19.  
  20.  
  21. <?php if ($gallery->show_slideshow) { ?>
  22. <!-- Slideshow link -->
  23. <div class="slideshowlink">
  24. <a class="slideshowlink" href="<?php echo $gallery->slideshow_link ?>">
  25. <?php echo $gallery->slideshow_link_text ?>
  26. </a>
  27. </div>
  28. <?php } ?>
  29.  
  30. <?php if ($gallery->show_piclens) { ?>
  31. <!-- Piclense link -->
  32. <div class="piclenselink">
  33. <a class="piclenselink" href="<?php echo $gallery->piclens_link ?>">
  34. <?php _e('[View with PicLens]','nggallery'); ?>
  35. </a>
  36. </div>
  37. <?php } ?>
  38.  
  39.  
  40.  
  41. <!-- Post gallery -->
  42. <div class="carousel post_gallery_full">
  43. <div class="jCarouselLite">
  44. <ul>
  45. <?php foreach ( $images as $image ) : ?>
  46.  
  47. <li id="box-ngg-image-<?php echo $image->pid ?>" >
  48. <img title="<?php echo $image->alttext ?>" alt="<?php echo $image->alttext ?>" src="<?php echo $image->imageURL ?>" />
  49. </li>
  50.  
  51. <?php endforeach; ?>
  52.  
  53. </ul>
  54. </div>
  55. <a href="#" class="gallery_btn_next_full"></a>
  56. <a href="#" class="gallery_btn_prev_full"></a>
  57. </div>
  58.  
  59.  
  60. <!-- Thumbnails -->
  61. <div class="gallery_prev">
  62. <ul>
  63. <?php $counter = 1; ?>
  64. <?php foreach ( $images as $image ) : ?>
  65.  
  66. <li id="ngg-image-<?php echo $image->pid ?>" class="ngg-gallery-thumbnail-box" <?php echo $image->style ?> >
  67. <a href="#<?php //echo $image->imageURL ?>" title="<?php echo $image->description ?>" class="<?=$counter?>" >
  68. <?php if ( !$image->hidden ) { ?>
  69. <img title="<?php echo $image->alttext ?>" alt="<?php echo $image->alttext ?>" src="<?php echo $image->thumbnailURL ?>" <?php echo $image->size ?> />
  70. <?php } ?>
  71. </a>
  72. </li>
  73.  
  74. <?php if ( $image->hidden ) continue; ?>
  75. <?php if ( $gallery->columns > 0 && ++$i % $gallery->columns == 0 ) { ?>
  76. <br style="clear: both" />
  77. <?php } ?>
  78.  
  79. <?php $counter++; endforeach; ?>
  80.  
  81. </ul>
  82. <!-- Pagination -->
  83. <?php echo $pagination ?>
  84.  
  85. </div>
  86.  
  87.  
  88.  
  89. </div>
  90. <div class="post">
  91.  
  92.  
  93. <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement