data-description="<?php echo esc_attr($image->description); ?>"
data-url="<?php echo nggcf_get_field($image->pid, "url"); ?>"
data-front-description="<?php echo nggcf_get_field($image->pid, "Front Description"); ?>"
- class="fancybox various iframe"
<?php echo $image->thumbcode ?> >
<?php if ( !$image->hidden ) { ?>
<h2><?php the_title();?></h2>
<?php the_content(); ?>
</div>
-
<footer>
+ <script>
+ jQuery(document).ready(function(){
+ jQuery(".ngg-fancybox").each(function (){
+ jQuery(this).addClass("various iframe");
+ jQuery(this).attr("href",jQuery(this).children("img").attr("title"));
+ });
+ });
+ </script>
<?php wp_link_pages(array('before' => '<nav id="page-nav"><p>' . __('Pages:', 'FoundationPress'), 'after' => '</p></nav>' )); ?>
<p><?php the_tags(); ?></p>
</footer>
<?php the_content(); ?>
</div>
- <div id="videogallery">
- <?php echo do_shortcode("[ngg_images album_ids='1' display_type='photocrati-nextgen_basic_compact_album']")?>
-
- </div>
<footer>
<?php wp_link_pages(array('before' => '<nav id="page-nav"><p>' . __('Pages:', 'FoundationPress'), 'after' => '</p></nav>' )); ?>
<p><?php the_tags(); ?></p>