Skip to content

Instantly share code, notes, and snippets.

@mattborn
Created November 17, 2011 21:08
Show Gist options
  • Save mattborn/1374533 to your computer and use it in GitHub Desktop.
Save mattborn/1374533 to your computer and use it in GitHub Desktop.
Slim NextGen Gallery Template
<?php if ( ! defined ('ABSPATH') ) die ('No direct access allowed'); ?><?php if ( ! empty ( $gallery ) ) : ?>
<div id="gallery">
<?php foreach ( $images as $image ) : if ( ! $image->hidden ) : ?>
<a href="<?php echo $image->description ?>"><img alt="<?php echo $image->alttext ?>" src="<?php echo $image->imageURL ?>" /></a>
<?php endif; if ( $image->hidden ) continue; endforeach; ?>
</div><!-- #gallery -->
<?php endif; ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment