Posted By

ryarwood on 01/30/12


Tagged

gallery nextgen


Versions (?)

WP NextGen Gallery Watered Down Version


 / Published in: PHP
 

  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.  
  16. <?php if (!defined ('ABSPATH')) die ('No direct access allowed'); ?><?php if (!empty ($gallery)) : ?>
  17.  
  18. <?php foreach ( $images as $image ) : ?>
  19.  
  20. <img src="<?php echo $image->imageURL ?>" width="716" height="440" />
  21.  
  22. <?php if ( $image->hidden ) continue; ?>
  23.  
  24. <?php endforeach; ?>
  25.  
  26. <?php endif; ?>

Report this snippet  

You need to login to post a comment.