[Plugin: NextGEN Gallery] Foundation Orbit & Captions NextGen
-
I think this could be usefull for someone who is using the Foundation Framework Orbit Slider.
Just create the folder nggallery inside of your folder theme and use this code to with a new gallery template, I call it gallery-slider.php
<?php /** Template for Orbit slider Gallery + Captions **/ ?> <?php if (!defined ('ABSPATH')) die ('No direct access allowed'); ?><?php if (!empty ($gallery)) : ?> <div id="featured"> <?php foreach ( $images as $image ) : ?> <div data-caption="#htmlCaption-<?php echo $image->pid ?>"> <img title="<?php echo $image->alttext ?>" alt="<?php echo $image->alttext ?>" src="<?php echo $image->imageURL ?>" /> </div> <?php endforeach; ?> </div> <?php foreach ( $images as $image ) : ?> <div class="orbit-caption" id="htmlCaption-<?php echo $image->pid ?>"> <?php echo $image->alttext ?> </div> <?php endforeach; ?> <?php endif; ?>
And just use the shortcode to place it in the theme:
<?php echo do_shortcode('[nggallery id=THEID template=slider]');?>
Just remember to write the correct ID number of the gallery you want to use ??
Have fun!
https://www.ads-software.com/extend/plugins/nextgen-gallery/
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘[Plugin: NextGEN Gallery] Foundation Orbit & Captions NextGen’ is closed to new replies.