PageRenderTime 47ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

/htdocs/wp-content/plugins/nextgen-gallery/view/gallery.php

https://bitbucket.org/dkrzos/phc
PHP | 62 lines | 40 code | 10 blank | 12 comment | 9 complexity | 07cb5b4615ea88b6561b93e47b6b86cd MD5 | raw file
Possible License(s): GPL-2.0
  1. <?php
  2. /**
  3. Template Page for the gallery overview
  4. Follow variables are useable :
  5. $gallery : Contain all about the gallery
  6. $images : Contain all images, path, title
  7. $pagination : Contain the pagination content
  8. You can check the content when you insert the tag <?php var_dump($variable) ?>
  9. If you would like to show the timestamp of the image ,you can use <?php echo $exif['created_timestamp'] ?>
  10. **/
  11. ?>
  12. <?php if (!defined ('ABSPATH')) die ('No direct access allowed'); ?><?php if (!empty ($gallery)) : ?>
  13. <div class="ngg-galleryoverview" id="<?php echo $gallery->anchor ?>">
  14. <?php if ($gallery->show_slideshow) { ?>
  15. <!-- Slideshow link -->
  16. <div class="slideshowlink">
  17. <a class="slideshowlink" href="<?php echo $gallery->slideshow_link ?>">
  18. <?php echo $gallery->slideshow_link_text ?>
  19. </a>
  20. </div>
  21. <?php } ?>
  22. <?php if ($gallery->show_piclens) { ?>
  23. <!-- Piclense link -->
  24. <div class="piclenselink">
  25. <a class="piclenselink" href="<?php echo $gallery->piclens_link ?>">
  26. <?php _e('[View with PicLens]','nggallery'); ?>
  27. </a>
  28. </div>
  29. <?php } ?>
  30. <!-- Thumbnails -->
  31. <?php foreach ( $images as $image ) : ?>
  32. <div id="ngg-image-<?php echo $image->pid ?>" class="ngg-gallery-thumbnail-box" <?php echo $image->style ?> >
  33. <div class="ngg-gallery-thumbnail" >
  34. <a href="<?php echo $image->imageURL ?>" title="<?php echo $image->description ?>" <?php echo $image->thumbcode ?> >
  35. <?php if ( !$image->hidden ) { ?>
  36. <img title="<?php echo $image->alttext ?>" alt="<?php echo $image->alttext ?>" src="<?php echo $image->thumbnailURL ?>" <?php echo $image->size ?> />
  37. <?php } ?>
  38. </a>
  39. </div>
  40. </div>
  41. <?php if ( $image->hidden ) continue; ?>
  42. <?php if ( $gallery->columns > 0 && ++$i % $gallery->columns == 0 ) { ?>
  43. <br style="clear: both" />
  44. <?php } ?>
  45. <?php endforeach; ?>
  46. <!-- Pagination -->
  47. <?php echo $pagination ?>
  48. </div>
  49. <?php endif; ?>