Created
November 17, 2011 21:08
-
-
Save mattborn/1374533 to your computer and use it in GitHub Desktop.
Slim NextGen Gallery Template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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