Posted By

ryarwood on 07/09/10


Tagged

php wordpress jquery


Versions (?)

Stripped Down NextGen Gallery for jquery fun


 / 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 $starterStuff = 0; ?>
  17.  
  18. <?php if (!defined ('ABSPATH')) die ('No direct access allowed'); ?><?php if (!empty ($gallery)) : ?>
  19.  
  20. <!-- Thumbnails -->
  21. <?php foreach ( $images as $image ) : ?>
  22.  
  23. <img src="<?php echo $image->url ?>" <?php if($starterStuff == 0) { echo('class="start"'); } ?> caption="<?php echo $image->description ?>" />
  24.  
  25. <?php $starterStuff = 1; ?>
  26.  
  27. <?php if ( $image->hidden ) continue; ?>
  28.  
  29. <?php endforeach; ?>
  30.  
  31. <?php endif; ?>

Report this snippet  

You need to login to post a comment.